fix
zhangqian
2023-08-25 0b4ea890e5483afcc34c8d33533f0f531b95e288
fix
1个文件已修改
2 ■■■■■ 已修改文件
model/salesRefund.go 2 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
model/salesRefund.go
@@ -17,6 +17,7 @@
        Number        string                    `json:"number" gorm:"column:number;type:varchar(255);comment:退款单号"`
        SourceType    constvar.RefundSourceType `gorm:"column:source_type;type:int;not null;default 0;comment:来源类型(1销售退货)" json:"sourceType"` // 来源类型(1销售退货)
        SourceId      int                       `gorm:"column:source_id;type:int;not null;default 0;comment:源单id " json:"sourceId"`           // 源单id
        Source        SalesReturn               `gorm:"foreignKey:SourceId" json:"Source"`
        MemberId      int                       `json:"memberId" gorm:"column:member_id;type:int;comment:负责人id"`
        Member        User                      `json:"member" gorm:"foreignKey:MemberId"`
        RefundDate    string                    `json:"refundDate" gorm:"column:refund_date;type:varchar(255);comment:退款日期"`
@@ -81,6 +82,7 @@
        db = db.Preload("Client").
            Preload("PaymentType").
            Preload("BankAccount").
            Preload("Source").
            Preload("Products")
    }
    if slf.KeywordType != "" {