X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=blobdiff_plain;f=gl%2Fgl_bank.php;h=aff95cb3c9e76c74d96f6fdd564eb81bfeabf9fa;hb=ac93b30fdf9beabafa02a577a0f7db62eb703672;hp=a9d969a2ec77657f326903d63e5cb086ff2875f0;hpb=f018643dc04ce130f1729e16a65458af443308a0;p=fa-stable.git diff --git a/gl/gl_bank.php b/gl/gl_bank.php index a9d969a2..aff95cb3 100644 --- a/gl/gl_bank.php +++ b/gl/gl_bank.php @@ -9,8 +9,8 @@ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the License here . ***********************************************************************/ -$page_security = 3; -$path_to_root=".."; +$page_security = isset($_GET['NewPayment']) ? 'SA_PAYMENT' : 'SA_DEPOSIT'; +$path_to_root = ".."; include_once($path_to_root . "/includes/ui/items_cart.inc"); include_once($path_to_root . "/includes/session.inc"); @@ -41,10 +41,6 @@ page($_SESSION['page_title'], false, false, '', $js); check_db_has_bank_accounts(_("There are no bank accounts defined in the system.")); //---------------------------------------------------------------------------------------- -set_editor('supplier', 'person_id' , 'ref'); -set_editor('customer', 'person_id' , 'ref'); -set_editor('branch', 'PersonDetailID' , 'ref'); - if (list_updated('PersonDetailID')) { $br = get_branch(get_post('PersonDetailID')); $_POST['person_id'] = $br['debtor_no'];