cancel
Showing results for 
Search instead for 
Did you mean: 

Not posting discount value in Sales Order and make all the value ZERO

Former Member
0 Kudos

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

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

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

Answers (0)