how to calculate invoices more than 1?

bangswitbangswit Member Posts: 265
hi all....
i have 3 invoices with external doc no 1
for example external doc no = PO001 and then i have invoice = INV001,INV002,INV003
how to calculate Amount and Amount Including VAT for summary using parameter = PO001
thanks

Answers

  • AndwianAndwian Member Posts: 627
    SalesInvHeader.SETRANGE("External Doc. No.",PO0001);
    IF SalesInvHeader.FIND('-') THEN BEGIN
      SalesInvHeader.CALCFIELDS(Amount);
      TotalAmt =+ Amount;
    END;
    
    Regards,
    Andwian
  • bangswitbangswit Member Posts: 265
    Andwian wrote:
    SalesInvHeader.SETRANGE("External Doc. No.",PO0001);
    IF SalesInvHeader.FIND('-') THEN BEGIN
      SalesInvHeader.CALCFIELDS(Amount);
      TotalAmt =+ Amount;
    END;
    
    Thanks a lot
  • AndwianAndwian Member Posts: 627
    I forgot to place the REPEAT UNTIL
    Regards,
    Andwian
  • bangswitbangswit Member Posts: 265
    Andwian wrote:
    I forgot to place the REPEAT UNTIL
    it's okay
    i add it already...
Sign In or Register to comment.