add stamp & fix tax & payer partner & deliveryPartner
This commit is contained in:
@@ -418,10 +418,12 @@ public abstract class InvoiceGenerator {
|
||||
}
|
||||
|
||||
// In the invoice currency
|
||||
invoice.setInTaxTotal(invoice.getExTaxTotal().add(invoice.getTaxTotal()));
|
||||
// invoice.setInTaxTotal(invoice.getExTaxTotal().add(invoice.getTaxTotal()));
|
||||
invoice.setCompanyInTaxTotal(invoice.getCompanyInTaxTotal().add(invoice.getStamp().add(invoice.getFixTax())));
|
||||
|
||||
// In the company accounting currency
|
||||
invoice.setCompanyInTaxTotal(invoice.getCompanyExTaxTotal().add(invoice.getCompanyTaxTotal()));
|
||||
// invoice.setCompanyInTaxTotal(invoice.getCompanyExTaxTotal().add(invoice.getCompanyTaxTotal()));
|
||||
invoice.setInTaxTotal(invoice.getExTaxTotal().add(invoice.getTaxTotal()).add(invoice.getStamp().add(invoice.getFixTax())));
|
||||
|
||||
invoice.setAmountRemaining(invoice.getInTaxTotal());
|
||||
invoice.setHasPendingPayments(false);
|
||||
|
||||
@@ -146,6 +146,14 @@
|
||||
<!-- is approach -->
|
||||
<boolean name="isInvoiceApproach" title="Facture d'approche" />
|
||||
|
||||
<decimal name="stamp" title="stamp" scale="2" precision="20" />
|
||||
<decimal name="fixTax" title="fix Tax" scale="2" precision="20" />
|
||||
|
||||
|
||||
<many-to-one name="payerPartner" ref="com.axelor.apps.base.db.Partner" title="Payer Supplier"/>
|
||||
<many-to-one name="deliveryPartner" ref="com.axelor.apps.base.db.Partner" title="Delivery Supplier"/>
|
||||
|
||||
|
||||
<unique-constraint columns="invoiceId,company"/>
|
||||
|
||||
<extra-code><![CDATA[
|
||||
|
||||
Reference in New Issue
Block a user