Merge branch 'debtor' into 'development'

reference

See merge request CIEFWorldwideSdnBhd/exchange-2.0!89
This commit is contained in:
Leong Chee Siong
2022-03-02 06:27:48 +00:00
@@ -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();