Skip to content
This repository has been archived by the owner on Apr 20, 2021. It is now read-only.

Float64 0.00 return 0 possibly removing data from lines #24

Open
Ryan-Hancock opened this issue May 13, 2019 · 0 comments
Open

Float64 0.00 return 0 possibly removing data from lines #24

Ryan-Hancock opened this issue May 13, 2019 · 0 comments

Comments

@Ryan-Hancock
Copy link

Ryan-Hancock commented May 13, 2019

when trying to create a line with float64(0.00) on for example UnitAmount getting API error of "Message": "The UnitAmount field is mandatory and cannot be derived from the Quantity and LineAmount fields."

accounting.LineItem{ UnitAmount: float64(0.00), }

Edit: removing omitempty from UnitAmount and LineAmount fixes the issue.

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

No branches or pull requests

1 participant