Kittostockfinalize
Form KitToStockFinalizeForm
- Unit name: Forms.KitToStockFinalize
- Form name: KitToStockFinalizeForm
- Old form name: form35 (unit35)
Synopsis
Form to finalize the kit-to-stock move operation.
Functionalities
- Introduce properties:
- OrderKitID (Int64) the order kit
- Quantity (integer)
- LotNumber (string)
- ExpiryDate (TDateTime)
- Label to show kit order ID.
- Label to show kit quanity.
- Grid to show kit details, view KitDoneDetails:
- Dropdown to select location: P.00.00.A P.99.00.A only these 2 locations can be chosen.
- Button to execute FinalizeKit action.
- Button to execute Cancel action.
Actions
FinalizeKit
- Enabled when there are records in view KitDoneDetails, and a location was selected.
- Execute service call Kitting.KitToStock
- Show message that kit stock was succesfully moved.
- Close form, go back to main form.
Cancel
- Always enabled.
- Closes form.
Tables/Views
- Location
- KitDoneDetails
SELECT DISTINCT B.ArtCode, A.ExpiryDATE, A.Lotno, D.UnitQTY AS UnitQTY, sum(B.QTYCF) AS PK_QTY, C.ARTCODE AS MARTCODE FROM INVDETAILS A INNER JOIN OUTDETAILS B ON A.ID = B.INVOICENO INNER JOIN CGROUP C ON ('KG' + CAST (C.ID AS VARCHAR (15))= B.AVIZNO) INNER JOIN CGROUPDET D ON (D.ARTCODE = B.ARTCODE) AND (D.IDNO = C.ID) WHERE (B.AVIZNO = :OrderKitID) AND (pickedby<>'') AND (checkedby= '') GROUP BY B.ArtCode, A.ExpiryDATE, A.Lotno, D.UnitQTY, C.ARTCODE ORDER BY B.ARTCODE, A.Lotno ASC