It looks like you're new here. Sign in or register to get started.
Vendor.SETRANGE("Date Filter",theFromDate,theToDate); Vendor.SETFILTER("Purchases (LCY)",'>0'); IF Vendor.FINDSET THEN REPEAT TTMTotal += Vendor."Purchases (LCY)"; UNTIL Vendor.NEXT = 0;
VendorLedgerEntry.SETRANGE("Posting Date",theFromDate,theToDate); VendorLedgerEntry.CALCSUMS("Purchase (LCY)"); TTMTotal := VendorLedgerEntry."Purchase (LCY)" * -1;
Answers
TTMTotal is by vendor ID, not total for all vendors
I have over 2600 Vendors
Or to get the total directly: