From 578ac2d0ec0cb4d32491d4370987474608e98fca Mon Sep 17 00:00:00 2001 From: Enrique Barcelli Date: Fri, 3 Dec 2021 14:08:20 +0800 Subject: [PATCH] Add payment plan details --- src/org/openbravo/kikobar/intfactsunat/query.sql | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/org/openbravo/kikobar/intfactsunat/query.sql b/src/org/openbravo/kikobar/intfactsunat/query.sql index c1a907a..8d1dcd8 100644 --- a/src/org/openbravo/kikobar/intfactsunat/query.sql +++ b/src/org/openbravo/kikobar/intfactsunat/query.sql @@ -13,7 +13,8 @@ c_invoice.isactive,c_invoice.issotrx, c_invoicetax.taxbaseamt,c_invoicetax.taxamt, taxinvoice.name, c_invoicelinetax.taxbaseamt,c_invoicelinetax.taxamt, -taxline.name +taxline.name, +fin_payment_schedule.amount as cuota, fin_payment_schedule.origduedate from @@ -33,6 +34,7 @@ left join c_tax as taxline on taxline.c_tax_id = c_invoicelinetax.c_tax_id left join ad_org as division on division.ad_org_id = c_invoice.ad_org_id left join ad_org as parent on parent.ad_org_id = division.ad_legalentity_org_id left join ad_orginfo on ad_orginfo.ad_org_id = parent.ad_org_id +left join fin_payment_schedule on fin_payment_schedule.c_invoice_id = c_invoice.c_invoice_id