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.
34 lines
3.6 KiB
34 lines
3.6 KiB
package finance
|
|
|
|
import "github.com/shopspring/decimal"
|
|
|
|
type MonthCollection struct {
|
|
Id uint `json:"id" gorm:"column:id"`
|
|
Month string `json:"month" gorm:"column:month"` //2009-10
|
|
OrderReceivableAmount decimal.Decimal `json:"order_receivable_amount" gorm:"column:order_receivable_amount"` //订单应收金额
|
|
CoinBalanceDeduction decimal.Decimal `json:"coin_balance_deduction" gorm:"column:coin_balance_deduction"` //瑞币+余额抵扣
|
|
AmountReceived decimal.Decimal `json:"amount_received" gorm:"column:amount_received"` //实收金额
|
|
UnconfirmedSalesCollectionAmount decimal.Decimal `json:"unconfirmed_sales_collection_amount" gorm:"column:unconfirmed_sales_collection_amount"` //未确认销售收款金额
|
|
SalesCollectionConfirmed decimal.Decimal `json:"sales_collection_confirmed" gorm:"column:sales_collection_confirmed"` //本期账单确认销售收款
|
|
RefundAmount decimal.Decimal `json:"refund_amount" gorm:"column:refund_amount"` //退款金额
|
|
AliPayAmount decimal.Decimal `json:"ali_pay_amount" gorm:"column:ali_pay_amount"` //支付宝收款
|
|
AliPayRefund decimal.Decimal `json:"ali_pay_refund" gorm:"column:ali_pay_refund"` //支付宝退款
|
|
AliServiceCharge decimal.Decimal `json:"ali_service_charge" gorm:"column:ali_service_charge"` //支付宝手续费
|
|
AliTestRevenue decimal.Decimal `json:"ali_test_revenue" gorm:"column:ali_test_revenue"` //支付宝测试收入
|
|
WXPayAmount decimal.Decimal `json:"wx_pay_amount" gorm:"column:wx_pay_amount"` //微信收款
|
|
WXPayRefund decimal.Decimal `json:"wx_pay_refund" gorm:"column:wx_pay_refund"` //微信退款
|
|
WXServiceCharge decimal.Decimal `json:"wx_service_charge" gorm:"column:wx_service_charge"` //微信手续费
|
|
WXTestRevenue decimal.Decimal `json:"wx_test_revenue" gorm:"column:wx_test_revenue"` //微信测试收入
|
|
UnionPayAmount decimal.Decimal `json:"union_pay_amount" gorm:"column:union_pay_amount"` //银联收款
|
|
UnionPayRefund decimal.Decimal `json:"union_pay_refund" gorm:"column:union_pay_refund"` //银联退款
|
|
UnionServiceCharge decimal.Decimal `json:"union_service_charge" gorm:"column:union_service_charge"` //银联手续费
|
|
UnionTestRevenue decimal.Decimal `json:"union_test_revenue" gorm:"column:union_test_revenue"` //银联测试收入
|
|
//RealAliPayAmount decimal.Decimal `json:"real_ali_pay_amount" gorm:"column:real_ali_pay_amount"`
|
|
//RealWXPayAmount decimal.Decimal `json:"real_wx_pay_amount" gorm:"column:real_wx_pay_amount"`
|
|
//RealUnionPayAmount decimal.Decimal `json:"real_union_pay_amount" gorm:"column:real_union_pay_amount"`
|
|
}
|
|
|
|
func (r MonthCollection) TableName() string {
|
|
return "recook_finance_month_collection"
|
|
}
|