This commit is contained in:
weiz 2024-01-24 17:13:02 +08:00
parent 480999b824
commit f7b6abf916

View File

@ -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'] ?? '',
]);
}