zwxi преди 8 месеца
родител
ревизия
720db3aa0e
променени са 1 файла, в които са добавени 2 реда и са изтрити 0 реда
  1. 2 0
      controller/census/invoice_payment.go

+ 2 - 0
controller/census/invoice_payment.go

@@ -1755,6 +1755,8 @@ func (ct *InvoicePaymentController) NotInvoiceList(c *gin.Context) {
 								list[i].NotInvoicedAmountOriginTotal = v.PaymentAmountTotal - v.InvoiceAmountTotal
 							}
 						}
+					} else {
+						list[i].NotInvoicedAmountOriginTotal, _ = strconv.ParseFloat(fmt.Sprintf("%.2f", list[i].NotInvoicedAmountTotal), 64)
 					}
 					list[i].NotInvoicedAmountTotal = v.NotInvoicedAmountOriginTotal / v.RMBRate
 					list[i].NotInvoicedAmountTotal, _ = strconv.ParseFloat(fmt.Sprintf("%.2f", v.NotInvoicedAmountTotal), 64)