Wrong journal entry when more then one taxes applied on product with analytic plan

Bug #1024193 reported by Cristian Salamea
20
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Odoo Addons (MOVED TO GITHUB)
Invalid
Medium
OpenERP R&D Addons Team 3

Bug Description

Hello in 6.0 6.1 and trunk please follow this steps:

Install account_analytic_plans

Enter an supplier invoice:
Product must be configured with a tax with both codes: base and tax generated
Apply an analytic plan
Approve the invoice

As you know OpenERP generate lines with credit/debit 0.00 for tax codes this cause analytic line is generated too for 0.00 move line. i check the code in analytic plans you redefine create_analytic_lines and generate each line here you need to check if credit+debit>0 to generate lines.

Regards,

Related branches

Revision history for this message
Amit Parik (amit-parik) wrote :

Hello Cristian.

I have checked your issue at my end with latest trunk. But I didn't see the analytic entry for amount 0.0 but I got the analytic entry with same amount of taxes. Which is correct.

I have prepared a video for same and attached with this bug, So would you please check it and kindly inform us where you faced the problem then we can do a further process on this bug report.

Thanks and waiting for your reply!

Revision history for this message
Amit Parik (amit-parik) wrote :
Changed in openobject-addons:
status: New → Incomplete
Revision history for this message
Cristian Salamea (ovnicraft) wrote :

Hello Amit i am agree with you my report was incomplete please repeat the same process but in your product add a second tax with codes configured.

I am attach a video for you.

Regards,

Revision history for this message
Amit Parik (amit-parik) wrote :

Hello Cristain,

Thanks for your quick reply and nice video.

You have faced analytic entry for amount 0.0 due to your tax configuration. I have checked your video and see the assigned tax(Tax 0) which has a 0.0 percent. Cause of analytic plan module, you got a same analytic entry as your tax amount.

And here your 2nd assigned tax amount is zero, that's why you got a analytic entry for amount 0.0. Also currently we have provided a entry for 0.0 amount too.

Please try again with setting proper amount in tax configuration, then it works fine.

So this is not a bug, and I am closing this issue

Hope this help.

Thank you!

Changed in openobject-addons:
status: Incomplete → Opinion
status: Opinion → Invalid
Revision history for this message
Cristian Salamea (ovnicraft) wrote :

Hello Amit, analytic plans is not based in tax amount or tax percent, its based on price_unit you can test it with another Tax with percent >0 and you will see the duplicate line with 0 amount.

Journal entries are ok, so its affecting to tax codes but for this reason analytic is created with 0.00 w/o reason.
We got in production this in 6.0 and planning migration so i fixed it.

Maybe you can re check with a product with taxes percent > 0, journal entries will get 0.00 credit|debit line (and its ok) but analytic will duplicated with 0.00 amount.

Regards,

Revision history for this message
Amit Parik (amit-parik) wrote :

Hello Cristian,

I have faced the problem as you specified on comment#5, I got a one more journal item with credit/debit amount 0.00.

That's why I am confirming this issue.

I have attached a screen-shot for this.

Thank you!

Revision history for this message
Amit Parik (amit-parik) wrote :
Changed in openobject-addons:
assignee: nobody → OpenERP R&D Addons Team 3 (openerp-dev-addons3)
importance: Undecided → Medium
status: Invalid → Confirmed
summary: - duplicate analytic line with plans
+ Wrong jouranl entry when more then one taxes applied on product with
+ analytic plan
summary: - Wrong jouranl entry when more then one taxes applied on product with
+ Wrong journal entry when more then one taxes applied on product with
analytic plan
Revision history for this message
Cristian Salamea (ovnicraft) wrote :

Yes Amit but if you check your screenshot in journal entries system needs to get the account move line with 0.00 si its affecting tax code with 70.00

The problem is in analytic lines.

Regards,

Revision history for this message
Jignesh Rathod(OpenERP) (jir-openerp) wrote :

Hello Cristian Salamea ,

Thanks for reporting.

This issue has been fixed following branch and rev no , rev id.

lp:~openerp-dev/openobject-addons/trunk-bug-1024193-jir

Rev No : 7061
Rev ID : jir@jir-desktop-20120717113154-91tzio78ahfhpojd

Thank you!

Changed in openobject-addons:
status: Confirmed → Fix Committed
Changed in openobject-addons:
status: Fix Committed → Confirmed
Revision history for this message
Amit Parik (amit-parik) wrote :

Bug is not valid, see the comment on MP.

thank you!

Amit Parik (amit-parik)
Changed in openobject-addons:
status: Confirmed → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

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