diff --git a/modul/orders/shipping-order/edit.tpl b/modul/orders/shipping-order/edit.tpl deleted file mode 100755 index e69de29..0000000 diff --git a/modul/orders/shipping-order/init.php b/modul/orders/shipping-order/init.php index a6a96fe..51d0a4f 100755 --- a/modul/orders/shipping-order/init.php +++ b/modul/orders/shipping-order/init.php @@ -430,7 +430,29 @@ function the_so(){ include 'so.details.php'; the_footer(); return ""; - }); + }); + + $app->get('/shipping-order/edit/{id}', function ($id) use ($app) { + global $db; + global $hooks; + global $po_id; + global $so_id; + $so_id = $id; + $po_id = getSOData($id, "po_id"); + if (!isset($id) || !isSOMine($id)) { + return $app->redirect('/shipping-order'); + } + + $hooks->add_action('global_css', "create_so_css"); + $hooks->add_action('global_js', "so_details_js"); + $hooks->add_action('the_title',"so_title"); + + the_head(); + include 'so.edit.php'; + the_footer(); + return ""; + }); + $app->post('/shipping-order/get-packing-list', function (Request $request) { global $db; diff --git a/modul/orders/shipping-order/so.edit.php b/modul/orders/shipping-order/so.edit.php new file mode 100755 index 0000000..f8d316a --- /dev/null +++ b/modul/orders/shipping-order/so.edit.php @@ -0,0 +1,673 @@ + + + + +
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
| No | +Item Code | +Model No | +Description | +Quantity | +UOM | +Unit Price | +Sub Total | + + + + $POItem){ ?> +
|---|---|---|---|---|---|---|---|
| + | + | + | + | + | + | + | + |
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
| No | +Description | +Model | +Qty | +UOM | +CBM | +Weight | +Photo | +|||
|---|---|---|---|---|---|---|---|---|---|---|
| Height | +Width | +Depth | +Gross | +Nett | +||||||
| + | + | + | + | + | + | + | + | + | + | |
| No | +Product Description | +Total Ctn (Nominal) | +Measurement (Nominal) | +Weight (Nominal) | +Total Ctn (Actual) | +CBM (Actual) | +Weight (Actual) | +Status | +Photo | +
|---|---|---|---|---|---|---|---|---|---|
| + | + | + | + | + | + | + | + | + |
+
+
null) { echo date("d/m/Y", strtotime(getSAData($so_id, "release_date"))); }else{ echo "N/A"; }?>
++
+
+
+
+
+
+
+
+
+
+
+
+