This commit is contained in:
2023-11-24 16:11:10 +07:00
parent 1fb0913eb5
commit ddf01d2246
+6 -1
View File
@@ -393,8 +393,13 @@ const generateCode = async (trx, c_partner_code, d_payment_recon) => {
const insertCashInDetail = async (trx, data) => {
let result = [];
// if (data.length > 0) {
result = await trx('payment.t_d_cash_in_detail').insert(data, ['*']);
// result = await trx('payment.t_d_cash_in_detail').insert(data, ['*']);
// }
if (data) {
result = await trx('payment.t_d_cash_in_detail').insert(data, ['*']);
}
return result;
};