X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=blobdiff_plain;ds=sidebyside;f=purchasing%2Fsupplier_invoice.php;h=03fc1c33e6270b1f2cceb76f110f58394fe08374;hb=95856a739a5eacda8c86dc53bff8e7a0ae7b204e;hp=b78505180184a76b7ccdae60e3a6dd62299e5e64;hpb=bf00f0e16df5974ecba17b59be8bc660bdf6b8a8;p=fa-stable.git diff --git a/purchasing/supplier_invoice.php b/purchasing/supplier_invoice.php index b7850518..03fc1c33 100644 --- a/purchasing/supplier_invoice.php +++ b/purchasing/supplier_invoice.php @@ -1,5 +1,14 @@ . +***********************************************************************/ $page_security=5; $path_to_root=".."; @@ -325,20 +334,11 @@ if ($id4 != -1) $Ajax->activate('inv_tot'); } +$id2 = -1; if ($_SESSION["wa_current_user"]->access == 2) { - $id3 = find_submit('void_item_id'); - if ($id3 != -1) - { - $js = "if(confirm(\"" - .sprintf(_('You are about to remove all yet non-invoiced items from delivery line #%d. This operation also irreversibly changes related order line. Do you want to continue ?'), $id3) - ."\")) { - JsHttpRequest.request(\"void_confirm".$id3."\"); - }"; - $Ajax->addScript(true,$js); - } - $id2 = find_submit('void_confirm'); - if ($id2 != -1) // Added section 2008-10-18 Joe Hunt for voiding delivery lines + $id2 = find_submit('void_item_id'); + if ($id2 != -1) { begin_transaction(); @@ -366,39 +366,36 @@ if ($_SESSION["wa_current_user"]->access == 2) } } -start_form(false, true); - -start_table("$table_style2 width=98%", 8); -echo "