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

Line Amount can not explicity be set to 0.00 if there is a discount #553

Open
perryn opened this issue Dec 9, 2021 · 0 comments
Open

Line Amount can not explicity be set to 0.00 if there is a discount #553

perryn opened this issue Dec 9, 2021 · 0 comments

Comments

@perryn
Copy link

perryn commented Dec 9, 2021

Hello,

In our use of Xeroizer we explicitly set line_amount and discount_rate, however under certain circumstances Xeroizer ignores our explicitly set value and calculates its own.

The circumstances appear to be that line_amount is 0 but discount_rate is NOT 0.

This table shows what I have observed

What I set line_amount to What I set discount_rate to What LineAmount in the XML sent to Xero was
1.00 0.00 1.00
0.00 0.00 0.00
1.00 10.00 1.00
0.00 10.00 -10.00

See how for the last line what was sent was not what was set?

Any help or workarounds would be very gratefully received :)

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

1 participant