Add payment plan details

This commit is contained in:
Enrique Barcelli 2021-12-03 14:08:20 +08:00
parent c2239c2b3c
commit 578ac2d0ec

View file

@ -13,7 +13,8 @@ c_invoice.isactive,c_invoice.issotrx,
c_invoicetax.taxbaseamt,c_invoicetax.taxamt, c_invoicetax.taxbaseamt,c_invoicetax.taxamt,
taxinvoice.name, taxinvoice.name,
c_invoicelinetax.taxbaseamt,c_invoicelinetax.taxamt, c_invoicelinetax.taxbaseamt,c_invoicelinetax.taxamt,
taxline.name taxline.name,
fin_payment_schedule.amount as cuota, fin_payment_schedule.origduedate
from 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 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_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 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