Add miscellaneous charges in sales order using x++

Hi All,

I am creating sales order by using x++.

I have also need to create miscellaneous charges for the sales order.

I don’t know how to add miscellaneous charges in the sales order programmatically. Please help me.

Thanks in advance,

Hari

Hi,

You should use the MarkupTrans table, it stores Miscellaneous charges for a specific sales order.

I had a quick look, I’d use initform… and insert() methods, called by you code passing salesTable buffer as parm

You haven’t provided sample code you use to create your salesOrder, so Ican’t tell you more

regards,

Thomas

for reference see \Data Dictionary\Tables\ShipCarrierPackage\Methods\createMiscCharge