page($_SESSION['page_title'], false, false, "", $js);
//-----------------------------------------------------------------------------
+
check_edit_conflicts();
if (isset($_GET['AddedID'])) {
} elseif (isset($_GET['ModifyInvoice']) && $_GET['ModifyInvoice'] > 0) {
- check_is_closed(ST_SALESINVOICE, $_GET['ModifyInvoice']);
+ check_is_editable(ST_SALESINVOICE, $_GET['ModifyInvoice']);
/*
if ( get_sales_parent_numbers(ST_SALESINVOICE, $_GET['ModifyInvoice']) == 0) { // 1.xx compatibility hack
echo"<center><br><b>" . _("There are no delivery notes for this invoice.<br>
display_footer_exit();
}
*/
- check_is_closed(ST_SALESINVOICE, $_GET['ModifyInvoice']);
processing_start();
$_SESSION['Items'] = new Cart(ST_SALESINVOICE, $_GET['ModifyInvoice']);