mirror of
https://gitlab.com/CIEFWorldwideSdnBhd/exchange-2.0.git
synced 2026-08-22 14:04:01 +00:00
reference
This commit is contained in:
@@ -17,8 +17,8 @@ class ImportsDebtor implements ToModel, WithHeadingRow, WithBatchInserts, WithVa
|
||||
|
||||
public function model($row = [])
|
||||
{
|
||||
$reference = str_replace('/CIEF', '', $row['2nd_description']);
|
||||
|
||||
$reference = preg_split('(-|\(|\)|\/)', $row['2nd_description']);
|
||||
$reference = $reference[array_key_last($reference)];
|
||||
$debtor = $row['code'];
|
||||
$company = Company::where('reference', $reference)->first();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user