You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Apr 20, 2021. It is now read-only.
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.
The text was updated successfully, but these errors were encountered:
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
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.
The text was updated successfully, but these errors were encountered: