mirror of
https://gitlab.com/CIEFWorldwideSdnBhd/exchange-2.0.git
synced 2026-08-19 04:23:55 +00:00
update 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)->first();
|
||||
$company = Company::where('reference', $reference)->whereNull('debtor')->first();
|
||||
|
||||
if ($company) {
|
||||
$company->debtor = $debtor;
|
||||
|
||||
Reference in New Issue
Block a user