on 10-18-2008 8:16 AM
Hi All,
I am posting Sales Order on click event of Add Button in SALES QUOTATION.
Its working fine and sales order are creating. But when I pass Discount Value in row level (Item Wise) then every value gets converted into zero in Sales Order.
While debugging I checked every value is passing and also its adding.
There is no error while adding but when I go in sales order total,unitprice,Row discount is zero
Please suggest me.............................
Code is :-
vSO = ocompany.GetBusinessObject(SAPbobsCOM.BoObjectTypes.oOrders)
vSO.DocObjectCode = SAPbobsCOM.BoObjectTypes.oOrders
vSO.DocNum = sdocnum_SO
vSO.CardCode = scustcode
vSO.HandWritten = SAPbobsCOM.BoYesNoEnum.tNO
vSO.DocDate = sdocdate
vSO.DocDueDate = sdocduedate
vSO.DiscountPercent = dDiscount
vSO.Lines.ItemCode = sitemcode
vSO.Lines.ItemDescription = sdesc
vSO.Lines.WarehouseCode = sWhs
vSO.Lines.Quantity = squantity
vSO.Lines.Price = sprice
vSO.Lines.DiscountPercen = dDiscount_Lines
Dear Vikas Saxena,
What discount percent do you input?
If the dDiscount is 100, then mean it is 100% discount then the total will become zero.
Best Regards
Jane Jing
SAP Business One Forums team
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
97 | |
11 | |
11 | |
6 | |
6 | |
4 | |
4 | |
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.