mirror of
https://gitlab.com/uldvstar/exchange-2.0.git
synced 2026-08-19 04:24:16 +00:00
update debtors import
This commit is contained in:
@@ -24,15 +24,13 @@ class ImportsDebtor implements ToModel, WithHeadingRow, WithBatchInserts, WithVa
|
||||
$reference = $match;
|
||||
$debtor = $row['code'];
|
||||
$company = Company::where('reference', $reference)->first();
|
||||
if (!$company) {
|
||||
echo $reference.'<br>';
|
||||
// $company->debtor = $debtor;
|
||||
// $company->update();
|
||||
|
||||
if ($company) {
|
||||
$company->debtor = $debtor;
|
||||
$company->update();
|
||||
}
|
||||
|
||||
}
|
||||
// $reference = preg_split('(-|\(|\)|\/)', $row['2nd_description']);
|
||||
// $reference = $reference[array_key_last($reference)];
|
||||
|
||||
} catch (\Exception $exception){}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user