|
@@ -1912,10 +1912,10 @@ func (ct *InvoicePaymentController) NotInvoiceList(c *gin.Context) {
|
|
|
contractIdSumMap := make(map[int]int)
|
|
|
|
|
|
for _, v := range registerList {
|
|
|
- if v.InvoicedAmountCount >= v.PaymentAmountCount {
|
|
|
- invoiceTotal += v.InvoicedAmountCount
|
|
|
- } else if v.InvoicedAmountCount == 0 {
|
|
|
- invoiceTotal += v.PaymentAmountCount
|
|
|
+ if v.InvoicedAmount >= v.PaymentAmount {
|
|
|
+ invoiceTotal += v.InvoicedAmount
|
|
|
+ } else if v.InvoicedAmount == 0 {
|
|
|
+ invoiceTotal += v.PaymentAmount
|
|
|
}
|
|
|
rate := v.RMBRate
|
|
|
if rate == 0.0 {
|