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.
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.