File tree Expand file tree Collapse file tree 3 files changed +4
-5
lines changed
java/io/github/project/openubl/xbuilder/renderer Expand file tree Collapse file tree 3 files changed +4
-5
lines changed Original file line number Diff line number Diff line change @@ -94,10 +94,9 @@ public class EngineProducer {
94
94
)
95
95
.addValueResolver (ValueResolver .builder ()
96
96
.applyToBaseClass (BigDecimal .class )
97
- .applyToName ("multiply " )
97
+ .applyToName ("multiplyByInt " )
98
98
.resolveSync (ctx -> ((BigDecimal ) ctx .getBase ())
99
99
.multiply (new BigDecimal ((Integer ) ctx .getParams ().get (0 ).getLiteral ()))
100
- .setScale (2 , RoundingMode .HALF_EVEN )
101
100
)
102
101
.build ()
103
102
)
Original file line number Diff line number Diff line change 59
59
<cac : PaymentTerms >
60
60
<cbc : ID >Detraccion</cbc : ID >
61
61
<cbc : PaymentMeansID >{detraccion.tipoBienDetraido}</cbc : PaymentMeansID >
62
- <cbc : PaymentPercent >{detraccion.porcentaje.multiply (100).scale(2)}</cbc : PaymentPercent >
62
+ <cbc : PaymentPercent >{detraccion.porcentaje.multiplyByInt (100).scale(2)}</cbc : PaymentPercent >
63
63
<cbc : Amount currencyID =" {moneda}" >{detraccion.monto.scale(2)}</cbc : Amount >
64
64
</cac : PaymentTerms >
65
65
{/if}
Original file line number Diff line number Diff line change 16
16
<cbc : TaxableAmount currencyID =" {moneda}" >{item.iscBaseImponible.scale(2)}</cbc : TaxableAmount >
17
17
<cbc : TaxAmount currencyID =" {moneda}" >{item.isc.scale(2)}</cbc : TaxAmount >
18
18
<cac : TaxCategory >
19
- <cbc : Percent >{item.tasaIsc.multiply (100).scale(2)}</cbc : Percent >
19
+ <cbc : Percent >{item.tasaIsc.multiplyByInt (100).scale(2)}</cbc : Percent >
20
20
<cbc : TierRange >{item.iscTipo}</cbc : TierRange >
21
21
<cac : TaxScheme >
22
22
<cbc : ID >2000</cbc : ID >
31
31
<cbc : TaxAmount currencyID =" {moneda}" >{item.igv.scale(2)}</cbc : TaxAmount >
32
32
<cac : TaxCategory >
33
33
<cbc : ID schemeAgencyName =" United Nations Economic Commission for Europe" schemeID =" UN/ECE 5305" schemeName =" Tax Category Identifier" >{item.igvTipo.toCatalog7.taxCategory.categoria}</cbc : ID >
34
- <cbc : Percent >{item.tasaIgv.multiply (100)}</cbc : Percent >
34
+ <cbc : Percent >{item.tasaIgv.multiplyByInt (100).scale(2 )}</cbc : Percent >
35
35
<cbc : TaxExemptionReasonCode listAgencyName =" PE:SUNAT" listName =" Afectacion del IGV" listURI =" urn:pe:gob:sunat:cpe:see:gem:catalogos:catalogo07" >{item.igvTipo.toCatalog7.code}</cbc : TaxExemptionReasonCode >
36
36
<cac : TaxScheme >
37
37
<cbc : ID schemeAgencyName =" PE:SUNAT" schemeID =" UN/ECE 5153" schemeName =" Codigo de tributos" >{item.igvTipo.toCatalog7.taxCategory.code}</cbc : ID >
You can’t perform that action at this time.
0 commit comments