From c9967063fa42e15d9f695220c76641cfa28669f2 Mon Sep 17 00:00:00 2001 From: king <18310653075@163.com> Date: 星期二, 05 九月 2023 14:23:13 +0800 Subject: [PATCH] 2023-09-05 --- 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