ApplicableTradeTax: disable ExemptionReason if CategoryCode exist
This commit is contained in:
parent
d065f74482
commit
81f6a3e4a8
1 changed files with 1 additions and 1 deletions
|
@ -38,7 +38,7 @@ this repository contains the full copyright notices and license terms. -->
|
|||
<ram:ApplicableTradeTax>
|
||||
<ram:CalculatedAmount py:if="amount" py:attrs="{'currencyID': this.invoice.currency.code}">${amount * this.type_sign}</ram:CalculatedAmount>
|
||||
<ram:TypeCode>${this.tax_unece_code(tax)}</ram:TypeCode>
|
||||
<ram:ExemptionReason py:if="tax.legal_notice">${tax.legal_notice}</ram:ExemptionReason>
|
||||
<ram:ExemptionReason py:if="tax.legal_notice and not this.tax_category_code(tax)">${tax.legal_notice}</ram:ExemptionReason>
|
||||
<ram:BasisAmount py:if="base">${base * this.type_sign}</ram:BasisAmount>
|
||||
<ram:CategoryCode>${this.tax_category_code(tax)}</ram:CategoryCode>
|
||||
<ram:RateApplicablePercent py:if="tax.type == 'percentage'">${tax.rate * 100}</ram:RateApplicablePercent>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue