Finalizing Work Order through Custom Button


A

Alexander.Romanoff

I'm developing Custom POS button to process open Work Order using C#.

This button should do some custom functionality like sending some data
to payment processor (it's already implemented) after this order should
be mark as Closed, Inventory should be updated etc.

The problem is that I cannot find any ways of how to finalize the order
(for some reasons Transaction.Post doesn't work).

It's a code that I currently use. What else can I do to reach my goal?

int setDepositResult =
Convert.ToInt32(transactionComType.InvokeMember("SetDepositTotal",BindingFlags.InvokeMethod,
null,transaction,new object[1] {Convert.ToDecimal(total)}));

object tender =
sessionComType.InvokeMember("TenderDefault",BindingFlags.GetProperty,
null,transaction,null);

Type tenderComType = tender.GetType();

tenderComType.InvokeMember("AmountIn", BindingFlags.SetProperty, null,
tender, new object[1] {Convert.ToDecimal(total)});

int tendersForceValidationResult =
Convert.ToInt32(transactionComType.InvokeMember("TendersForceValidation",BindingFlags.InvokeMethod,
null, transaction, null));

int postFunctionResult =
Convert.ToInt32(transactionComType.InvokeMember("Post",
BindingFlags.InvokeMethod, null, transaction, null));



If it is necessary I'm ready use VB6 or VB.NET. Just extremely need
this button to work.
 
Ad

Advertisements


Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

Pick up entire work order custom button 2
Final accounts 5
POS Buttons -- Click to Show Work Orders 3
Custom Buttons 9
Custom buttons 2
custom buttons 3
Custom Button 1
Custom Buttons 2

Top