Skip to Content
author's profile photo Former Member
Former Member

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

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

Add a comment
10|10000 characters needed characters exceeded

Related questions

1 Answer

  • Posted on Oct 20, 2008 at 01:49 PM


    This forum is specific to the Business Intelligence offerings of Business Objects, a recent acquisition by SAP.

    You may have better luck posting in the SAP Business One SDK forums.


    Ted Ueda

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.