Skip to content
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

VAT 0% in repports 8.x #9597

Closed
Arre8 opened this issue Sep 23, 2018 · 4 comments
Closed

VAT 0% in repports 8.x #9597

Arre8 opened this issue Sep 23, 2018 · 4 comments

Comments

@Arre8
Copy link

Arre8 commented Sep 23, 2018

Hi,

Bug

VAT at 0% are not displayed on any report since 8.x

Environment

  • Version: 8.x
  • URL(s): /compta/tva/index.php?leftmenu=tax_vat (or any other VAT report)

Expected and actual behavior

I need VAT at 0% to calculate VAT in european intra buy. (auto-liquidation)
before it was ok, but since 8.x ver. there is "$sql.= " AND (d.".$f_rate." <> 0 OR d.".$total_tva." <> 0)";"
in all the request in the fonction tax_by_rate (/core/lib/vat.lib.php).

why did you put this new condition ?

can you delete that or set a new variable to allow/disallow the display of the VAT 0% ?

Thanks in advance

@eldy
Copy link
Member

eldy commented Sep 23, 2018

The total of vat for vat rate 0% will awlays be 0. Can you describe why you need to see it ? The line will be 0.

@Arre8
Copy link
Author

Arre8 commented Sep 23, 2018

In France, when you buy something in EU, the VAT is 0%,
but you have to calculate yourself the VAT and declare it (named "auto-liquidation")
for services : when payed
for product : when delivered

@eldy
Copy link
Member

eldy commented Sep 27, 2018

I added a new option MAIN_INCLUDE_ZERO_VAT_IN_REPORTS with this change 7b86776
to report also when vat is zero.
Tests and feedbacks are welcome

@Arre8
Copy link
Author

Arre8 commented Sep 27, 2018

it works
thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants