mirror of
https://github.com/mohamadihsan/topuponline.git
synced 2026-12-05 10:56:27 +00:00
update schema kmt mobile
This commit is contained in:
@@ -320,7 +320,7 @@ const getSalesKMT = async (trx, code, date, invoice) => {
|
||||
'tdsi.c_invoice_no',
|
||||
'tdsi.m_total_billing as invoice_amount'
|
||||
])
|
||||
.from('sales_kmt.t_d_sales_kmt_mobile AS tdskm')
|
||||
.from('kmt_mobile.t_d_sales_kmt_mobile AS tdskm')
|
||||
.leftJoin('payment.t_d_payment_recon_sales_kmt_mobile as tdpr', 'tdpr.c_sales_no', 'tdskm.c_sales_no')
|
||||
.leftJoin('payment.t_d_sales_invoice as tdsi', 'tdsi.i_sales_invoice', 'tdskm.i_sales_invoice')
|
||||
|
||||
@@ -479,7 +479,7 @@ const getPartnerReconSales = async (trx) => {
|
||||
THEN 'IP' ELSE 'OP'
|
||||
END c_in_period`),
|
||||
])
|
||||
.from('sales_kmt.t_d_sales_kmt_mobile AS tdskm')
|
||||
.from('kmt_mobile.t_d_sales_kmt_mobile AS tdskm')
|
||||
|
||||
.leftJoin('payment.t_d_sales_invoice as tdsi', function () {
|
||||
this.on('tdsi.i_sales_invoice', '=', 'tdskm.i_sales_invoice');
|
||||
@@ -552,7 +552,7 @@ const updateIntoReserve = async (trx, dataReserve, reserveNo) => {
|
||||
};
|
||||
|
||||
const updateIntoSalesKMT = async (trx, dataSales, salesNo) => {
|
||||
let result = await trx('sales_kmt.t_d_sales_kmt_mobile')
|
||||
let result = await trx('kmt_mobile.t_d_sales_kmt_mobile')
|
||||
.update(dataSales, ['*'])
|
||||
.where({ c_sales_no: salesNo });
|
||||
return result;
|
||||
|
||||
Reference in New Issue
Block a user