You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
26 lines
2.3 KiB
26 lines
2.3 KiB
package finance
|
|
|
|
import "github.com/shopspring/decimal"
|
|
|
|
type RecookFinanceMonthSaleModel struct {
|
|
Id uint `json:"id" gorm:"column:id"`
|
|
SourceId uint `json:"source_id" gorm:"column:source_id"` //运营方
|
|
Month string `json:"month" gorm:"column:month"` //账期 2006-01
|
|
SalesRevenueIncludingTax decimal.Decimal `json:"sales_revenue_including_tax" gorm:"column:sales_revenue_including_tax"` //含税销货收入(元)
|
|
SalesRevenueIncludingUnTax decimal.Decimal `json:"sales_revenue_including_un_tax" gorm:"column:sales_revenue_including_un_tax"` //不含税收入(元)
|
|
CostExcludingTax decimal.Decimal `json:"cost_excluding_tax" gorm:"column:cost_excluding_tax"` //不含税成本(元)
|
|
ServiceIncomeIncludingTax decimal.Decimal `json:"service_income_including_tax" gorm:"column:service_income_including_tax"` //含税服务收入
|
|
ServiceIncomeExcludingTax decimal.Decimal `json:"service_income_excluding_tax" gorm:"column:service_income_excluding_tax"` //不含税服务收入
|
|
CollectionAmount decimal.Decimal `json:"collection_amount" gorm:"column:collection_amount"` //代收款金额
|
|
SelfPurchaseGuideIncome decimal.Decimal `json:"self_purchase_guide_income" gorm:"column:self_purchase_guide_income"` //自购导购收益(瑞币)
|
|
BalanceCoinDeduction decimal.Decimal `json:"balance_coin_deduction" gorm:"column:balance_coin_deduction"` //余额+瑞币抵扣
|
|
OrderCompensation decimal.Decimal `json:"order_compensation" gorm:"column:order_compensation"` //订单补偿(瑞币)
|
|
SalesGrossProfit decimal.Decimal `json:"sales_gross_profit" gorm:"column:sales_gross_profit"` //销售毛利(元)
|
|
GrossProfitMarginOfSales decimal.Decimal `json:"gross_profit_margin_of_sales" gorm:"column:gross_profit_margin_of_sales"` //销售毛利率(元)
|
|
SalesCollectionAmount decimal.Decimal `json:"sales_collection_amount" gorm:"column:sales_collection_amount"` //销售收款金额(含代收)
|
|
}
|
|
|
|
func (r *RecookFinanceMonthSaleModel) TableName() string {
|
|
return "recook_finance_month_sale"
|
|
}
|