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.
back/internal/v2/model/finance/recookFinanceBillOrderSourc...

30 lines
1013 B

package finance
import (
"github.com/shopspring/decimal"
"time"
)
const (
RecookFinanceBillOrderSourceReceiptFalse = 1 // 未开票
RecookFinanceBillOrderSourceReceiptTrue = 2 // 已开票
)
type RecookFinanceBillOrderSource struct {
Id uint `gorm:"primaryKey"`
SourceId uint // 运营方id
Receipt uint // 开票状态 1=未开票 2=已开票
BillOrderId uint // 结算订单id
BillOrder *RecookFinanceBillOrder `gorm:"foreignKey:BillOrderId"`
BillQuantity uint // 结算数量
BillAmount decimal.Decimal // 结算金额
TaxId uint // 结算发票id
Tax RecookFinanceBillOrderSourceTax `gorm:"foreignKey:TaxId"`
CreatedAt time.Time
UpdatedAt time.Time
}
func (r *RecookFinanceBillOrderSource) TableName() string {
return "recook_finance_bill_order_source"
}