public void SavePaymentBachLog(int ClientId, int OrgId, int BatchId, string ErrorMsg, Ctx ct, Trx trx) { MVA009PaymentBatchLog paymentBatchLog = new MVA009PaymentBatchLog(ct, 0, trx); paymentBatchLog.SetAD_Client_ID(ClientId); paymentBatchLog.SetAD_Org_ID(OrgId); paymentBatchLog.SetVA009_Batch_ID(BatchId); paymentBatchLog.SetIsError(true); paymentBatchLog.SetTextMsg(errorMsg); paymentBatchLog.Save(); }
public void SaveRecordPaymentBachLog(int ClientId, int OrgId, int BatchId, string paymentDocumentNo, string allocationDocumentNo, Ctx ct, Trx trx) { MVA009PaymentBatchLog paymentBatchLog = new MVA009PaymentBatchLog(ct, 0, trx); paymentBatchLog.SetAD_Client_ID(ClientId); paymentBatchLog.SetAD_Org_ID(OrgId); paymentBatchLog.SetVA009_Batch_ID(BatchId); paymentBatchLog.SetIsError(false); if (paymentDocumentNo != "" && allocationDocumentNo != "") { paymentBatchLog.SetSummary("Payment Generated Document No are : " + paymentDocumentNo.Substring(0, paymentDocumentNo.Length - 2) + " And View Allocation Generated Document no are : " + allocationDocumentNo.Substring(0, allocationDocumentNo.Length - 2)); } else if (paymentDocumentNo != "") { paymentBatchLog.SetSummary("Payment Generated Document No are : " + paymentDocumentNo.Substring(0, paymentDocumentNo.Length - 2)); } else if (allocationDocumentNo != "") { paymentBatchLog.SetSummary("View Allocation Generated Document no are : " + allocationDocumentNo.Substring(0, allocationDocumentNo.Length - 2)); } paymentBatchLog.Save(); }