Lines 131-138
elsif ( $op eq 'delete' ) {
Link Here
|
131 |
$sthitems->execute( $branchcode, $branchcode ); |
131 |
$sthitems->execute( $branchcode, $branchcode ); |
132 |
$sthborrowers->execute( $branchcode ); |
132 |
$sthborrowers->execute( $branchcode ); |
133 |
my ($totalitems) = $sthitems->fetchrow_array; |
133 |
my ($totalitems) = $sthitems->fetchrow_array; |
134 |
my ($totalborrowers) = $sthitems->fetchrow_array; |
134 |
my ($totalborrowers) = $sthborrowers->fetchrow_array; |
135 |
if ($totalitems or $totalborrowers) { |
135 |
if ($totalitems && !$totalborrowers) { |
|
|
136 |
$template->param( else => 1 ); |
137 |
default("MESSAGE10", $template); |
138 |
} |
139 |
elsif (!$totalitems && $totalborrowers){ |
140 |
$template->param( else => 1 ); |
141 |
default("MESSAGE11", $template); |
142 |
} |
143 |
elsif ($totalitems && $totalborrowers){ |
136 |
$template->param( else => 1 ); |
144 |
$template->param( else => 1 ); |
137 |
default("MESSAGE7", $template); |
145 |
default("MESSAGE7", $template); |
138 |
} |
146 |
} |