X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=blobdiff_plain;f=sales%2Fcustomer_invoice.php;h=9836de48fad516e4330dcd2c0eb17b8a60b08a55;hb=e8ae3516539a520338117f25d401c0fc234973a4;hp=afad461764c3fc169601cb68d7fce81b942737dd;hpb=818719f38b8327cdca616d58b13913dbd174d96a;p=fa-stable.git diff --git a/sales/customer_invoice.php b/sales/customer_invoice.php index afad4617..9836de48 100644 --- a/sales/customer_invoice.php +++ b/sales/customer_invoice.php @@ -1,13 +1,13 @@ . + See the License here . ***********************************************************************/ //--------------------------------------------------------------------------- // @@ -128,7 +128,7 @@ if ( (isset($_GET['DeliveryNumber']) && ($_GET['DeliveryNumber'] > 0) ) } elseif (isset($_GET['ModifyInvoice']) && $_GET['ModifyInvoice'] > 0) { if ( get_parent_trans(10, $_GET['ModifyInvoice']) == 0) { // 1.xx compatibility hack - echo"

" . _("There in no delivery notes for this invoice.
+ echo"

" . _("There are no delivery notes for this invoice.
Most likely this invoice was created in Front Accounting version prior to 2.0 and therefore can not be modified.") . "
"; display_footer_exit(); @@ -334,7 +334,7 @@ $dspans[] = $spanlen; $is_batch_invoice = count($_SESSION['Items']->src_docs) > 1; $is_edition = $_SESSION['Items']->trans_type == 10 && $_SESSION['Items']->trans_no != 0; -start_form(false, true); +start_form(); hidden('cart_id'); start_table("$table_style2 width=80%", 5); @@ -384,6 +384,15 @@ date_cells(_("Due Date"), 'due_date', '', $_POST['due_date'], 0, 0, 0, "class='t end_row(); end_table(); +$row = get_customer_to_order($_SESSION['Items']->customer_id); +if ($row['dissallow_invoices'] == 1) +{ + display_error(_("The selected customer account is currently on hold. Please contact the credit control personnel to discuss.")); + end_form(); + end_page(); + exit(); +} + display_heading(_("Invoice Items")); div_start('Items');