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 Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

I can't send a reference on check trough ResPosApi

Status
Not open for further replies.

alrmd

Programmer
Aug 19, 2013
34
MX
We are sending a payment to a open check trough ResPosApi, the payment made correctly in Micros, but we send a reference to the check, and the reference do not be saved.
We are using Micros 3700. Everything is well configurated, because we can send menu items,payments, etc. Except the check reference.
Here the code:

int lEmp_ObjNum = 501; // obj_num from emp_def
short lOrdTtyp = 1; // order type
short lRvcNum = 1; // rvc number
int lTMed_ObjNum = 306 // obj_num from tmed_def

ApiTransactionService ts = new ApiTransactionService();
ApiTransaction transaction = new ApiTransaction(lEmp_ObjNum , lOrdTtyp , lRvcNum );
transaction.guest_check.CheckSeq = 125465; // check_seq from the check

ResPosApi.ResPosAPI_EPayment ResPoAPIEPayment = new ResPosApi.ResPosAPI_EPayment();
transaction.tmed_detail_ex.TmedObjectNum = 306; // obj_num from table tmed_def
transaction.tmed_detail_ex.TmedPartialPayment = "60.0"; // payment total
transaction.tmed_detail_ex.TmedReference = "Reference Here"; // reference to the check, must be saved on table ref_dtl
transaction.tmed_detail_ex.TmedEPayment = ResPoAPIEPayment; // Epayment class

ts.PostTransEx(transaction); // post the transaction to the POS

Any idea is welcome.
Thanks in advanced.
 
are you ok?
i remember the can't save ,but can display in check.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top