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:
@@ -23,7 +23,7 @@ class ImportsDebtor implements ToModel, WithHeadingRow, WithBatchInserts, WithVa
|
||||
foreach ($matches[0] as $match){
|
||||
$reference = $match;
|
||||
$debtor = $row['code'];
|
||||
$company = Company::where('reference', $reference)->whereNull('debtor')->first();
|
||||
$company = Company::where('reference', $reference)->first();
|
||||
dump($row['desc2'], $company);
|
||||
//
|
||||
// if ($company) {
|
||||
|
||||
Reference in New Issue
Block a user