Hi All,
I am using Odata web-service to Create Invoice.
I can create/delete Sales Invoices and SaleInvoiceSalesLines but without quantity and price
The moment i provide the quantity i get error saying "Property "Editable" for Quantity is invalid!" otherwise it creates the sales invoice and sales lines or items
=============================================================================
My code:
Dim uri As Uri = New Uri("myserver:7048/.../Company('CRONUS Canada, Inc.')")
Dim NAV As New productService.NAV(uri)
NAV.Credentials = New NetworkCredential("administrator", "password")
Dim Customer = New productService.mySaleInvoice
Customer.Sell_to_Customer_No = "21"
NAV2.AddTomySaleInvoice(Customer)
NAV2.SaveChanges()
Dim invLines = New productService.mySalesLines
invLines.Document_No = "1027"
invLines.Type = "Item"
invLines.No = "70061"
invLines.Description = "Sanjeev test"
invLines.Quantity = "1.0"
invLines.Unit_of_Measure_Code = "PCS"
invLines.Unit_Price = 50.0
NAV2.AddTomySalesLines(invLines)
NAV2.SaveChanges()