on 09-25-2018 8:43 AM
Hi ,
I set the Quantities decimal settings to 6 ..
Administrator->System Initialization->General Settings ->Display-> Quantities -> 6
Then i try to add new Purchase Invoice with ServiceLayer.
Document invoice = new Document();
invoice.CardCode = "S001";
invoice.DocDate = docdate;
invoice.DocDueDate = docdate;
invoice.TaxDate = docdate;
invoice.DocCurrency = "TRY";
invoice.DocType = "dDocument_Item";
invoice.DownPaymentType = "tYES";
Document_Lines newLine = new Document_Lines();
newLine.ItemCode = "I001";
newLine.UnitPrice = 10000;
newLine.Quantity = 0.0003;
newLine.VatGroup = "P05";
Invoice.DocumentLines.Add(newLine);
Document newInvoice = currentOdataService.AddNewPurchaseInvoice(Invoice);
It adds invoice correctly when newLine.Quantity = 0.0003.
But when I change the quantity line to newLine.Quantity = 0.00003. it adds invoice incorrectly. The invoice quantity changes to 1. How can i add invoice when quantity is smaller than 0.0001 with service layer.
Hi Ralph Oliveira,
I will be checking this issue further at my side.
Gul Ay, if you will be reporting the issue to SAP Business One Support Team, please mention the link of this thread in the incident.
Kind regards,
ANKIT CHAUHAN
SAP Business One Support
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Ankit,
I am trying to create a sales order via SAP HANA Service Layer using Services metadata.
So I am going through several websites.
I found this "currentOdataService" word in several code which are provided in websites.
I wanted to know how we can create this object and what is the used of it.
Thanks & Regards.
Manish Pant
User | Count |
---|---|
108 | |
12 | |
11 | |
6 | |
5 | |
4 | |
3 | |
3 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.