- foreach($_SESSION['Batch'] as $delivery) {
- $checkbox = 'Sel_'.$delivery['trans'];
- if (check_value($checkbox)) {
- if (!$del_count) {
- $del_customer = $delivery['cust'];
- $del_branch = $delivery['branch'];
- } else {
- if ($del_customer!=$delivery['cust'] || $del_branch != $delivery['branch']) {
- $del_count=0; break;
- }
- }
- $selected[] = $delivery['trans'];
- $del_count++;
- }
+ foreach($_SESSION['Batch'] as $delivery)
+ {
+ $checkbox = 'Sel_'.$delivery['trans'];
+ if (check_value($checkbox))
+ {
+ if (!$del_count)
+ {
+ $del_customer = $delivery['cust'];
+ $del_branch = $delivery['branch'];
+ }
+ else
+ {
+ if ($del_customer!=$delivery['cust'] || $del_branch != $delivery['branch'])
+ {
+ $del_count=0;
+ break;
+ }
+ }
+ $selected[] = $delivery['trans'];
+ $del_count++;
+ }