UpdateContract

Update Contract

Major Business Rule

Object Name: B4200300

Parent DLL: CDIST

Location: Client/Server

Language: C

Functional Description

Purpose

This function updates the Contract Record in the F4207 Price By Item table.   Given the (prgr) Item 
Price Group and the (clvl) Pricing Catagory Level the parameters (linv) InvoiceLastNumber and (dlij) 

LastInvoiceDate will be updated.  If the record does not exist, an ErrorCode = 1 will be passed back


Setup Notes and Prerequisites

• P4205 will call this Business Function if IMCONT = 'Y'

Special Logic

None.



Technical Specification

2.2Related Tables 
Table Table Description
F4207Price by Item



2.3Related Business Functions

Source NameFunction Name



2.4Processing 

If the record is found, update F4207 record (LINV, DLIJ)




^

Data Structure

D4200300 - UpdateContract

Special Input Expected
PRGRItem Price GroupKey

CLVLPricing Category LevelKey

LINVInvoice - Last NumberUpdate with DOCO

DLIJDate - Last Invoice NumberUpdate with Todays date

EV01Suppress Error Message0 = Do display

    error message

1 = Do not display

    error message


Special Output Returned

ERRError Code1 = Error if record

    does not exist


^

Parameter NameData ItemData TypeReq/OptI/O/Both
szItemPriceGroupPRGRcharNONENONE

A user defined code (system 40/type PI) that identifies an inventory price group for an item. Inventory price groups have unique pricing 
structures that direct the system to incorporate discounts or markups on items on sales and purchase orders. The discounts or markups are 
based on the quantity, dollar amount, or weight of the item ordered. When you assign a price group to an item, the item takes on the same pricing 
structure defined for the inventory price group. You must assign an inventory price group to the supplier or customer, as well as to the item, for 
the system to interactively calculate discounts and markups on sales orders and purchase orders.

szPricintCatagoryLevelCLVLcharNONENONE

A pricing category or price rule can contain a variety of levels. Within each price rule, each level is defined by its effective date range and 
allowed quantity, and whether it is based on the item's cost, price, or an amount specified as an override.

szInvoiceLastNumberLINVcharNONENONE

In instances where you establish contract pricing within the Inventory Pricing Methods table, the Invoice Update program records the 
invoice number each time the customer makes a purchase from you under the contract.

jdLastInvoiceDateDLIJJDEDATENONENONE

The G/L date of the last invoice generated for the customer.

cErrorCodeERRCcharNONENONE

Special Output Returned
ERRab Error Code


Significant Data Values

1 = Error if record does not  existab 


^

cSuppressErrorMsgEV01charNONENONE

Special Input Expected
EV01ab Suppress Error  Messageab 


Significant Data Values

0 = Do display error message

1 = Do not display error message


^

szErrorMsgIDDTAIcharNONENONE

A code that identifies and defines a unit of information. It is an alphanumeric code up to 8 characters long that does not allow blanks or 
special characters such as %, &, or +. You create new data items using system codes 55-59. You cannot change the alias.

Related Functions

None

Related Tables

F4207 Price by Item