Description
Link to tax invoices from down payments for Russia localization. The whole "Linked Down Payments" subobject is read-only, meaning it is completed automatically during the adding of Tax Invoices (no matter if via UI or DI) and user can read the values via DI API using this subobject (LinkedDownPayments).
Source table: TSI4 for A/R tax invoices, TPI4 for A/P tax invoices.
Remarks
Example
| C# | Copy Code |
|---|
SAPbobsCOM.TaxInvoices taxInvoice = oCompany.GetBusinessObject(SAPbobsCOM.BoObjectTypes.oSalesTaxInvoice) as SAPbobsCOM.TaxInvoices; taxInvoice.GetByKey(1); SAPbobsCOM.TaxInvoice_LinkedDownPayments taxInvoiceDPMs = taxInvoice.LinkedDownPayments; if (taxInvoiceDPMs.Count < 1) { Console.WriteLine(""no linked down payments found""); } else { Console.WriteLine(""count: "" + taxInvoiceDPMs.Count); for (int line = 0; line < taxInvoiceDPMs.Count; line++) { taxInvoiceDPMs.SetCurrentLine(line); Console.WriteLine(""line "" + (line + 1) + "":""); Console.WriteLine("" DocEntry: "" + taxInvoiceDPMs.DocEntry); Console.WriteLine("" LineNum: "" + taxInvoiceDPMs.LineNum); Console.WriteLine("" DownPaymentType: "" + taxInvoiceDPMs.DownPaymentType); Console.WriteLine("" DownPaymentEntry: "" + taxInvoiceDPMs.DownPaymentEntry; Console.WriteLine("" DownPaymentNum: "" + taxInvoiceDPMs.DownPaymentNum); Console.WriteLine("" PaymentType: "" + taxInvoiceDPMs.PaymentType); Console.WriteLine("" PaymentEntry: "" + taxInvoiceDPMs.PaymentEntry; Console.WriteLine("" PaymentNum: "" + taxInvoiceDPMs.PaymentNum); Console.WriteLine("" PaymentTaxDate: "" + taxInvoiceDPMs.PaymentTaxDate); Console.WriteLine("" TransferDate: "" + taxInvoiceDPMs.TransferDate); Console.WriteLine("" TransferReference: "" + taxInvoiceDPMs.TransferReference; Console.WriteLine("" AmountToDraw: "" + taxInvoiceDPMs.AmountToDraw); Console.WriteLine("" AmountToDrawFC: "" + taxInvoiceDPMs.AmountToDrawFC); Console.WriteLine("" AmountToDrawSC: "" + taxInvoiceDPMs.AmountToDrawSC); Console.WriteLine("" DocCurrency: "" + taxInvoiceDPMs.DocCurrency); } } |
|
See Also