|
Lines 573-579
if ($nok or !$nodouble){
Link Here
|
| 573 |
%data=%newdata; |
573 |
%data=%newdata; |
| 574 |
$template->param( updtype => ($op eq 'add' ?'I':'M')); # used to check for $op eq "insert"... but we just changed $op! |
574 |
$template->param( updtype => ($op eq 'add' ?'I':'M')); # used to check for $op eq "insert"... but we just changed $op! |
| 575 |
unless ($step){ |
575 |
unless ($step){ |
| 576 |
$template->param( step_1 => 1,step_2 => 1,step_3 => 1, step_4 => 1, step_5 => 1, step_6 => 1); |
576 |
$template->param( step_1 => 1,step_2 => 1,step_3 => 1, step_4 => 1, step_5 => 1, step_6 => 1, step_7 => 1 ); |
| 577 |
} |
577 |
} |
| 578 |
} |
578 |
} |
| 579 |
if (C4::Context->preference("IndependentBranches")) { |
579 |
if (C4::Context->preference("IndependentBranches")) { |
|
Lines 586-596
if (C4::Context->preference("IndependentBranches")) {
Link Here
|
| 586 |
} |
586 |
} |
| 587 |
} |
587 |
} |
| 588 |
if ($op eq 'add'){ |
588 |
if ($op eq 'add'){ |
| 589 |
$template->param( updtype => 'I', step_1=>1, step_2=>1, step_3=>1, step_4=>1, step_5 => 1, step_6 => 1); |
589 |
$template->param( updtype => 'I', step_1=>1, step_2=>1, step_3=>1, step_4=>1, step_5 => 1, step_6 => 1, step_7 => 1); |
| 590 |
} |
590 |
} |
| 591 |
if ($op eq "modify") { |
591 |
if ($op eq "modify") { |
| 592 |
$template->param( updtype => 'M',modify => 1 ); |
592 |
$template->param( updtype => 'M',modify => 1 ); |
| 593 |
$template->param( step_1=>1, step_2=>1, step_3=>1, step_4=>1, step_5 => 1, step_6 => 1) unless $step; |
593 |
$template->param( step_1=>1, step_2=>1, step_3=>1, step_4=>1, step_5 => 1, step_6 => 1, step_7 => 1) unless $step; |
| 594 |
if ( $step == 4 ) { |
594 |
if ( $step == 4 ) { |
| 595 |
$template->param( categorycode => $borrower_data->{'categorycode'} ); |
595 |
$template->param( categorycode => $borrower_data->{'categorycode'} ); |
| 596 |
} |
596 |
} |
|
Lines 606-612
if ($op eq "modify") {
Link Here
|
| 606 |
} |
606 |
} |
| 607 |
if ( $op eq "duplicate" ) { |
607 |
if ( $op eq "duplicate" ) { |
| 608 |
$template->param( updtype => 'I' ); |
608 |
$template->param( updtype => 'I' ); |
| 609 |
$template->param( step_1 => 1, step_2 => 1, step_3 => 1, step_4 => 1, step_5 => 1, step_6 => 1 ) unless $step; |
609 |
$template->param( step_1 => 1, step_2 => 1, step_3 => 1, step_4 => 1, step_5 => 1, step_6 => 1, step_7 => 1 ) unless $step; |
| 610 |
$data{'cardnumber'} = ""; |
610 |
$data{'cardnumber'} = ""; |
| 611 |
} |
611 |
} |
| 612 |
|
612 |
|
| 613 |
- |
|
|