From f7b6abf9163117d02022537e4da5d23e31630282 Mon Sep 17 00:00:00 2001 From: weiz <736250432@qq.com> Date: Wed, 24 Jan 2024 17:13:02 +0800 Subject: [PATCH] update --- .../logic/project/ProjectExpenseReimbursementLogic.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/adminapi/logic/project/ProjectExpenseReimbursementLogic.php b/app/adminapi/logic/project/ProjectExpenseReimbursementLogic.php index 88c69f994..52694d582 100644 --- a/app/adminapi/logic/project/ProjectExpenseReimbursementLogic.php +++ b/app/adminapi/logic/project/ProjectExpenseReimbursementLogic.php @@ -80,7 +80,7 @@ class ProjectExpenseReimbursementLogic extends BaseLogic 'invoice_form' => $item['invoice_form'], 'invoice_amount' => $item['invoice_amount'], 'tax_amount' => $tax_rate[$item['tax_rate']] / 100 * $item['invoice_amount'], - 'annex' => $item['annex'] ? json_encode($item['annex']) : null, + 'annex' => !empty($item['annex']) ? json_encode($item['annex']) : null, 'remark' => $item['remark'] ?? '', ]); } @@ -150,7 +150,7 @@ class ProjectExpenseReimbursementLogic extends BaseLogic 'invoice_form' => $item['invoice_form'], 'invoice_amount' => $item['invoice_amount'], 'tax_amount' => $tax_rate[$item['tax_rate']] / 100 * $item['invoice_amount'], - 'annex' => $item['annex'] ? json_encode($item['annex']) : null, + 'annex' => !empty($item['annex']) ? json_encode($item['annex']) : null, 'remark' => $item['remark'] ?? '', 'update_time' => time(), ]); @@ -163,7 +163,7 @@ class ProjectExpenseReimbursementLogic extends BaseLogic 'invoice_form' => $item['invoice_form'], 'invoice_amount' => $item['invoice_amount'], 'tax_amount' => $tax_rate[$item['tax_rate']] / 100 * $item['invoice_amount'], - 'annex' => $item['annex'] ? json_encode($item['annex']) : null, + 'annex' => !empty($item['annex']) ? json_encode($item['annex']) : null, 'remark' => $item['remark'] ?? '', ]); }