Heys I'd need a code unit that adds each item one item ledger entry
so I could fetch Warehouse -> Inventory -> Phys. Inventory Journal list full with the items.
The inventory needs atleast one ledger entry to show up on the phys. inventory journal list. Non of my items has an entry so I would need to populate them, all this will be done on demo database.
Code unit I have done so far is:
nimikkeet.RESET;
nimikkeet.SETCURRENTKEY("No.");
nimikkeet.SETRANGE("No.",'=>0');
IF nimikkeet.FIND('-') THEN
REPEAT
nimikeledger."Entry No." := ???
nimikeledger."Item No." := nimikkeet."No.";
nimikeledger."Qty. per Unit of Measure" := 1;
nimikeledger."Unit of Measure Code" := nimikkeet."Sales Unit of Measure";
nimikeledger.MODIFY(FALSE);
UNTIL nimikkeet.NEXT = 0;
it wont work yet cause I'm not sure how to add the "Entry No." for the ledger table...
Any help would be appreciated. :shock:
K.S.
0
Comments
and
nimikeledger = record var for the phys item ledger table
Rgds,
Jon.
Jon.
one item ledger entry line needs, quantity, measure, unique number and the item name.