- case 10 : // it's a customer invoice
- case 11 : // it's a customer credit note
- case 12 : // it's a customer payment
- case 13 : // it's a customer dispatch
+ case ST_CUSTPAYMENT : // it's a customer payment
+ if (!check_void_bank_trans($type, $type_no))
+ return false;
+ case ST_SALESINVOICE : // it's a customer invoice
+ case ST_CUSTCREDIT : // it's a customer credit note
+ case ST_CUSTDELIVERY : // it's a customer dispatch