1.Functional Description
1.1Purpose
Calculate the extended quantity by keeping track of the quantity in a linked list
2.Technical Specifications
2.5Processing
Edits:
work fields
TempRequestedQuantity
1.0 If cDeleteAllNodes = '1'. Destroy the linked list set DS nNodeCount = 0 and return.
1.1 If DS mnUnitsBatchQuantity = 0 the assign TempBatchQuantity = 1. Otherwise assign
TempBatchQuantity = DS mnUnitsBatchQuantity
1.2 If DS mnRequestedQuantity = 0 the assign TempRequestedQuantity = 1. Otherwise assign
TempRequestedQuantity = DS mnRequestedQuantity
1.3 if DS nNodeCount = 0 Create Linked List
1.4 if DS cFixedOrVariableQty = 'F' or (cFixedOrVariableQty = '%' and DS
mnUnitsBatchQuantity = 0) assign DS mnExtendedQuantity = DS mnQuantity
1.5 If the DS nLevel = 0 then
DS Extended Quantity = DS mnQuantity * TempRequestedQuantity
/ mnTempBatchQuantity
1.6 if DS nLevel != 0 then Get the next link list item starting at the first
item nLevel times.
DS Extended Quantity = DS mnQuantity * Link List Quantity /
mnTempBatchQuantity
1.7 Delete all nodes below current node and decrement node count incase the
level is higher that previous(i.e. going form Level 1, 2, 3, 4, 2, 2, 2, 3,
4, 1)
1.8 Add Extended cost to link list increment node count.
D3000370 - Calcualte Extended Quantity
Parameter Name | Data Item | Data Type | Req/Opt | I/O/Both |
---|---|---|---|---|
mnQuantity | QTY | MATH_NUMERIC | NONE | NONE |
The number of units associated with an asset. | ||||
mnExtendedQuantity | QTY | MATH_NUMERIC | NONE | NONE |
The number of units associated with an asset. | ||||
cDeleteAllNodes | MODE | char | NONE | NONE |
The processing mode used in Purchase Order Consolidator to signify when specific orders are being processed. | ||||
mnUnitsBatchQuantity | BQTY | MATH_NUMERIC | NONE | NONE |
The quantity of finished units that you expect this bill of material or routing to produce. You can specify varying quantities of components
| ||||
cFixedOrVariableQty | FORQ | char | NONE | NONE |
A code that indicates if the quantity per assembly for an item on the bill of material varies according to the quantity of the parent item
| ||||
nLevel | INT01 | integer | NONE | NONE |
Number of Days in Future to Query for Responses Due. | ||||
idPointerToLinkedList | GENLNG | ID | NONE | NONE |
General purpose ID variable. | ||||
nNodeCount | INT02 | integer | NONE | NONE |
Number of Days in the Past to Query for Quote Requests Received. | ||||
mnRequestedQuantity | BQTY | MATH_NUMERIC | NONE | NONE |
The quantity of finished units that you expect this bill of material or routing to produce. You can specify varying quantities of components
|
None |
None |