ValidateGradePotencyPricing

Validate Grade Potency Pricing

Minor Business Rule

Object Name: B4100640

Parent DLL: COPBASE

Location: Client/Server

Language: C

Functional Description

Purpose
This function will validate the grad/potency pricing field in the Item Master against the Potency and 
Grade control fields in the Item Branch table.  If they are not consistent, an error will be set.


Setup Notes and Prerequisites

None

Technical Specifications

Retrieve the Item Master table for the short item number to get the Grade/Potency pricing field.  
If the pricing field is a '1',

If Potency control not equal 'Y'

Issue error '4059' and highlight the potency control field

Move '1' to Error Found


If the pricing field is a '2'

If Grade control not equal 'Y'

Issue error '4060' and highlight the grade control field

Move '1' to Error Found







^

Data Structure

D4100640 - Validate Grade Potency Pricing

Parameter NameData ItemData TypeReq/OptI/O/Both
mnShortItemNumberITMMATH_NUMERICNONENONE

An inventory item number. The system provides three separate item numbers plus an extensive cross-reference capability to other item 
numbers (see data item XRT) to accommodate substitute item numbers, replacements, bar codes, customer numbers, supplier numbers, and 
so forth. The item numbers are as follows:   o Item Number (short) - An eight-digit, computer-assigned item number     o 2nd Item Number - The 
25-digit, free-form, user defined alphanumeric item number     o 3rd Item Number - Another 25-digit, free-form, user defined alphanumeric item 
number

cPotencyControlOT1YcharNONENONE

A code that indicates whether you control the item by potency.

cGradeControlOT2YcharNONENONE

A code that indicates whether you control the item by grade.

cErrorFoundERRCcharNONENONE

'1' = error  ab 
^

Related Functions

None

Related Tables

F4101 Item Master