|
@@ -1731,7 +1731,7 @@ func (ct *InvoicePaymentController) NotInvoiceList(c *gin.Context) {
|
|
|
|
|
|
|
|
|
|
|
|
-
|
|
|
+ fmt.Println("len(NotInvoiceSummaryMap[v.RegisterId]):", len(NotInvoiceSummaryMap[v.ContractRegisterId]))
|
|
|
if (v.ProductIds == "1,2" || v.ProductIds == "2,1") && len(NotInvoiceSummaryMap[v.ContractRegisterId]) == 1 {
|
|
|
|
|
|
if v.ServiceProductId == 1 {
|
|
@@ -1848,6 +1848,7 @@ func (ct *InvoicePaymentController) NotInvoiceList(c *gin.Context) {
|
|
|
|
|
|
|
|
|
|
|
|
+
|
|
|
if v.NotInvoicedAmountTotal == 0 {
|
|
|
if v.InvoiceAmountTotal > v.PaymentAmountTotal {
|
|
|
v.NotInvoicedAmountTotal = serviceAmountMap[registerId][v.ServiceProductId].ServiceAmount - v.InvoiceAmountTotal
|