This commit is contained in:
weiz 2024-01-24 16:08:05 +08:00
parent b4a124448f
commit 480999b824

View File

@ -90,7 +90,7 @@ class ProjectTravelReimbursementLogic 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'] ?? '',
]);
}
@ -172,7 +172,7 @@ class ProjectTravelReimbursementLogic 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(),
]);
@ -185,7 +185,7 @@ class ProjectTravelReimbursementLogic 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'] ?? '',
]);
}