fix
wangpengfei
2023-08-28 c5a0eb549cba2cd358a2d0496c44f3a289f15d9c
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
      }