fix
wangpengfei
2023-08-24 f979abfd6f6aa8309df1f638202805c6e828a4d7
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
      }