![]() |
#7 |
Участник
|
Я конечно не экстрасенс
![]() X++: static void SalesTotalsPosted(Args _args) { SalesTable salesTable; CustInvoiceJour custInvoiceJour; CustTrans custTrans; SalesId salesId = "??0031"; ; select salesTable where salesTable.SalesId == salesId join custInvoiceJour where custInvoiceJour.SalesId == salesTable.SalesId join custTrans where custTrans.Invoice == custInvoiceJour.InvoiceId; info(strfmt("InvoiceAmount: %1, SettelAmount: %2, Balance: %3", custTrans.AmountCur , custTrans.SettleAmountCur, custTrans.AmountCur - custTrans.SettleAmountCur)); } |
|