X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=blobdiff_plain;f=gl%2Fgl_bank.php;h=e5900142851880d566ade96b24114db10afc2480;hb=33ba3d43d75c04080dd0d49067bafd2188fd04b1;hp=c40def6c8f52f5a6cc3c23c19e3024f236ac9b5d;hpb=44f6b641dffa72949fa3399e4d299623a4d2be56;p=fa-stable.git diff --git a/gl/gl_bank.php b/gl/gl_bank.php index c40def6c..e5900142 100644 --- a/gl/gl_bank.php +++ b/gl/gl_bank.php @@ -105,7 +105,6 @@ function handle_new_order($type) { if (isset($_SESSION['pay_items'])) { - $_SESSION['pay_items']->clear_items(); unset ($_SESSION['pay_items']); } @@ -262,7 +261,8 @@ if (isset($_POST['CancelItemChanges'])) if (isset($_POST['go'])) { display_quick_entries($_SESSION['pay_items'], $_POST['person_id'], input_num('totamount'), - $_SESSION['pay_items']->trans_type==systypes::bank_payment()); + $_SESSION['pay_items']->trans_type==systypes::bank_payment() ? QE_PAYMENT : QE_DEPOSIT); + $_POST['totamount'] = price_format(0); $Ajax->activate('totamount'); line_start_focus(); } //-----------------------------------------------------------------------------------------------