Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to add a discount to a specific line item using Simphony Extensability

Status
Not open for further replies.

SaberPOS

Programmer
Mar 12, 2021
12
US
Hey guys. Does anyone know how to add an item level discount using Simphony Extensibility Framework? I see the OpsContext.ProcessCommand(new OpsCommand(OpsCommandType.Discount) { Number = DisObjNum }); but I'm unsure as to how to apply this discount to a specific item. Is there some method I need to use to select the line item first and then apply the discount? I can't seem to find anything about this in the documentation. Is it possibly not supported?

Thanks
 
If anyone else runs into this you need to use OpsCommandType.DetailSelected command to first select the item and then you can run the discount command. Make sue the discount Id you use is actually setup as a line item discount. OpsContext.ProcessCommand(new OpsCommand(OpsCommandType.DetailSelected) { Number = 1 });
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top