diff --git a/erp/sale/benefit.go b/erp/sale/benefit.go index 0623b0f..e76c13e 100644 --- a/erp/sale/benefit.go +++ b/erp/sale/benefit.go @@ -11,33 +11,35 @@ type benefit struct { } type BenefitProductItem struct { - Id int64 `json:"id"` - ProductId int64 `json:"productId"` - Serial string `json:"serial"` - CustomSerial string `json:"customSerial"` - Name string `json:"name"` - EngName string `json:"engName"` - Mold int64 `json:"mold"` - FactoryId int64 `json:"factoryId"` - FactoryName string `json:"factoryName"` - FactorySerial string `json:"factorySerial"` - SaleCount int64 `json:"saleCount"` - Price decimal.Decimal `json:"price"` - Amount decimal.Decimal `json:"amount"` - AmountMinusTax decimal.Decimal `json:"amountMinusTax"` - Currency string `json:"currency"` - CurrencySymbol string `json:"currencySymbol"` - CurrencyName string `json:"currencyName"` - CurrencyRate decimal.Decimal `json:"currencyRate"` - MinusTaxRate *decimal.Decimal `json:"minusTaxRate"` - SalePrice decimal.Decimal `json:"salePrice"` - SaleAmount decimal.Decimal `json:"saleAmount"` - SaleCurrency string `json:"saleCurrency"` - SaleCurrencySymbol string `json:"saleCurrencySymbol"` - SaleCurrencyName string `json:"saleCurrencyName"` - SaleCurrencyRate decimal.Decimal `json:"saleCurrencyRate"` - SaleAmountCny decimal.Decimal `json:"saleAmountCny"` - ProfitAndLossCny decimal.Decimal `json:"profitAndLossCny"` + Id int64 `json:"id"` + ParentId int64 `json:"parentId"` + ProductId int64 `json:"productId"` + Serial string `json:"serial"` + CustomSerial string `json:"customSerial"` + Name string `json:"name"` + EngName string `json:"engName"` + Mold int64 `json:"mold"` + FactoryId int64 `json:"factoryId"` + FactoryName string `json:"factoryName"` + FactorySerial string `json:"factorySerial"` + SaleCount int64 `json:"saleCount"` + Price decimal.Decimal `json:"price"` + Amount decimal.Decimal `json:"amount"` + AmountMinusTax decimal.Decimal `json:"amountMinusTax"` + Currency string `json:"currency"` + CurrencySymbol string `json:"currencySymbol"` + CurrencyName string `json:"currencyName"` + CurrencyRate decimal.Decimal `json:"currencyRate"` + MinusTaxRate *decimal.Decimal `json:"minusTaxRate"` + SalePrice decimal.Decimal `json:"salePrice"` + SaleAmount decimal.Decimal `json:"saleAmount"` + SaleCurrency string `json:"saleCurrency"` + SaleCurrencySymbol string `json:"saleCurrencySymbol"` + SaleCurrencyName string `json:"saleCurrencyName"` + SaleCurrencyRate decimal.Decimal `json:"saleCurrencyRate"` + SaleAmountCny decimal.Decimal `json:"saleAmountCny"` + ProfitAndLossCny decimal.Decimal `json:"profitAndLossCny"` + Children []*BenefitProductItem `json:"children"` } // Product @TITLE 获取产品