mirror of
https://gitlab.com/uldvstar/exchange-2.0.git
synced 2026-08-19 04:24:16 +00:00
fix debtors import
This commit is contained in:
@@ -24,11 +24,12 @@ class ImportsDebtor implements ToModel, WithHeadingRow, WithBatchInserts, WithVa
|
||||
$reference = $match;
|
||||
$debtor = $row['code'];
|
||||
$company = Company::where('reference', $reference)->whereNull('debtor')->first();
|
||||
|
||||
if ($company) {
|
||||
$company->debtor = $debtor;
|
||||
$company->update();
|
||||
}
|
||||
dump($row['desc2'], $company);
|
||||
//
|
||||
// if ($company) {
|
||||
// $company->debtor = $debtor;
|
||||
// $company->update();
|
||||
// }
|
||||
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user