fix
wangpengfei
2023-08-24 f979abfd6f6aa8309df1f638202805c6e828a4d7
fix
1个文件已修改
2 ■■■ 已修改文件
service/serviceContract.go 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
service/serviceContract.go
@@ -47,7 +47,7 @@
    serviceContract.AmountReceivable = serviceContract.AmountTotal.Sub(serviceContract.AmountReceived)
    serviceContract.AmountUnInvoiced = serviceContract.AmountTotal.Sub(serviceContract.AmountInvoiced)
    err = model.WithTransaction(func(db *gorm.DB) error {
        err := model.NewServiceContractSearch().Create(serviceContract)
        err := model.NewServiceContractSearch().SetId(serviceContract.Id).Update(serviceContract)
        if err != nil {
            return err
        }