update debtors import

This commit is contained in:
omair saleh
2022-03-19 16:01:21 +08:00
parent edc8d3b3aa
commit ffdc6344b5
@@ -18,7 +18,7 @@ class ImportsDebtor implements ToModel, WithHeadingRow, WithBatchInserts, WithVa
public function model($row = [])
{
try {
preg_match_all('/([0-9]{3,4}[a-zA-Z]{3,4})/', 'EXC/6219THL, SRW/CIEF/2699TEK', $matches);
preg_match_all('/([0-9]{3,4}[a-zA-Z]{3,4})/', $row['2nd_description'], $matches);
foreach ($matches[0] as $match){
$reference = $match;