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);