zhangqian
2023-08-18 c0305be973254bd1b5a351064f8639d490564b30
service/invoice.go
@@ -184,6 +184,7 @@
         removedProductIds = append(removedProductIds, product.Id)
      }
      amountInvoiced = amountInvoiced.Round(2)
      amountNotInvoiced = amountNotInvoiced.Round(2)
      err = model.WithTransaction(func(db *gorm.DB) error {
         err = model.NewInvoiceSearch().SetId(invoice.Id).Save(invoice)
         if err != nil {