> Thats why we need to maintain both the amount 100 and 90.91. so that entry 1 
> will be created by considering amount 90.91 and calculate tax entry 2 with 
> amount 100

Yes, this is exactly what I meant.

The method tax_obj.compute_all returns a dictionary with the amounts with and 
without taxes, and the taxes themselves.  So I suggest to move 
account/account_move_line.py line 1296 inside the 'if' statement that follows.  
Add the 'else' case with that line.  Inside the 'if' case (if there are taxes), 
compute them and use the untaxed amount to create the first credit line (90.91).

Does it seem feasible to you?

Please run as many tests as you can with the account modules.

Thanks,
Raphael

-- 
https://code.launchpad.net/~openerp-dev/openobject-addons/6.0-opw-17387-rha/+merge/76338
Your team OpenERP R&D Team is subscribed to branch 
lp:~openerp-dev/openobject-addons/6.0-opw-17387-rha.

_______________________________________________
Mailing list: https://launchpad.net/~openerp-dev-gtk
Post to     : [email protected]
Unsubscribe : https://launchpad.net/~openerp-dev-gtk
More help   : https://help.launchpad.net/ListHelp

Reply via email to