king
2023-10-19 96989af7e330a08d376002b0759705a477039f61
src/tabviews/custom/components/module/voucher/voucherTable/index.jsx
@@ -1136,10 +1136,23 @@
      }
    })
    let _total = debit
    if (debit === 0) {
      debit = ''
    }
    if (_total === '' && credit !== '') {
      _total = 0
    }
    if (credit === 0) {
      credit = ''
    }
    totalLine.debit = debit
    totalLine.credit = credit
    totalLine.subject_voucher_text = this.changeMoneyToChinese(debit)
    totalLine.subject_voucher_text = this.changeMoneyToChinese(_total)
    
    return totalLine
  }