Hello
No I try to link "Payment on Account" with the invoices like SAP (checkbox in Incoming Payments)
I use the next code
globals.oPayments.Invoices.AppliedFC=0;
globals.oPayments.Invoices.DocEntry = 115;
globals.oPayments.Invoices.DocLine=0;
globals.oPayments.Invoices.InvoiceType = BoRcptInvTypes.it_Receipt;
globals.oPayments.Invoices.
globals.oPayments.Invoices.SumApplied = -700;
globals.oPayments.Invoices.Add();
globals.oPayments.Invoices.SetCurrentLine(1);
globals.oPayments.Invoices.AppliedFC=0;
globals.oPayments.Invoices.DocEntry = 50;
globals.oPayments.Invoices.DocLine=0;
globals.oPayments.Invoices.InvoiceType = BoRcptInvTypes.it_Invoice;
globals.oPayments.Invoices.SumApplied = 1265;
globals.oPayments.Invoices.Add();
But I get this error "Base document card and target document card do not match. RCT2.DocLine]line: 1]"
Thanks for the help
Edited by: David Munoz on Dec 8, 2009 8:32 PM