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

Float64 0.00 return 0 possibly removing data from lines #24

@Ryan-Hancock

Description

@Ryan-Hancock

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions