X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=blobdiff_plain;f=purchasing%2Fallocations%2Fsupplier_allocation_main.php;h=7f63cb6f33aa14c766a4335f46162d7b3d0c8877;hb=5b8ee3cb748382ab5a2665a620183f08c8ba204b;hp=4e9ca586057476a0a2ff5a4ebdfae81d44898558;hpb=da8311619dd73feae101d246a1957b972e00cbd2;p=fa-stable.git diff --git a/purchasing/allocations/supplier_allocation_main.php b/purchasing/allocations/supplier_allocation_main.php index 4e9ca586..7f63cb6f 100644 --- a/purchasing/allocations/supplier_allocation_main.php +++ b/purchasing/allocations/supplier_allocation_main.php @@ -15,6 +15,15 @@ if ($use_popup_windows) $js .= get_js_open_window(900, 500); page(_("Supplier Allocations"), false, false, "", $js); +//-------------------------------------------------------------------------------- +if ($ret = context_restore()) { + if(isset($ret['supplier_id'])) + $_POST['supplier_id'] = $ret['supplier_id']; +} +if (isset($_POST['_supplier_id_editor'])) { + context_call($path_to_root.'/purchasing/manage/suppliers.php?supplier_id='.$_POST['supplier_id'] ); +} + //-------------------------------------------------------------------------------- function display_allocatable_transactions() @@ -54,7 +63,7 @@ function display_allocatable_transactions() $supplier_id = $_POST['supplier_id']; $trans_items = get_allocatable_from_supp_transactions($supplier_id, $settled); - + div_start('alloc_tbl'); start_table($table_style); if (!isset($_POST['supplier_id'])) $th = array(_("Transaction Type"), _("#"), _("Reference"), _("Date"), _("Supplier"), @@ -102,12 +111,15 @@ function display_allocatable_transactions() if (db_num_rows($trans_items) == 0) display_note(_("There are no allocations to be done."), 1, 2); - + div_end(); end_form(); } //-------------------------------------------------------------------------------- +if (get_post('_ShowSettled_update')) { + $Ajax->activate('alloc_tbl'); +} display_allocatable_transactions(); //--------------------------------------------------------------------------------