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 was 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.
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.