Skip to content

Commit

Permalink
Add omitempty to inventory counting type
Browse files Browse the repository at this point in the history
  • Loading branch information
thamerkhamassi authored and zeddo123 committed Dec 19, 2024
1 parent 4fc5b26 commit ab0ffd6
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions types.go
Original file line number Diff line number Diff line change
Expand Up @@ -107,9 +107,9 @@ type PurchaseDeliveryNotes struct {
}

type InventoryCountingLine struct {
ItemCode string `json:"ItemCode"`
WarehouseCode string `json:"WarehouseCode"`
CountedQuantity float64 `json:"CountedQuantity"`
ItemCode string `json:"ItemCode,omitempty"`
WarehouseCode string `json:"WarehouseCode,omitempty"`
CountedQuantity float64 `json:"CountedQuantity,omitempty"`
LineNum int `json:"LineNumber,omitempty"`
ItemDescription string `json:"ItemDescription,omitempty"`
}
Expand All @@ -118,8 +118,8 @@ type InventoryCounting struct {
DocumentEntry int `json:"DocumentEntry,omitempty"`
DocumentNumber int `json:"DocumentNumber,omitempty"`
Series int `json:"Series,omitempty"`
CountingType string `json:"CountingType"`
DocumentStatus string `json:"DocumentStatus"`
CountingType string `json:"CountingType,omitempty"`
DocumentStatus string `json:"DocumentStatus,omitempty"`
InventoryCountingLines []InventoryCountingLine `json:"InventoryCountingLines,omitempty"`
}

Expand Down

0 comments on commit ab0ffd6

Please sign in to comment.