MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
See the License here <http://www.gnu.org/licenses/gpl-3.0.html>.
***********************************************************************/
-$page_security = 1;
-$path_to_root="../..";
+$page_security = 'SA_SALESTRANSVIEW';
+$path_to_root = "../..";
include($path_to_root . "/includes/db_pager.inc");
include_once($path_to_root . "/includes/session.inc");
cust_allocations_list_cells(null, 'filterType', $_POST['filterType'], true);
-submit_cells('RefreshInquiry', _("Search"),'',_('Refresh Inquiry'), true);
+submit_cells('RefreshInquiry', _("Search"),'',_('Refresh Inquiry'), 'default');
end_row();
end_table();
end_form();
$str = "/sales/customer_delivery.php?ModifyDelivery=".$row['trans_no'];
break;
}
- if ($str != "")
+ if ($str != "" && !is_closed_trans($row['type'], $row["trans_no"]))
return pager_link(_('Edit'), $str, ICON_EDIT);
return '';
}