Skip to content

Commit

Permalink
added jdoc to invoice row, gross weight to product
Browse files Browse the repository at this point in the history
  • Loading branch information
Dysar committed Jun 22, 2020
1 parent 2484009 commit 8c476d2
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 28 deletions.
19 changes: 10 additions & 9 deletions pkg/api/products/models.go
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@ type (
LastModified uint64 `json:"lastModified"`
Vatrate float64 `json:"vatrate"`
PriceWithVat float32 `json:"priceWithVat"`
GrossWeight string `json:"grossWeight"`
NetWeight string `json:"netWeight"`
UnitName *string `json:"unitName"`
BrandName string `json:"brandName"`
Expand Down Expand Up @@ -121,15 +122,15 @@ type (
}

ProductGroup struct {
ID uint `json:"productGroupID"`
Name string `json:"name"`
ShowInWebshop string `json:"showInWebshop"`
NonDiscountable byte `json:"nonDiscountable"`
PositionNo int `json:"positionNo"`
ParentGroupID string `json:"parentGroupID"`
Added uint64 `json:"added"`
LastModified uint64 `json:"lastModified"`
SubGroups []ProductGroup `json:"subGroups"`
ID uint `json:"productGroupID"`
Name string `json:"name"`
ShowInWebshop string `json:"showInWebshop"`
NonDiscountable byte `json:"nonDiscountable"`
PositionNo int `json:"positionNo"`
ParentGroupID string `json:"parentGroupID"`
Added uint64 `json:"added"`
LastModified uint64 `json:"lastModified"`
SubGroups []ProductGroup `json:"subGroups"`
Attributes []map[string]string `json:"attributes,omitempty"`
}

Expand Down
39 changes: 20 additions & 19 deletions pkg/api/sales/documentModels.go
Original file line number Diff line number Diff line change
Expand Up @@ -54,25 +54,26 @@ type (
}

InvoiceRow struct {
RowID string `json:"rowID"`
StableRowID string `json:"stableRowID"`
ProductID string `json:"productID"`
ItemName string `json:"itemName"`
Barcode string `json:"barcode"`
VatrateID string `json:"vatrateID"`
Amount string `json:"amount"`
Price string `json:"price"`
Discount string `json:"discount"`
BillingStartDate string `json:"billingStartDate"`
BillingEndDate string `json:"billingEndDate"`
Code string `json:"code"`
Code2 string `json:"code2"`
FinalNetPrice float64 `json:"finalNetPrice"`
FinalPriceWithVAT float64 `json:"finalPriceWithVAT"`
RowNetTotal float64 `json:"rowNetTotal"`
RowVAT float64 `json:"rowVAT"`
RowTotal float64 `json:"rowTotal"`
CampaignIDs string `json:"campaignIDs"`
RowID string `json:"rowID"`
StableRowID string `json:"stableRowID"`
ProductID string `json:"productID"`
ItemName string `json:"itemName"`
Barcode string `json:"barcode"`
VatrateID string `json:"vatrateID"`
Amount string `json:"amount"`
Price string `json:"price"`
Discount string `json:"discount"`
BillingStartDate string `json:"billingStartDate"`
BillingEndDate string `json:"billingEndDate"`
Code string `json:"code"`
Code2 string `json:"code2"`
FinalNetPrice float64 `json:"finalNetPrice"`
FinalPriceWithVAT float64 `json:"finalPriceWithVAT"`
RowNetTotal float64 `json:"rowNetTotal"`
RowVAT float64 `json:"rowVAT"`
RowTotal float64 `json:"rowTotal"`
CampaignIDs string `json:"campaignIDs"`
Jdoc interface{} `json:"jdoc"`
}
VatTotalsByTaxRates []VatTotalsByTaxRate
VatTotalsByTaxRate struct {
Expand Down

0 comments on commit 8c476d2

Please sign in to comment.