X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=blobdiff_plain;f=purchasing%2Fmanage%2Fsuppliers.php;h=3ac981fec411176331a9ca63434ff2a3d0a7c234;hb=60e2b6dfc0b71af9fae2712058bdfaeacf2a9fee;hp=5ab0ea8f00b19c54d4f2616dc9661a63f4ac712a;hpb=c09be0dad6b05131e240349a375af7a4b7bf3444;p=fa-stable.git diff --git a/purchasing/manage/suppliers.php b/purchasing/manage/suppliers.php index 5ab0ea8f..3ac981fe 100644 --- a/purchasing/manage/suppliers.php +++ b/purchasing/manage/suppliers.php @@ -12,6 +12,10 @@ include($path_to_root . "/includes/ui.inc"); check_db_has_tax_groups(_("There are no tax groups defined in the system. At least one tax group is required before proceeding.")); +if (isset($_GET['supplier_id'])) +{ + $_POST['supplier_id'] = $_GET['supplier_id']; +} $new_supplier = get_post('supplier_id') == ''; if (isset($_POST['submit'])) @@ -120,6 +124,10 @@ elseif (isset($_POST['delete']) && $_POST['delete'] != "") $Ajax->activate('_page_body'); } //end if Delete supplier } +elseif (isset($_POST['select'])) +{ + context_return(array('supplier_id' => $_POST['supplier_id'])); +} start_form(); @@ -225,6 +233,7 @@ if (!$new_supplier) { submit_center_first('submit', _("Update Supplier"), _('Update supplier data'), true); + submit_return('select', _("Return"), _("Select this supplier and return to document entry."), true); submit_center_last('delete', _("Delete Supplier"), _('Delete supplier data if have been never used'), true); }