Fix for exchange variation when allocating payments. re-inserted in System and GL...
[fa-stable.git] / sales / includes / db / sales_credit_db.inc
index 2b37e60ccce2811553623a3854df08e4bd8fee4c..40bea1914713bd2ad7ac108a1758849f5d629779 100644 (file)
@@ -68,7 +68,7 @@ function write_credit_note($credit_note, $write_off_acc)
                set_document_parent($credit_note);
        } else {
                delete_comments(11, $credit_no);
-               void_cust_allocations(11, $credit_no);
+               void_cust_allocations(11, $credit_no, $credit_date);
                void_gl_trans(11, $credit_no, true);
                void_stock_move(11, $credit_no);
                void_customer_trans_tax_details(11, $credit_no);