Fixing extension configurion file moved to installed() method.
[fa-stable.git] / sales / customer_credit_invoice.php
index c086d431fb0eb57532e022784d520438f4b3383c..e687ec490cf79c504d05792c4c3e7462cb4f93ce 100644 (file)
@@ -215,7 +215,7 @@ if (isset($_POST['ProcessCredit']) && can_process()) {
        if ($new_credit) new_doc_date($_SESSION['Items']->document_date);
     $credit_no = $_SESSION['Items']->write($_POST['WriteOffGLCode']);
 
-       processing_end();exit;
+       processing_end();
        if ($new_credit) {
                meta_forward($_SERVER['PHP_SELF'], "AddedID=$credit_no");
        } else {
@@ -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');