+
+ //Chaitanya : 13_OCT_2011 : Voiding Tasks first
+ //Reason : After modifying the customer trans, it was getting voided later
+ if ($trans_no != 0) {
+ delete_comments(ST_CUSTPAYMENT, $trans_no);
+ void_bank_trans(ST_CUSTPAYMENT, $trans_no, true);
+ void_gl_trans(ST_CUSTPAYMENT, $trans_no, true);
+ void_cust_allocations(ST_CUSTPAYMENT, $trans_no, $date_);
+ }