Hi,
I am creating Sales Invocies through a .net application using web services. However no matter what I set the document date to, it is overriden with the posting date.
NAV.SalesInvoice si = new NAV.SalesInvoice(); si.Sell_to_Customer_Name = r.Cells["Client"].Value.ToString(); si.Posting_Date = postingDate.Value; si.Document_Date = invoiceDate.Value; nav.AddToSalesInvoice(si); nav.SaveChanges();
Despite having a different posting and invoice date the invoice in NAV has changed the document date to the document posting date.
Subsequent calls to correct it in the routine also don't fix it:
si.Document_Date = invoiceDate.Value; nav.SaveChanges();
Does anyone know how to correct this?
Thanks