FIX l10n_it_fatturapa_out when decimal precision is different from 2#642
Merged
Conversation
SimoRubi
suggested changes
Nov 6, 2018
SimoRubi
left a comment
Member
There was a problem hiding this comment.
Tested in runbot and it works, just a note about the implementation
| PrezzoUnitario='%.2f' % prezzo_unitario, | ||
| PrezzoUnitario=eval( | ||
| "'%.' + str(price_precision) + 'f'") % prezzo_unitario, | ||
| Quantita='%.2f' % line.quantity, |
Member
There was a problem hiding this comment.
Could you please do the same with quantity?
You could use self.env['decimal.precision'].precision_get('Product Unit of Measure')
| NumeroLinea=str(line_no), | ||
| Descrizione=line.name, | ||
| PrezzoUnitario='%.2f' % prezzo_unitario, | ||
| PrezzoUnitario=eval( |
Member
There was a problem hiding this comment.
As far as I know eval is often a bad choice, could you please format the string in some other way?
baf23df to
0440fd5
Compare
SimoRubi
suggested changes
Nov 7, 2018
SimoRubi
left a comment
Member
There was a problem hiding this comment.
Works in runbot and implementation is good, could you please check why travis is red?
It looks like it was green before this PR
0440fd5 to
3ee22ad
Compare
- Set 'Product Price' Decimal Accuracy with Digits = 4 - Create an invoice with 1 line with quantity = 24 and price 1.2519 - Export XML In the XML you get Quantità: 24.00 Valore unitario: 1.25 Valore totale: 30.05 While you should have Valore unitario: 1.2519
3ee22ad to
af0fd02
Compare
Member
Author
Member
|
@eLBati, is still |
Member
Author
|
@tafaRU no |
eLBati
added a commit
to eLBati/l10n-italy
that referenced
this pull request
Nov 16, 2018
- Set 'Product Price' Decimal Accuracy with Digits = 4 - Create an invoice with 1 line with quantity = 24 and price 1.2519 - Export XML In the XML you get Quantità: 24.00 Valore unitario: 1.25 Valore totale: 30.05 While you should have Valore unitario: 1.2519
eLBati
added a commit
to eLBati/l10n-italy
that referenced
this pull request
Dec 5, 2018
- Set 'Product Price' Decimal Accuracy with Digits = 4 - Create an invoice with 1 line with quantity = 24 and price 1.2519 - Export XML In the XML you get Quantità: 24.00 Valore unitario: 1.25 Valore totale: 30.05 While you should have Valore unitario: 1.2519
eLBati
added a commit
to eLBati/l10n-italy
that referenced
this pull request
Dec 7, 2018
- Set 'Product Price' Decimal Accuracy with Digits = 4 - Create an invoice with 1 line with quantity = 24 and price 1.2519 - Export XML In the XML you get Quantità: 24.00 Valore unitario: 1.25 Valore totale: 30.05 While you should have Valore unitario: 1.2519
eLBati
added a commit
to eLBati/l10n-italy
that referenced
this pull request
Dec 7, 2018
- Set 'Product Price' Decimal Accuracy with Digits = 4 - Create an invoice with 1 line with quantity = 24 and price 1.2519 - Export XML In the XML you get Quantità: 24.00 Valore unitario: 1.25 Valore totale: 30.05 While you should have Valore unitario: 1.2519
eLBati
added a commit
to eLBati/l10n-italy
that referenced
this pull request
Dec 7, 2018
- Set 'Product Price' Decimal Accuracy with Digits = 4 - Create an invoice with 1 line with quantity = 24 and price 1.2519 - Export XML In the XML you get Quantità: 24.00 Valore unitario: 1.25 Valore totale: 30.05 While you should have Valore unitario: 1.2519
eLBati
added a commit
to eLBati/l10n-italy
that referenced
this pull request
Dec 7, 2018
- Set 'Product Price' Decimal Accuracy with Digits = 4 - Create an invoice with 1 line with quantity = 24 and price 1.2519 - Export XML In the XML you get Quantità: 24.00 Valore unitario: 1.25 Valore totale: 30.05 While you should have Valore unitario: 1.2519
ruben-tonetto
pushed a commit
to ruben-tonetto/l10n-italy
that referenced
this pull request
Jan 17, 2019
- Set 'Product Price' Decimal Accuracy with Digits = 4 - Create an invoice with 1 line with quantity = 24 and price 1.2519 - Export XML In the XML you get Quantità: 24.00 Valore unitario: 1.25 Valore totale: 30.05 While you should have Valore unitario: 1.2519
SimoRubi
pushed a commit
to SimoRubi/l10n-italy
that referenced
this pull request
Aug 7, 2019
- Set 'Product Price' Decimal Accuracy with Digits = 4 - Create an invoice with 1 line with quantity = 24 and price 1.2519 - Export XML In the XML you get Quantità: 24.00 Valore unitario: 1.25 Valore totale: 30.05 While you should have Valore unitario: 1.2519
SimoRubi
pushed a commit
to SimoRubi/l10n-italy
that referenced
this pull request
Aug 7, 2019
- Set 'Product Price' Decimal Accuracy with Digits = 4 - Create an invoice with 1 line with quantity = 24 and price 1.2519 - Export XML In the XML you get Quantità: 24.00 Valore unitario: 1.25 Valore totale: 30.05 While you should have Valore unitario: 1.2519
TheMule71
pushed a commit
to TheMule71/l10n-italy
that referenced
this pull request
Nov 6, 2020
- Set 'Product Price' Decimal Accuracy with Digits = 4 - Create an invoice with 1 line with quantity = 24 and price 1.2519 - Export XML In the XML you get Quantità: 24.00 Valore unitario: 1.25 Valore totale: 30.05 While you should have Valore unitario: 1.2519
TheMule71
pushed a commit
to TheMule71/l10n-italy
that referenced
this pull request
Dec 15, 2020
- Set 'Product Price' Decimal Accuracy with Digits = 4 - Create an invoice with 1 line with quantity = 24 and price 1.2519 - Export XML In the XML you get Quantità: 24.00 Valore unitario: 1.25 Valore totale: 30.05 While you should have Valore unitario: 1.2519
TheMule71
pushed a commit
to TheMule71/l10n-italy
that referenced
this pull request
Feb 24, 2021
- Set 'Product Price' Decimal Accuracy with Digits = 4 - Create an invoice with 1 line with quantity = 24 and price 1.2519 - Export XML In the XML you get Quantità: 24.00 Valore unitario: 1.25 Valore totale: 30.05 While you should have Valore unitario: 1.2519
TheMule71
pushed a commit
to TheMule71/l10n-italy
that referenced
this pull request
Feb 25, 2021
- Set 'Product Price' Decimal Accuracy with Digits = 4 - Create an invoice with 1 line with quantity = 24 and price 1.2519 - Export XML In the XML you get Quantità: 24.00 Valore unitario: 1.25 Valore totale: 30.05 While you should have Valore unitario: 1.2519
TheMule71
pushed a commit
to TheMule71/l10n-italy
that referenced
this pull request
Apr 2, 2021
- Set 'Product Price' Decimal Accuracy with Digits = 4 - Create an invoice with 1 line with quantity = 24 and price 1.2519 - Export XML In the XML you get Quantità: 24.00 Valore unitario: 1.25 Valore totale: 30.05 While you should have Valore unitario: 1.2519
SimoneVagile
pushed a commit
to SimoneVagile/l10n-italy
that referenced
this pull request
Apr 22, 2021
- Set 'Product Price' Decimal Accuracy with Digits = 4 - Create an invoice with 1 line with quantity = 24 and price 1.2519 - Export XML In the XML you get Quantità: 24.00 Valore unitario: 1.25 Valore totale: 30.05 While you should have Valore unitario: 1.2519
TheMule71
pushed a commit
to TheMule71/l10n-italy
that referenced
this pull request
Apr 30, 2021
- Set 'Product Price' Decimal Accuracy with Digits = 4 - Create an invoice with 1 line with quantity = 24 and price 1.2519 - Export XML In the XML you get Quantità: 24.00 Valore unitario: 1.25 Valore totale: 30.05 While you should have Valore unitario: 1.2519
TheMule71
pushed a commit
to TheMule71/l10n-italy
that referenced
this pull request
May 7, 2021
- Set 'Product Price' Decimal Accuracy with Digits = 4 - Create an invoice with 1 line with quantity = 24 and price 1.2519 - Export XML In the XML you get Quantità: 24.00 Valore unitario: 1.25 Valore totale: 30.05 While you should have Valore unitario: 1.2519
eLBati
added a commit
to TheMule71/l10n-italy
that referenced
this pull request
May 21, 2021
- Set 'Product Price' Decimal Accuracy with Digits = 4 - Create an invoice with 1 line with quantity = 24 and price 1.2519 - Export XML In the XML you get Quantità: 24.00 Valore unitario: 1.25 Valore totale: 30.05 While you should have Valore unitario: 1.2519
TheMule71
pushed a commit
to TheMule71/l10n-italy
that referenced
this pull request
May 26, 2021
- Set 'Product Price' Decimal Accuracy with Digits = 4 - Create an invoice with 1 line with quantity = 24 and price 1.2519 - Export XML In the XML you get Quantità: 24.00 Valore unitario: 1.25 Valore totale: 30.05 While you should have Valore unitario: 1.2519
TheMule71
pushed a commit
to TheMule71/l10n-italy
that referenced
this pull request
Nov 2, 2022
- Set 'Product Price' Decimal Accuracy with Digits = 4 - Create an invoice with 1 line with quantity = 24 and price 1.2519 - Export XML In the XML you get Quantità: 24.00 Valore unitario: 1.25 Valore totale: 30.05 While you should have Valore unitario: 1.2519
TheMule71
pushed a commit
to TheMule71/l10n-italy
that referenced
this pull request
Nov 2, 2022
- Set 'Product Price' Decimal Accuracy with Digits = 4 - Create an invoice with 1 line with quantity = 24 and price 1.2519 - Export XML In the XML you get Quantità: 24.00 Valore unitario: 1.25 Valore totale: 30.05 While you should have Valore unitario: 1.2519
TheMule71
pushed a commit
to TheMule71/l10n-italy
that referenced
this pull request
Nov 10, 2022
- Set 'Product Price' Decimal Accuracy with Digits = 4 - Create an invoice with 1 line with quantity = 24 and price 1.2519 - Export XML In the XML you get Quantità: 24.00 Valore unitario: 1.25 Valore totale: 30.05 While you should have Valore unitario: 1.2519
TheMule71
pushed a commit
to TheMule71/l10n-italy
that referenced
this pull request
Nov 10, 2022
- Set 'Product Price' Decimal Accuracy with Digits = 4 - Create an invoice with 1 line with quantity = 24 and price 1.2519 - Export XML In the XML you get Quantità: 24.00 Valore unitario: 1.25 Valore totale: 30.05 While you should have Valore unitario: 1.2519
TheMule71
pushed a commit
to TheMule71/l10n-italy
that referenced
this pull request
Nov 11, 2022
- Set 'Product Price' Decimal Accuracy with Digits = 4 - Create an invoice with 1 line with quantity = 24 and price 1.2519 - Export XML In the XML you get Quantità: 24.00 Valore unitario: 1.25 Valore totale: 30.05 While you should have Valore unitario: 1.2519
TheMule71
pushed a commit
to TheMule71/l10n-italy
that referenced
this pull request
Nov 11, 2022
- Set 'Product Price' Decimal Accuracy with Digits = 4 - Create an invoice with 1 line with quantity = 24 and price 1.2519 - Export XML In the XML you get Quantità: 24.00 Valore unitario: 1.25 Valore totale: 30.05 While you should have Valore unitario: 1.2519
TheMule71
pushed a commit
to TheMule71/l10n-italy
that referenced
this pull request
Nov 25, 2022
- Set 'Product Price' Decimal Accuracy with Digits = 4 - Create an invoice with 1 line with quantity = 24 and price 1.2519 - Export XML In the XML you get Quantità: 24.00 Valore unitario: 1.25 Valore totale: 30.05 While you should have Valore unitario: 1.2519
TheMule71
pushed a commit
to TheMule71/l10n-italy
that referenced
this pull request
Nov 25, 2022
- Set 'Product Price' Decimal Accuracy with Digits = 4 - Create an invoice with 1 line with quantity = 24 and price 1.2519 - Export XML In the XML you get Quantità: 24.00 Valore unitario: 1.25 Valore totale: 30.05 While you should have Valore unitario: 1.2519
TheMule71
pushed a commit
to TheMule71/l10n-italy
that referenced
this pull request
Nov 25, 2022
- Set 'Product Price' Decimal Accuracy with Digits = 4 - Create an invoice with 1 line with quantity = 24 and price 1.2519 - Export XML In the XML you get Quantità: 24.00 Valore unitario: 1.25 Valore totale: 30.05 While you should have Valore unitario: 1.2519
TheMule71
pushed a commit
to TheMule71/l10n-italy
that referenced
this pull request
Dec 15, 2022
- Set 'Product Price' Decimal Accuracy with Digits = 4 - Create an invoice with 1 line with quantity = 24 and price 1.2519 - Export XML In the XML you get Quantità: 24.00 Valore unitario: 1.25 Valore totale: 30.05 While you should have Valore unitario: 1.2519
TheMule71
pushed a commit
to TheMule71/l10n-italy
that referenced
this pull request
Dec 15, 2022
- Set 'Product Price' Decimal Accuracy with Digits = 4 - Create an invoice with 1 line with quantity = 24 and price 1.2519 - Export XML In the XML you get Quantità: 24.00 Valore unitario: 1.25 Valore totale: 30.05 While you should have Valore unitario: 1.2519
TheMule71
pushed a commit
to TheMule71/l10n-italy
that referenced
this pull request
Dec 30, 2022
- Set 'Product Price' Decimal Accuracy with Digits = 4 - Create an invoice with 1 line with quantity = 24 and price 1.2519 - Export XML In the XML you get Quantità: 24.00 Valore unitario: 1.25 Valore totale: 30.05 While you should have Valore unitario: 1.2519
TonyMasciI
pushed a commit
to saydigital/l10n-italy
that referenced
this pull request
Jan 9, 2023
- Set 'Product Price' Decimal Accuracy with Digits = 4 - Create an invoice with 1 line with quantity = 24 and price 1.2519 - Export XML In the XML you get Quantità: 24.00 Valore unitario: 1.25 Valore totale: 30.05 While you should have Valore unitario: 1.2519
TonyMasciI
pushed a commit
to saydigital/l10n-italy
that referenced
this pull request
Jan 16, 2023
- Set 'Product Price' Decimal Accuracy with Digits = 4 - Create an invoice with 1 line with quantity = 24 and price 1.2519 - Export XML In the XML you get Quantità: 24.00 Valore unitario: 1.25 Valore totale: 30.05 While you should have Valore unitario: 1.2519
TonyMasciI
pushed a commit
to saydigital/l10n-italy
that referenced
this pull request
Jan 27, 2023
- Set 'Product Price' Decimal Accuracy with Digits = 4 - Create an invoice with 1 line with quantity = 24 and price 1.2519 - Export XML In the XML you get Quantità: 24.00 Valore unitario: 1.25 Valore totale: 30.05 While you should have Valore unitario: 1.2519
TheMule71
pushed a commit
to TheMule71/l10n-italy
that referenced
this pull request
Mar 9, 2023
- Set 'Product Price' Decimal Accuracy with Digits = 4 - Create an invoice with 1 line with quantity = 24 and price 1.2519 - Export XML In the XML you get Quantità: 24.00 Valore unitario: 1.25 Valore totale: 30.05 While you should have Valore unitario: 1.2519
are-agilebg
pushed a commit
to are-agilebg/l10n-italy
that referenced
this pull request
May 10, 2023
- Set 'Product Price' Decimal Accuracy with Digits = 4 - Create an invoice with 1 line with quantity = 24 and price 1.2519 - Export XML In the XML you get Quantità: 24.00 Valore unitario: 1.25 Valore totale: 30.05 While you should have Valore unitario: 1.2519
are-agilebg
pushed a commit
to are-agilebg/l10n-italy
that referenced
this pull request
May 10, 2023
- Set 'Product Price' Decimal Accuracy with Digits = 4 - Create an invoice with 1 line with quantity = 24 and price 1.2519 - Export XML In the XML you get Quantità: 24.00 Valore unitario: 1.25 Valore totale: 30.05 While you should have Valore unitario: 1.2519
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Steps:
In the XML you get
Quantità: 24.00
Valore unitario: 1.25
Valore totale: 30.05
While you should have
Valore unitario: 1.2519