-
-
Notifications
You must be signed in to change notification settings - Fork 299
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[8.0] Wrong line price with UBL Import due to wrong calculated unit price #16
Comments
@bosd : Would you agree if we add your UBL invoice to the automated test suite, so that when the bug is fixed (I plan to work on it this month) we are sure it doesn't "come back" ? Do you want to anonymise some stuff in the XML before adding it to the test suite ? |
This is what happens for the 1st line: it reads: So it writes in invoice line: I see 3 solutions for this: For the moment, I prefer option c (even if, in this particular case for gas, loosing the info of the qty is not important, so option b would be fine). @bosd what do you think ? |
@alexis-via Well, maybe it is in my lack of knowledge of odoo. But I was expecting to have the quantity and price unit to be dynamic. Though that will be more something into the core of odoo. As a sollution I also prefer option C . So the total quantity of the product will still be visible. |
I implemented option c) on v10 tonight and I'm pretty happy with the result. I have 2 levels of adjustments:
I added the invoice of this bug report to the automated test suite. I'll push the code to github when @bosd will confirm he agrees on that. |
Add support for Tax Due Date on invoice import
Add support for Tax Due Date on invoice import
Add support for Tax Due Date on invoice import
Add support for Tax Due Date on invoice import
Add support for Tax Due Date on invoice import
Add support for Tax Due Date on invoice import
Add support for Tax Due Date on invoice import
Add support for Tax Due Date on invoice import
Add support for Tax Due Date on invoice import
Add support for Tax Due Date on invoice import
Add support for Tax Due Date on invoice import
Add support for Tax Due Date on invoice import
Add support for Tax Due Date on invoice import
Add support for Tax Due Date on invoice import
Add support for Tax Due Date on invoice import
Add support for Tax Due Date on invoice import
Add support for Tax Due Date on invoice import
Add support for Tax Due Date on invoice import
Add support for Tax Due Date on invoice import
Add support for Tax Due Date on invoice import
Add support for Tax Due Date on invoice import
Add support for Tax Due Date on invoice import
Add support for Tax Due Date on invoice import
Add support for Tax Due Date on invoice import
Add support for Tax Due Date on invoice import
Add support for Tax Due Date on invoice import
Add support for Tax Due Date on invoice import
Add support for Tax Due Date on invoice import
Add support for Tax Due Date on invoice import
Add support for Tax Due Date on invoice import
Add support for Tax Due Date on invoice import
Add support for Tax Due Date on invoice import
Add support for Tax Due Date on invoice import
Add support for Tax Due Date on invoice import
Add support for Tax Due Date on invoice import
Add support for Tax Due Date on invoice import
[16.0] edi_oca: port as is with all changes fix/imp from edi#14.0
Add support for Tax Due Date on invoice import
Add support for Tax Due Date on invoice import
Add support for Tax Due Date on invoice import
Add support for Tax Due Date on invoice import
Add support for Tax Due Date on invoice import
I have imported a UBL Invoice of my fuel pass supplier.
It has multiple lines, besides fuel it also contains some parking costs.
I set the Method of Invoice Line to ”Multi Line, No Product”.
The expected result is that in Odoo I have the same invoice line price as in the UBL file.
Current behavior:
The price does not match UBL file.
The first invoice line should be €71,41 instead of €71,01.
Input code for the first line:
cac:InvoiceLine
cbc:ID1</cbc:ID>
<cbc:InvoicedQuantity unitCode="LTR">70.31</cbc:InvoicedQuantity>
<cbc:LineExtensionAmount currencyID="EUR">71.41</cbc:LineExtensionAmount>
cac:OrderLineReference
cbc:LineID1</cbc:LineID>
</cac:OrderLineReference>
cac:TaxTotal
<cbc:TaxAmount currencyID="EUR">15.00</cbc:TaxAmount>
cac:TaxSubtotal
<cbc:TaxableAmount currencyID="EUR">71.41</cbc:TaxableAmount>
<cbc:TaxAmount currencyID="EUR">15.00</cbc:TaxAmount>
cac:TaxCategory
<cbc:ID schemeID="UNCL5305" schemeAgencyID="6">S</cbc:ID>
cbc:Percent21.00</cbc:Percent>
cac:TaxScheme
<cbc:ID schemeID="UN/ECE 5153" schemeAgencyID="6">VAT</cbc:ID>
</cac:TaxScheme>
</cac:TaxCategory>
</cac:TaxSubtotal>
</cac:TaxTotal>
cac:Item
cbc:DescriptionDiesel</cbc:Description>
cbc:NameDiesel</cbc:Name>
</cac:Item>
</cac:InvoiceLine>
complete input
UBLInvoice.0006311117.xml.txt
The text was updated successfully, but these errors were encountered: