ziwen 1 年之前
父節點
當前提交
86e4d4f1bf
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      controller/census/invoice_payment.go

+ 1 - 1
controller/census/invoice_payment.go

@@ -2038,7 +2038,7 @@ func (ct *InvoicePaymentController) NotInvoiceList(c *gin.Context) {
 		}
 		results.DataList = respList
 		results.InvoiceTotal = invoiceTotal
-		results.NotInvoiceTotal = contractAmount - invoiceTotal
+		results.NotInvoiceTotal, _ = strconv.ParseFloat(fmt.Sprintf("%.2f", contractAmount - invoiceTotal), 64)
 		results.InvoiceCurrencyTotal = invoiceCurrencyTotals
 		results.PaymentCurrencyTotal = paymentCurrencyTotals
 		results.NotInvoiceCurrencyTotal = contractAmountCurrencyTotals