|
Lines 74-92
if ( $op eq 'cud-form' ) {
Link Here
|
| 74 |
$hold->branchcode($new_pickup_loc)->store; |
74 |
$hold->branchcode($new_pickup_loc)->store; |
| 75 |
} |
75 |
} |
| 76 |
|
76 |
|
| 77 |
if ( $new_suspend_status && $new_suspend_status ne "" && !$hold->is_found ) { |
77 |
if ( $new_suspend_status ne "" ) { |
| 78 |
$hold->suspend(1)->store; |
78 |
if ( $new_suspend_status && !$hold->is_found ) { |
| 79 |
if ($new_suspend_date) { |
79 |
$hold->suspend(1)->store; |
|
|
80 |
if ($new_suspend_date) { |
| 81 |
$hold->suspend_until($new_suspend_date)->store; |
| 82 |
} else { |
| 83 |
$hold->suspend_until(undef)->store; |
| 84 |
} |
| 85 |
} elsif ( !$new_suspend_status && $new_suspend_date ) { |
| 86 |
$hold->suspend(1)->store; |
| 80 |
$hold->suspend_until($new_suspend_date)->store; |
87 |
$hold->suspend_until($new_suspend_date)->store; |
| 81 |
} else { |
88 |
} else { |
|
|
89 |
$hold->suspend(0)->store; |
| 82 |
$hold->suspend_until(undef)->store; |
90 |
$hold->suspend_until(undef)->store; |
| 83 |
} |
91 |
} |
| 84 |
} elsif ( !$new_suspend_status && $new_suspend_date ) { |
|
|
| 85 |
$hold->suspend(1)->store; |
| 86 |
$hold->suspend_until($new_suspend_date)->store; |
| 87 |
} else { |
| 88 |
$hold->suspend(0)->store; |
| 89 |
$hold->suspend_until(undef)->store; |
| 90 |
} |
92 |
} |
| 91 |
|
93 |
|
| 92 |
if ($new_hold_note) { |
94 |
if ($new_hold_note) { |
| 93 |
- |
|
|