Selecting the cancel button in confirming the voiding of document did not work proper...
authorJoe <unknown>
Sat, 5 Apr 2014 08:15:37 +0000 (10:15 +0200)
committerJoe <unknown>
Sat, 5 Apr 2014 08:15:37 +0000 (10:15 +0200)
sales/sales_order_entry.php

index d893c5446ebc9b009297ec652b2b07b223f36b46..f73a6d5fd8f5d5feb4ccee9db55fbd93a8b41ace 100644 (file)
@@ -729,22 +729,7 @@ if ($customer_error == "") {
        display_delivery_details($_SESSION['Items']);
        echo "</td></tr>";
        end_table(1);
-/*
-       if ($_SESSION['Items']->trans_no == 0) {
-
-               submit_center_first('ProcessOrder', $porder,
-                   _('Check entered data and save document'), 'default');
-               submit_js_confirm('CancelOrder', _('You are about to void this Document.\nDo you want to continue?'));
-       } else {
-               if ($_SESSION['Items']->trans_type==ST_SALESORDER)
-                       submit_js_confirm('CancelOrder', _('You are about to cancel undelivered part of this order.\nDo you want to continue?'));
-               submit_center_first('ProcessOrder', $corder,
-                   _('Validate changes and update document'), 'default');
-       }
 
-       submit_center_last('CancelOrder', $cancelorder,
-          _('Cancels document entry or removes sales order when editing an old document'));
-*/        
        if ($_SESSION['Items']->trans_no == 0) {
 
                submit_center_first('ProcessOrder', $porder,