fix debtors import

This commit is contained in:
omair saleh
2022-04-06 10:54:47 +08:00
parent 56dc37a8e5
commit f060eeef22
@@ -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) {