Special User Feature - Stock Group Adjustment

Document path Reference Contents > Optional Special User Functions > Special User Feature - Stock Group Adjustment

This special user feature is available in open source form in OpenVision.lbs.

This Special User Feature consists of 1 file class, 3 window classes and 2 report classes.

File: DYNFILE hold group quantity and other data.
Window: wOptLengthMaint is provided for creation and maintenance of Stock Group records. It is this class that needs to be entered in the Settings as a Special Function.
Window: wOptLengthPrint is provided for report printing and is opened by the Print button on the maintenance window.
Window: wOptLengthAdjust is provided for in-process group quantity adjustment and is normally automatically opened from within the $StockTransaction method of oCustom1.
Report: rOptLengthList
Report: rOptLengthStatus

Note NOTE: Although the classes are all available in open source form in OpenVision.lbs, any customisation of them will inevitably lead to them diverging from the standard supported classes.

Customisation CUSTOM CAPABILITY: For the window to semi-automatically maintain group quantities, the $StockTransaction method in oCustom1 requires the addition of special code. The following example code is appropriate:

If not(pos(pMoveType,'ABCDEFGHIJN')&(pQtyIntoPhysical<>0.000))
 Quit method 
End If
Test for a current record {PTMFILE}
If not(#F&(mid(PTMPTNO,1,1)='$')&(mid(PTMPTNO,4,1)<>'0'))
 ;This IF logic determines which parts Group Lengths apply to.
 Quit method 
End If
Do $windows.wOptLengthAdjust.$openonce('',kWindowCenter,pQtyIntoPhysical)

The window cannot be closed until an Ok is operated. When the window opens and no Group Lengths file record is found for the part, an error message will be presented and the window will be closed.



Part Number

Part Group Quantities. Part Number - inner join to PTMPTNO. {DYNFILE.DYNPTNO char 18}

Part Description

Parts Master. Part description. {PTMFILE.PTMDESC char national 30}


Part Group Quantities. User Reference. {DYNFILE.DYNUSER char 10}

Store Location

Parts Master. Stores single or preferred location. {PTMFILE.PTMSLOC char 8}

Stock Units of Measure

Parts Master. Standard stock unit of measure. {PTMFILE.PTMSTUM char national 6}

Transfer Quantity if any

The movement quantity in stock units of measure, if any.

Physical Stock (after transaction)

Parts Master. Inventory physical quantity. {PTMFILE.PTMPHYQ number 3dp}

Group Units of Measure

Part Group Quantities. Group Unit of Measure (UoM). {DYNFILE.DYNUNIT char 6}

Group Multiplier

Part Group Quantities. Group UoM Multiplier. {DYNFILE.DYNMULT number 4dp}

Group Units

Part Group Quantities. Group Unit of Measure (UoM). {DYNFILE.DYNUNIT char 6}

Current Quantity

The current group quantities.

Subtract Quantity

Enter a quantity removed from stock as part of the transaction.

Add Quantity

Enter a quantity added to stock as part of the transaction.

Result Quantity

The group quantities that will be saved when the transaction is confirmed.

Total Group Qty

Total resulting quantity of length units.

Calculated Total Stock Qty

Total resulting calculated physical equivalent in stock units of measure.




To revert any changes to the previously saved version.


The OK button updates the data you have entered, or confirms the selection and/or processes the function you have called.

Customisation CUSTOM CAPABILITY: This is a customisation class which is provided in open-source form within your OpenVision.lbs library. It may have been originally developed for a specific Caliach Vision user and may be highly specific to their data. It is not covered by normal customer support.

See also: -

Compiled in Program Version 3.10. Help data last modified 22 MAY 2008 08:27. Class wOptLengthAdjust last modified 21 MAY 2008 13:31:26.

Document path Reference Contents > Optional Special User Functions > Special User Feature - Stock Group Adjustment