Hi
We need to generate a report from Navision 5.0 (Incadea) from the table Service Ledger Entry.
The date from the table is as follows:
Type Resource No Order No Closed Entry-Type Quantity
(Option) (Data Type: Code) (Code) (Boolean) (Option) (Decimal)
Resource 1001 SO-001 Yes Usage 2.0
Labour T1 SO-001 Yes Sale 1.5
Labour T2 SO-001 Yes Sale 1.0
Resource 1002 SO-002 Yes Usage 2.5
Labour T1 SO-002 Yes Sale 1.5
Resource 1003 SO-004 No Usage 1.0
1) If all unique Resource No, where Closed is Yes, are needed in a excel report, then can anyone confirm whether the below code is correct:
IF "Service Ledger Entry".Closed THEN BEGIN
IF "Service Ledger Entry".FINDSET THEN
REPEAT
Variable : = "Service Ledger Entry".Resource No
UNTIL "Service Ledger Entry".NEXT = 0
END;
2) how to write the code so that we can get the sum of Quantity by Resource No where:
Entry-Type = Sale, Closed= Yes
*This post is locked for comments