X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=blobdiff_plain;f=sales%2Fcustomer_credit_invoice.php;h=e687ec490cf79c504d05792c4c3e7462cb4f93ce;hb=f36d4241ba673261532a1bb3c59b6b985901238e;hp=c86f82b3dde26c2889dd8e7454fa41d8b9aab6cf;hpb=d9b4de9d7e9d3ba77f6ece752fd6cc988effd8f1;p=fa-stable.git diff --git a/sales/customer_credit_invoice.php b/sales/customer_credit_invoice.php index c86f82b3..e687ec49 100644 --- a/sales/customer_credit_invoice.php +++ b/sales/customer_credit_invoice.php @@ -206,7 +206,7 @@ function copy_from_cart() if (isset($_POST['ProcessCredit']) && can_process()) { - $newcredit = ($_SESSION['Items']->trans_no == 0); + $new_credit = ($_SESSION['Items']->trans_no == 0); if (!isset($_POST['WriteOffGLCode'])) $_POST['WriteOffGLCode'] = 0; @@ -216,7 +216,7 @@ if (isset($_POST['ProcessCredit']) && can_process()) { $credit_no = $_SESSION['Items']->write($_POST['WriteOffGLCode']); processing_end(); - if ($newcredit) { + if ($new_credit) { meta_forward($_SERVER['PHP_SELF'], "AddedID=$credit_no"); } else { meta_forward($_SERVER['PHP_SELF'], "UpdatedID=$credit_no"); @@ -348,7 +348,7 @@ function display_credit_options() global $Ajax; br(); -i f (isset($_POST['_CreditType_update'])) + if (isset($_POST['_CreditType_update'])) $Ajax->activate('options'); div_start('options');