mirror of
https://gitlab.com/CIEFWorldwideSdnBhd/exchange-2.0.git
synced 2026-08-28 08:53:59 +00:00
convert 1688 purchase orders to po
This commit is contained in:
+1
-1
@@ -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])
|
||||
|
||||
Reference in New Issue
Block a user