Skip to content

Commit e213b4c

Browse files
committed
fix: omitempty AmountVATFC
1 parent 7cff103 commit e213b4c

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

generaljournalentry/models.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ type NewGeneralJournalEntryLine struct {
138138
ID edm.GUID `json:"ID,omitempty"` // Primary key
139139
Account edm.GUID `json:"Account,omitempty"` // Reference to account
140140
AmountFC edm.Double `json:"AmountFC,omitempty"` // Amount in the currency of the transaction. If an 'Including' VAT code is used this amount includes the VAT amount.
141-
AmountVATFC edm.Double `json:"AmountVATFC` // Vat amount in the currency of the transaction. If you want to set this in a POST you have to specify VATCode as well.
141+
AmountVATFC edm.Double `json:"AmountVATFC,omitempty"` // Vat amount in the currency of the transaction. If you want to set this in a POST you have to specify VATCode as well.
142142
Asset edm.GUID `json:"Asset,omitempty"` // Reference to asset
143143
CostCenter edm.String `json:"CostCenter,omitempty"` // Reference to cost center
144144
CostUnit edm.String `json:"CostUnit,omitempty"` // Reference to cost unit

0 commit comments

Comments
 (0)