diff --git a/app/common/service/FinReceiptService.php b/app/common/service/FinReceiptService.php index 30d2532..5a110ef 100644 --- a/app/common/service/FinReceiptService.php +++ b/app/common/service/FinReceiptService.php @@ -114,6 +114,7 @@ class FinReceiptService $data['arrived_at'] = strtotime( $data['arrived_at']); $data['created_by'] = $request->user->uid; $data['updated_by'] = $request->user->uid; + $data['fx_receipt_file'] = json_encode($data['fx_receipt_file']); if($data['fx_receipt_file'] == '[]' || $data['fx_receipt_file'] == '{}' ) $data['fx_receipt_file'] = ''; return $data; @@ -135,6 +136,7 @@ class FinReceiptService if(isset($data['received_at'])) $data['received_at'] = strtotime($data['received_at']); + $data['fx_receipt_file'] = json_encode($data['fx_receipt_file']); if($data['fx_receipt_file'] == '[]' || $data['fx_receipt_file'] == '{}' ) $data['fx_receipt_file'] = ''; return $data;