From 2f0aa60ce2e10be53d9c865a6177bf731e182203 Mon Sep 17 00:00:00 2001
From: wangpengfei <274878379@qq.com>
Date: 星期四, 17 八月 2023 11:15:41 +0800
Subject: [PATCH] fix

---
 service/invoice.go |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/service/invoice.go b/service/invoice.go
index d1500f1..996d184 100644
--- a/service/invoice.go
+++ b/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 {

--
Gitblit v1.8.0