This commit is contained in:
2024-01-24 19:17:02 +07:00
+1 -1
View File
@@ -378,7 +378,7 @@ const getPartnerRecon = async (trx) => {
'i_company',
'i_holding',
trx.raw(`CASE
WHEN to_char(tdpr.d_payment, 'MM') >= to_char(tdi.d_invoice_date, 'MM')
WHEN to_char(tdpr.d_payment, 'YYYYMM') >= to_char(tdi.d_invoice_date, 'YYYYMM')
THEN 'IP'
ELSE
'OP'