From 16d823f10c75124ee8d37e4545b894d39ab3653a Mon Sep 17 00:00:00 2001 From: Omair Saleh Date: Thu, 29 Sep 2022 04:23:51 +0800 Subject: [PATCH] convert 1688 purchase orders to po --- routes/web.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/routes/web.php b/routes/web.php index 6aadda47..811a6712 100644 --- a/routes/web.php +++ b/routes/web.php @@ -407,7 +407,7 @@ Route::get('/1688/fix', function(){ $adjuster = (count($product) - 7); $descriptionIndex = 3 + $adjuster; - $bookings[$document->owner->marking] = [ + $bookings[$document->owner->marking][] = [ 'description' => str_replace("\n","",$product[$descriptionIndex]), 'quantity' => (int) str_replace("\n","",$product[$descriptionIndex + 2]), 'unit_price' => (float) str_replace("\n","",$product[$descriptionIndex + 3])