convert 1688 purchase orders to po

This commit is contained in:
Omair Saleh
2022-09-29 04:23:51 +08:00
parent 0d2dc1ba0d
commit 16d823f10c
+1 -1
View File
@@ -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])