Skip to Content
0
Aug 08, 2016 at 10:54 PM

Export Import Invoices using XML

317 Views

I have created an Invoice with "Series" = "X" and then save as xml. Is there a way to ReadXML and change series to manual and set document Number?

mainInvoice.SaveXML("c:\\Invoice.xml");

remoteInvoice.Browser.ReadXml("c:\\Invoice.xml", 0);

remoteInvoice.Series = -1;

remoteInvoice.DocNum = mainInvoice.DocNum;

if (remoteInvoice.Add() != 0)

{

var err = remoteDiCompany.GetLastErrorDescription();

}