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 SkipVought 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 Open Item Discount Amount using Extensibility C# Code

Status
Not open for further replies.

Vikram Singh

Programmer
Jan 3, 2018
39
0
6
KW

Hello ,

By using the below code I can add a discount to my Order and it is working fine . I want to know what changes I have to
make to add an Open Amount Discount to the Check. Please help me with the required C# code

Code:
var result = OpsContext.ProcessCommand(new OpsCommand(OpsCommandType.Discount) { Number = DisObjNum });
resultOk = result.IsSuccess;

 
Code:
 OpsCommand command = new OpsCommand(OpsCommandType.Discount)
                    {
                        Number = discountObjNumber,
                        Text = Open Amount
                    };
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top