Invoice tax base computing differ from untaxed amount

Bug #986300 reported by Paulius Sladkevičius @ hbee
20
This bug affects 4 people
Affects Status Importance Assigned to Milestone
Odoo Addons (MOVED TO GITHUB)
Opinion
Undecided
Unassigned

Bug Description

This bug reproduced on the 6.1, but I think its same on the Trunk.

Issue is that invoice tax base calculation don't apply rounding for unit price * quantity, but counting invoice untaxed amount subtotal is rounded.

Please look to http://bazaar.launchpad.net/~openerp/openobject-addons/trunk/view/head:/account/account_invoice.py#L1607. I see that for tax['price_unit'] not needed rounding, mainly it's needed to round val['base'] = tax['price_unit'] * line['quantity'].

Untaxed amount is calculated with sum of invoice line subtotals.

Later will attach screenshot to see how that tax base differ from untaxed amount.

Related branches

Revision history for this message
Paulius Sladkevičius @ hbee (komsas) wrote :

Please check screenshot in the attachment

Revision history for this message
Paulius Sladkevičius @ hbee (komsas) wrote :

Patch can look like this.

Revision history for this message
Ravish(OpenERP) (rmu-openerp) wrote :

Hello Paulius,

I have checked your issue.But again for me,It's working fine.
For your reference ,I have attached screen shot .Please have a look.

Thanks!!

Changed in openobject-addons:
status: New → Incomplete
Revision history for this message
Paulius Sladkevičius @ hbee (komsas) wrote :

Hello Ravish,

strange that you don't reproduce this problem. Can be related with 986300 bug.

But mainly if you look from logical side, how untaxed amount is computed and how tax base, you will see that it's done in 2 different ways, so please look from this side.

Changed in openobject-addons:
status: Incomplete → Opinion
Revision history for this message
David Fernandez (bytacora) wrote :

Hello,
I have seen the same problem in OpenERP 6.1: for some invoices, base amount may differ from untaxed amount. Please have a look to the attachment.

Regards,
David

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.