mirror of
https://github.com/mohamadihsan/topuponline.git
synced 2026-12-06 23:26:28 +00:00
update
This commit is contained in:
@@ -219,7 +219,16 @@ const _generateCashIn = async (uniqueCode) => {
|
||||
item.c_invoice_no
|
||||
);
|
||||
for (const detail of reserv) {
|
||||
data.push({
|
||||
// data.push({
|
||||
// i_cash_in: cashIn.i_cash_in,
|
||||
// c_reservation_no: detail.c_reservation_no,
|
||||
// m_amount: detail.i_reservation_amount,
|
||||
// c_payment_recon_no: detail.c_payment_recon_no,
|
||||
// d_payment: detail.d_payment,
|
||||
// d_payment_recon: detail.d_payment_recon,
|
||||
// c_load_balance_no: detail.c_load_balance_no,
|
||||
// });
|
||||
let temp = {
|
||||
i_cash_in: cashIn.i_cash_in,
|
||||
c_reservation_no: detail.c_reservation_no,
|
||||
m_amount: detail.i_reservation_amount,
|
||||
@@ -227,7 +236,7 @@ const _generateCashIn = async (uniqueCode) => {
|
||||
d_payment: detail.d_payment,
|
||||
d_payment_recon: detail.d_payment_recon,
|
||||
c_load_balance_no: detail.c_load_balance_no,
|
||||
});
|
||||
};
|
||||
|
||||
let reserveNo = detail.c_reservation_no;
|
||||
|
||||
@@ -238,6 +247,7 @@ const _generateCashIn = async (uniqueCode) => {
|
||||
};
|
||||
|
||||
await model.updateIntoReserve(trx, dataReserve, reserveNo);
|
||||
await model.insertCashInDetail(trx, temp);
|
||||
}
|
||||
await wait(5000);
|
||||
winston.logger.info(
|
||||
@@ -245,7 +255,7 @@ const _generateCashIn = async (uniqueCode) => {
|
||||
dataCahsIn
|
||||
)}`
|
||||
);
|
||||
await model.insertCashInDetail(trx, data);
|
||||
// await model.insertCashInDetail(trx, data);
|
||||
// await model.insertPostingEt(code, item, trx)
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user