fix
wangpengfei
2023-08-17 2f0aa60ce2e10be53d9c865a6177bf731e182203
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 {