From 66943086a744f5a6635f6c1b8ec6dd68fe3cdd44 Mon Sep 17 00:00:00 2001 From: king <18310653075@163.com> Date: 星期二, 05 九月 2023 21:57:00 +0800 Subject: [PATCH] Merge branch 'develop' --- src/tabviews/custom/components/module/voucher/voucherTable/index.jsx | 15 ++++++++++++++- 1 files changed, 14 insertions(+), 1 deletions(-) diff --git a/src/tabviews/custom/components/module/voucher/voucherTable/index.jsx b/src/tabviews/custom/components/module/voucher/voucherTable/index.jsx index 914d039..ff923d4 100644 --- a/src/tabviews/custom/components/module/voucher/voucherTable/index.jsx +++ b/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 } -- Gitblit v1.8.0