|
Lines 1098-1279
Link Here
|
| 1098 |
</div> |
1098 |
</div> |
| 1099 |
[% END %] |
1099 |
[% END %] |
| 1100 |
|
1100 |
|
| 1101 |
<div id="refund-lost-item-fee-on-return" class="page-section"> |
1101 |
<div id="lost-item-rules" class="page-section"> |
| 1102 |
[% IF current_branch == '*' %] |
1102 |
<div id="refund-lost-item-fee-on-return" class="page-section"> |
| 1103 |
<h2>Default lost item fee refund on return policy</h2> |
1103 |
[% IF current_branch == '*' %] |
| 1104 |
[% ELSE %] |
1104 |
<h2>Default lost item fee refund on return policy</h2> |
| 1105 |
<h2>Lost item fee refund on return policy for [% Branches.GetName(current_branch) | html %]</h2> |
1105 |
[% ELSE %] |
| 1106 |
[% END %] |
1106 |
<h2>Lost item fee refund on return policy for [% Branches.GetName(current_branch) | html %]</h2> |
| 1107 |
<p>Specify the default policy for lost item fees on return.</p> |
1107 |
[% END %] |
| 1108 |
<form method="post" action="/cgi-bin/koha/admin/smart-rules.pl"> |
1108 |
<p>Specify the default policy for lost item fees on return.</p> |
| 1109 |
[% INCLUDE 'csrf-token.inc' %] |
1109 |
<form method="post" action="/cgi-bin/koha/admin/smart-rules.pl"> |
| 1110 |
<input type="hidden" name="op" value="cud-mod-refund-lost-item-fee-rule" /> |
1110 |
[% INCLUDE 'csrf-token.inc' %] |
| 1111 |
<input type="hidden" name="branch" value="[% current_branch | html %]" /> |
1111 |
<input type="hidden" name="op" value="cud-mod-refund-lost-item-fee-rule" /> |
| 1112 |
<table> |
1112 |
<input type="hidden" name="branch" value="[% current_branch | html %]" /> |
| 1113 |
<tr> |
1113 |
<table> |
| 1114 |
<th>Refund lost item replacement fee</th> |
1114 |
<tr> |
| 1115 |
<th>Refund lost item processing fee</th> |
1115 |
<th>Refund lost item replacement fee</th> |
| 1116 |
<th> </th> |
1116 |
<th>Refund lost item processing fee</th> |
| 1117 |
</tr> |
1117 |
<th> </th> |
| 1118 |
<tr> |
1118 |
</tr> |
| 1119 |
<td> |
1119 |
<tr> |
| 1120 |
<select name="lostreturn"> |
1120 |
<td> |
| 1121 |
[%# Default branch %] |
1121 |
<select name="lostreturn"> |
| 1122 |
[% IF ( current_branch == '*' ) %] |
1122 |
[%# Default branch %] |
| 1123 |
[% IF ( defaultRefundRule == 'refund' ) %] |
1123 |
[% IF ( current_branch == '*' ) %] |
| 1124 |
<option value="refund" selected="selected">Refund lost item charge</option> |
1124 |
[% IF ( defaultRefundRule == 'refund' ) %] |
| 1125 |
<option value="refund_unpaid">Refund lost item charge (only if unpaid)</option> |
|
|
| 1126 |
<option value="charge">Refund lost item charge and charge new overdue fine</option> |
| 1127 |
<option value="restore">Refund lost item charge and restore overdue fine</option> |
| 1128 |
<option value="0">Leave lost item charge</option> |
| 1129 |
[% ELSIF ( defaultRefundRule == 'refund_unpaid' ) %] |
| 1130 |
<option value="refund">Refund lost item charge</option> |
| 1131 |
<option value="refund_unpaid" selected="selected">Refund lost item charge (only if unpaid)</option> |
| 1132 |
<option value="charge">Refund lost item charge and charge new overdue fine</option> |
| 1133 |
<option value="restore">Refund lost item charge and restore overdue fine</option> |
| 1134 |
<option value="0">Leave lost item charge</option> |
| 1135 |
[% ELSIF ( defaultRefundRule == 'charge' ) %] |
| 1136 |
<option value="refund">Refund lost item charge</option> |
| 1137 |
<option value="refund_unpaid">Refund lost item charge (only if unpaid)</option> |
| 1138 |
<option value="charge" selected="selected">Refund lost item charge and charge new overdue fine</option> |
| 1139 |
<option value="restore">Refund lost item charge and restore overdue fine</option> |
| 1140 |
<option value="0">Leave lost item charge</option> |
| 1141 |
[% ELSIF ( defaultRefundRule == 'restore' ) %] |
| 1142 |
<option value="refund">Refund lost item charge</option> |
| 1143 |
<option value="refund_unpaid">Refund lost item charge (only if unpaid)</option> |
| 1144 |
<option value="charge">Refund lost item charge and charge new overdue fine</option> |
| 1145 |
<option value="restore" selected="selected">Refund lost item charge and restore overdue fine</option> |
| 1146 |
<option value="0">Leave lost item charge</option> |
| 1147 |
[% ELSIF ( defaultRefundRule == 0 ) %] |
| 1148 |
<option value="refund">Refund lost item charge</option> |
| 1149 |
<option value="refund_unpaid">Refund lost item charge (only if unpaid)</option> |
| 1150 |
<option value="charge">Refund lost item charge and charge new overdue fine</option> |
| 1151 |
<option value="restore">Refund lost item charge and restore overdue fine</option> |
| 1152 |
<option value="0" selected="selected">Leave lost item charge</option> |
| 1153 |
[% ELSE %] |
| 1154 |
<option value="refund">Refund lost item charge</option> |
| 1155 |
<option value="refund_unpaid">Refund lost item charge (only if unpaid)</option> |
| 1156 |
<option value="charge">Refund lost item charge and charge new overdue fine</option> |
| 1157 |
<option value="restore">Refund lost item charge and restore overdue fine</option> |
| 1158 |
<option value="0">Leave lost item charge</option> |
| 1159 |
[% END %] |
| 1160 |
[% ELSE %] |
| 1161 |
[%# Branch-specific %] |
| 1162 |
<option value="*" [% IF ( not refundLostItemFeeRule ) %]selected="selected"[% END %]> |
| 1163 |
[% IF defaultRefundRule == 'refund' %] |
| 1164 |
<span>Use default (Refund lost item charge)</span> |
| 1165 |
[% ELSIF defaultRefundRule == 'refund_unpaid' %] |
| 1166 |
Use default (Refund lost item charge (only if unpaid)) |
| 1167 |
[% ELSIF defaultRefundRule == 'charge' %] |
| 1168 |
<span>Use default (Refund lost item charge and charge new overdue fine)</span> |
| 1169 |
[% ELSIF defaultRefundRule == 'restore' %] |
| 1170 |
<span>Use default (Refund lost item charge and restore overdue fine)</span> |
| 1171 |
[% ELSE %] |
| 1172 |
<span>Use default (Leave lost item charge)</span> |
| 1173 |
[% END %] |
| 1174 |
</option> |
| 1175 |
[% IF ( not refundLostItemFeeRule ) %] |
| 1176 |
<option value="refund">Refund lost item charge</option> |
| 1177 |
<option value="refund_unpaid">Refund lost item charge (only if unpaid)</option> |
| 1178 |
<option value="charge">Refund lost item charge and charge new overdue fine</option> |
| 1179 |
<option value="restore">Refund lost item charge and restore overdue fine</option> |
| 1180 |
<option value="0">Leave lost item charge</option> |
| 1181 |
[% ELSE %] |
| 1182 |
[% IF ( refundLostItemFeeRule.rule_value == 'refund' ) %] |
| 1183 |
<option value="refund" selected="selected">Refund lost item charge</option> |
1125 |
<option value="refund" selected="selected">Refund lost item charge</option> |
| 1184 |
<option value="refund_unpaid">Refund lost item charge (only if unpaid)</option> |
1126 |
<option value="refund_unpaid">Refund lost item charge (only if unpaid)</option> |
| 1185 |
<option value="charge">Refund lost item charge and charge new overdue fine</option> |
1127 |
<option value="charge">Refund lost item charge and charge new overdue fine</option> |
| 1186 |
<option value="restore">Refund lost item charge and restore overdue fine</option> |
1128 |
<option value="restore">Refund lost item charge and restore overdue fine</option> |
| 1187 |
<option value="0">Leave lost item charge</option> |
1129 |
<option value="0">Leave lost item charge</option> |
| 1188 |
[% ELSIF ( refundLostItemFeeRule.rule_value == 'refund_unpaid' ) %] |
1130 |
[% ELSIF ( defaultRefundRule == 'refund_unpaid' ) %] |
| 1189 |
<option value="refund">Refund lost item charge</option> |
1131 |
<option value="refund">Refund lost item charge</option> |
| 1190 |
<option value="refund_unpaid" selected="selected">Refund lost item charge (only if unpaid)</option> |
1132 |
<option value="refund_unpaid" selected="selected">Refund lost item charge (only if unpaid)</option> |
| 1191 |
<option value="charge">Refund lost item charge and charge new overdue fine</option> |
1133 |
<option value="charge">Refund lost item charge and charge new overdue fine</option> |
| 1192 |
<option value="restore">Refund lost item charge and restore overdue fine</option> |
1134 |
<option value="restore">Refund lost item charge and restore overdue fine</option> |
| 1193 |
<option value="0">Leave lost item charge</option> |
1135 |
<option value="0">Leave lost item charge</option> |
| 1194 |
[% ELSIF ( refundLostItemFeeRule.rule_value == 'charge' ) %] |
1136 |
[% ELSIF ( defaultRefundRule == 'charge' ) %] |
| 1195 |
<option value="refund">Refund lost item charge</option> |
1137 |
<option value="refund">Refund lost item charge</option> |
| 1196 |
<option value="refund_unpaid">Refund lost item charge (only if unpaid)</option> |
1138 |
<option value="refund_unpaid">Refund lost item charge (only if unpaid)</option> |
| 1197 |
<option value="charge" selected="selected">Refund lost item charge and charge new overdue fine</option> |
1139 |
<option value="charge" selected="selected">Refund lost item charge and charge new overdue fine</option> |
| 1198 |
<option value="restore">Refund lost item charge and restore overdue fine</option> |
1140 |
<option value="restore">Refund lost item charge and restore overdue fine</option> |
| 1199 |
<option value="0">Leave lost item charge</option> |
1141 |
<option value="0">Leave lost item charge</option> |
| 1200 |
[% ELSIF ( refundLostItemFeeRule.rule_value == 'restore' ) %] |
1142 |
[% ELSIF ( defaultRefundRule == 'restore' ) %] |
| 1201 |
<option value="refund">Refund lost item charge</option> |
1143 |
<option value="refund">Refund lost item charge</option> |
| 1202 |
<option value="refund_unpaid">Refund lost item charge (only if unpaid)</option> |
1144 |
<option value="refund_unpaid">Refund lost item charge (only if unpaid)</option> |
| 1203 |
<option value="charge">Refund lost item charge and charge new overdue fine</option> |
1145 |
<option value="charge">Refund lost item charge and charge new overdue fine</option> |
| 1204 |
<option value="restore" selected="selected">Refund lost item charge and restore overdue fine</option> |
1146 |
<option value="restore" selected="selected">Refund lost item charge and restore overdue fine</option> |
| 1205 |
<option value="0">Leave lost item charge</option> |
1147 |
<option value="0">Leave lost item charge</option> |
| 1206 |
[% ELSIF ( refundLostItemFeeRule.rule_value == 0 ) %] |
1148 |
[% ELSIF ( defaultRefundRule == 0 ) %] |
| 1207 |
<option value="refund">Refund lost item charge</option> |
1149 |
<option value="refund">Refund lost item charge</option> |
| 1208 |
<option value="refund_unpaid">Refund lost item charge (only if unpaid)</option> |
1150 |
<option value="refund_unpaid">Refund lost item charge (only if unpaid)</option> |
| 1209 |
<option value="charge">Refund lost item charge and charge new overdue fine</option> |
1151 |
<option value="charge">Refund lost item charge and charge new overdue fine</option> |
| 1210 |
<option value="restore">Refund lost item charge and restore overdue fine</option> |
1152 |
<option value="restore">Refund lost item charge and restore overdue fine</option> |
| 1211 |
<option value="0" selected="selected">Leave lost item charge</option> |
1153 |
<option value="0" selected="selected">Leave lost item charge</option> |
|
|
1154 |
[% ELSE %] |
| 1155 |
<option value="refund">Refund lost item charge</option> |
| 1156 |
<option value="refund_unpaid">Refund lost item charge (only if unpaid)</option> |
| 1157 |
<option value="charge">Refund lost item charge and charge new overdue fine</option> |
| 1158 |
<option value="restore">Refund lost item charge and restore overdue fine</option> |
| 1159 |
<option value="0">Leave lost item charge</option> |
| 1212 |
[% END %] |
1160 |
[% END %] |
| 1213 |
[% END %] |
|
|
| 1214 |
[% END %] |
| 1215 |
</select> |
| 1216 |
</td> |
| 1217 |
<td> |
| 1218 |
<select name="processingreturn"> |
| 1219 |
[%# Default branch %] |
| 1220 |
[% IF ( current_branch == '*' ) %] |
| 1221 |
[% IF ( defaultProcessingRefundRule == 'refund' ) %] |
| 1222 |
<option value="refund" selected="selected">Refund lost item processing charge</option> |
| 1223 |
<option value="refund_unpaid">Refund lost item processing charge (only if unpaid)</option> |
| 1224 |
<option value="0">Leave lost item processing charge</option> |
| 1225 |
[% ELSIF ( defaultProcessingRefundRule == 'refund_unpaid' ) %] |
| 1226 |
<option value="refund">Refund lost item charge</option> |
| 1227 |
<option value="refund_unpaid" selected="selected">Refund lost item processing charge (only if unpaid)</option> |
| 1228 |
<option value="0">Leave lost item processing charge</option> |
| 1229 |
[% ELSIF ( defaultProcessingRefundRule == 0 ) %] |
| 1230 |
<option value="refund">Refund lost item processing charge</option> |
| 1231 |
<option value="refund_unpaid">Refund lost item processing charge (only if unpaid)</option> |
| 1232 |
<option value="0" selected="selected">Leave lost item processing charge</option> |
| 1233 |
[% ELSE %] |
1161 |
[% ELSE %] |
| 1234 |
<option value="refund">Refund lost item processing charge</option> |
1162 |
[%# Branch-specific %] |
| 1235 |
<option value="refund_unpaid">Refund lost item processing charge (only if unpaid)</option> |
1163 |
<option value="*" [% IF ( not refundLostItemFeeRule ) %]selected="selected"[% END %]> |
| 1236 |
<option value="0">Leave lost item processing charge</option> |
1164 |
[% IF defaultRefundRule == 'refund' %] |
| 1237 |
[% END %] |
1165 |
<span>Use default (Refund lost item charge)</span> |
| 1238 |
[% ELSE %] |
1166 |
[% ELSIF defaultRefundRule == 'refund_unpaid' %] |
| 1239 |
[%# Branch-specific %] |
1167 |
Use default (Refund lost item charge (only if unpaid)) |
| 1240 |
<option value="*" [% IF ( not refundProcessingFeeRule ) %]selected="selected"[% END %]> |
1168 |
[% ELSIF defaultRefundRule == 'charge' %] |
| 1241 |
[% IF defaultProcessingRefundRule == 'refund' %] |
1169 |
<span>Use default (Refund lost item charge and charge new overdue fine)</span> |
| 1242 |
<span>Use default (Refund lost item processing charge)</span> |
1170 |
[% ELSIF defaultRefundRule == 'restore' %] |
| 1243 |
[% ELSIF defaultProcessingRefundRule == 'refund_unpaid' %] |
1171 |
<span>Use default (Refund lost item charge and restore overdue fine)</span> |
| 1244 |
Use default (Refund lost item processing charge (only if unpaid)) |
1172 |
[% ELSE %] |
|
|
1173 |
<span>Use default (Leave lost item charge)</span> |
| 1174 |
[% END %] |
| 1175 |
</option> |
| 1176 |
[% IF ( not refundLostItemFeeRule ) %] |
| 1177 |
<option value="refund">Refund lost item charge</option> |
| 1178 |
<option value="refund_unpaid">Refund lost item charge (only if unpaid)</option> |
| 1179 |
<option value="charge">Refund lost item charge and charge new overdue fine</option> |
| 1180 |
<option value="restore">Refund lost item charge and restore overdue fine</option> |
| 1181 |
<option value="0">Leave lost item charge</option> |
| 1245 |
[% ELSE %] |
1182 |
[% ELSE %] |
| 1246 |
<span>Use default (Leave lost item processing charge)</span> |
1183 |
[% IF ( refundLostItemFeeRule.rule_value == 'refund' ) %] |
|
|
1184 |
<option value="refund" selected="selected">Refund lost item charge</option> |
| 1185 |
<option value="refund_unpaid">Refund lost item charge (only if unpaid)</option> |
| 1186 |
<option value="charge">Refund lost item charge and charge new overdue fine</option> |
| 1187 |
<option value="restore">Refund lost item charge and restore overdue fine</option> |
| 1188 |
<option value="0">Leave lost item charge</option> |
| 1189 |
[% ELSIF ( refundLostItemFeeRule.rule_value == 'refund_unpaid' ) %] |
| 1190 |
<option value="refund">Refund lost item charge</option> |
| 1191 |
<option value="refund_unpaid" selected="selected">Refund lost item charge (only if unpaid)</option> |
| 1192 |
<option value="charge">Refund lost item charge and charge new overdue fine</option> |
| 1193 |
<option value="restore">Refund lost item charge and restore overdue fine</option> |
| 1194 |
<option value="0">Leave lost item charge</option> |
| 1195 |
[% ELSIF ( refundLostItemFeeRule.rule_value == 'charge' ) %] |
| 1196 |
<option value="refund">Refund lost item charge</option> |
| 1197 |
<option value="refund_unpaid">Refund lost item charge (only if unpaid)</option> |
| 1198 |
<option value="charge" selected="selected">Refund lost item charge and charge new overdue fine</option> |
| 1199 |
<option value="restore">Refund lost item charge and restore overdue fine</option> |
| 1200 |
<option value="0">Leave lost item charge</option> |
| 1201 |
[% ELSIF ( refundLostItemFeeRule.rule_value == 'restore' ) %] |
| 1202 |
<option value="refund">Refund lost item charge</option> |
| 1203 |
<option value="refund_unpaid">Refund lost item charge (only if unpaid)</option> |
| 1204 |
<option value="charge">Refund lost item charge and charge new overdue fine</option> |
| 1205 |
<option value="restore" selected="selected">Refund lost item charge and restore overdue fine</option> |
| 1206 |
<option value="0">Leave lost item charge</option> |
| 1207 |
[% ELSIF ( refundLostItemFeeRule.rule_value == 0 ) %] |
| 1208 |
<option value="refund">Refund lost item charge</option> |
| 1209 |
<option value="refund_unpaid">Refund lost item charge (only if unpaid)</option> |
| 1210 |
<option value="charge">Refund lost item charge and charge new overdue fine</option> |
| 1211 |
<option value="restore">Refund lost item charge and restore overdue fine</option> |
| 1212 |
<option value="0" selected="selected">Leave lost item charge</option> |
| 1213 |
[% END %] |
| 1247 |
[% END %] |
1214 |
[% END %] |
| 1248 |
</option> |
1215 |
[% END %] |
| 1249 |
[% IF ( not refundProcessingFeeRule ) %] |
1216 |
</select> |
| 1250 |
<option value="refund">Refund lost item processing charge</option> |
1217 |
</td> |
| 1251 |
<option value="refund_unpaid">Refund lost item processing charge (only if unpaid)</option> |
1218 |
<td> |
| 1252 |
<option value="0">Leave lost item processing charge</option> |
1219 |
<select name="processingreturn"> |
| 1253 |
[% ELSE %] |
1220 |
[%# Default branch %] |
| 1254 |
[% IF ( refundProcessingFeeRule.rule_value == 'refund' ) %] |
1221 |
[% IF ( current_branch == '*' ) %] |
|
|
1222 |
[% IF ( defaultProcessingRefundRule == 'refund' ) %] |
| 1255 |
<option value="refund" selected="selected">Refund lost item processing charge</option> |
1223 |
<option value="refund" selected="selected">Refund lost item processing charge</option> |
| 1256 |
<option value="refund_unpaid">Refund lost item processing charge (only if unpaid)</option> |
1224 |
<option value="refund_unpaid">Refund lost item processing charge (only if unpaid)</option> |
| 1257 |
<option value="0">Leave lost item processing charge</option> |
1225 |
<option value="0">Leave lost item processing charge</option> |
| 1258 |
[% ELSIF ( refundProcessingFeeRule.rule_value == 'refund_unpaid' ) %] |
1226 |
[% ELSIF ( defaultProcessingRefundRule == 'refund_unpaid' ) %] |
| 1259 |
<option value="refund">Refund lost item processing charge</option> |
1227 |
<option value="refund">Refund lost item charge</option> |
| 1260 |
<option value="refund_unpaid" selected="selected">Refund lost item processing charge (only if unpaid)</option> |
1228 |
<option value="refund_unpaid" selected="selected">Refund lost item processing charge (only if unpaid)</option> |
| 1261 |
<option value="0">Leave lost item processing charge</option> |
1229 |
<option value="0">Leave lost item processing charge</option> |
| 1262 |
[% ELSIF ( refundProcessingFeeRule.rule_value == 0 ) %] |
1230 |
[% ELSIF ( defaultProcessingRefundRule == 0 ) %] |
| 1263 |
<option value="refund">Refund lost item processing charge</option> |
1231 |
<option value="refund">Refund lost item processing charge</option> |
| 1264 |
<option value="refund_unpaid">Refund lost item processing charge (only if unpaid)</option> |
1232 |
<option value="refund_unpaid">Refund lost item processing charge (only if unpaid)</option> |
| 1265 |
<option value="0" selected="selected">Leave lost item processing charge</option> |
1233 |
<option value="0" selected="selected">Leave lost item processing charge</option> |
|
|
1234 |
[% ELSE %] |
| 1235 |
<option value="refund">Refund lost item processing charge</option> |
| 1236 |
<option value="refund_unpaid">Refund lost item processing charge (only if unpaid)</option> |
| 1237 |
<option value="0">Leave lost item processing charge</option> |
| 1238 |
[% END %] |
| 1239 |
[% ELSE %] |
| 1240 |
[%# Branch-specific %] |
| 1241 |
<option value="*" [% IF ( not refundProcessingFeeRule ) %]selected="selected"[% END %]> |
| 1242 |
[% IF defaultProcessingRefundRule == 'refund' %] |
| 1243 |
<span>Use default (Refund lost item processing charge)</span> |
| 1244 |
[% ELSIF defaultProcessingRefundRule == 'refund_unpaid' %] |
| 1245 |
Use default (Refund lost item processing charge (only if unpaid)) |
| 1246 |
[% ELSE %] |
| 1247 |
<span>Use default (Leave lost item processing charge)</span> |
| 1248 |
[% END %] |
| 1249 |
</option> |
| 1250 |
[% IF ( not refundProcessingFeeRule ) %] |
| 1251 |
<option value="refund">Refund lost item processing charge</option> |
| 1252 |
<option value="refund_unpaid">Refund lost item processing charge (only if unpaid)</option> |
| 1253 |
<option value="0">Leave lost item processing charge</option> |
| 1254 |
[% ELSE %] |
| 1255 |
[% IF ( refundProcessingFeeRule.rule_value == 'refund' ) %] |
| 1256 |
<option value="refund" selected="selected">Refund lost item processing charge</option> |
| 1257 |
<option value="refund_unpaid">Refund lost item processing charge (only if unpaid)</option> |
| 1258 |
<option value="0">Leave lost item processing charge</option> |
| 1259 |
[% ELSIF ( refundProcessingFeeRule.rule_value == 'refund_unpaid' ) %] |
| 1260 |
<option value="refund">Refund lost item processing charge</option> |
| 1261 |
<option value="refund_unpaid" selected="selected">Refund lost item processing charge (only if unpaid)</option> |
| 1262 |
<option value="0">Leave lost item processing charge</option> |
| 1263 |
[% ELSIF ( refundProcessingFeeRule.rule_value == 0 ) %] |
| 1264 |
<option value="refund">Refund lost item processing charge</option> |
| 1265 |
<option value="refund_unpaid">Refund lost item processing charge (only if unpaid)</option> |
| 1266 |
<option value="0" selected="selected">Leave lost item processing charge</option> |
| 1267 |
[% END %] |
| 1266 |
[% END %] |
1268 |
[% END %] |
| 1267 |
[% END %] |
1269 |
[% END %] |
| 1268 |
[% END %] |
1270 |
</select> |
| 1269 |
</select> |
1271 |
</td> |
| 1270 |
</td> |
1272 |
<td class="actions"> |
| 1271 |
<td class="actions"> |
1273 |
<button type="submit" class="btn btn-default btn-xs"><i class="fa fa-save"></i> Save</button> |
| 1272 |
<button type="submit" class="btn btn-default btn-xs"><i class="fa fa-save"></i> Save</button> |
1274 |
</td> |
| 1273 |
</td> |
1275 |
</tr> |
| 1274 |
</tr> |
1276 |
</table> |
| 1275 |
</table> |
1277 |
</form> |
| 1276 |
</form> |
1278 |
</div> |
|
|
1279 |
<div id="lost-item-fee-rules" class="page-section"> |
| 1280 |
[% IF current_branch == '*' %] |
| 1281 |
<h2>Default lost item fee policy</h2> |
| 1282 |
[% ELSE %] |
| 1283 |
<h2>Lost item fee policy for [% Branches.GetName(current_branch) | html %]</h2> |
| 1284 |
[% END %] |
| 1285 |
<p>Specify the default policy for lost item fees.</p> |
| 1286 |
<form id="lost_item_processing_fee_form" method="post" action="/cgi-bin/koha/admin/smart-rules.pl"> |
| 1287 |
[% INCLUDE 'csrf-token.inc' %] |
| 1288 |
<input type="hidden" name="op" value="cud-mod-lost-item-fee-rule" /> |
| 1289 |
<input type="hidden" name="branch" value="[% current_branch | html %]" /> |
| 1290 |
<table> |
| 1291 |
<tr> |
| 1292 |
<th>Item type</th> |
| 1293 |
<th>Lost item processing fee</th> |
| 1294 |
<th> </th> |
| 1295 |
</tr> |
| 1296 |
[% SET c = undef %] |
| 1297 |
[% FOREACH i IN itemtypes %] |
| 1298 |
[% SET lost_item_processing_fee = all_rules.$c.$i.lost_item_processing_fee %] |
| 1299 |
|
| 1300 |
[% IF ( lost_item_processing_fee.defined && lost_item_processing_fee != '' ) %] |
| 1301 |
<tr> |
| 1302 |
<td> |
| 1303 |
[% IF i == undef %] |
| 1304 |
<em>All</em> |
| 1305 |
[% ELSE %] |
| 1306 |
[% ItemTypes.GetDescription(i,1) | html %] |
| 1307 |
[% END %] |
| 1308 |
</td> |
| 1309 |
<td> [% lost_item_processing_fee | $Price %] </td> |
| 1310 |
<td class="actions"> |
| 1311 |
<a href="#" class="delete-lost-item-processing-fee btn btn-default btn-xs" data-categorycode="[% '*' | html %]" data-itemtype="[% i || '*' | html %]" data-branch="[% current_branch | html %]" |
| 1312 |
><i class="fa fa-trash-can"></i> Delete</a |
| 1313 |
> |
| 1314 |
</td> |
| 1315 |
</tr> |
| 1316 |
[% END %] |
| 1317 |
[% END %] |
| 1318 |
<tr> |
| 1319 |
<td> |
| 1320 |
<select name="lost_item_processing_fee_itemtype" id="lost_item_processing_fee_itemtype"> |
| 1321 |
<option value="*">All</option> |
| 1322 |
[% FOREACH i IN itemtypeloop %] |
| 1323 |
<option value="[% i.itemtype | html %]">[% ItemTypes.GetDescription(i.itemtype) | html %]</option> |
| 1324 |
[% END %] |
| 1325 |
</select> |
| 1326 |
</td> |
| 1327 |
<td><input name="lost_item_processing_fee" size="5" type="text" inputmode="decimal" pattern="^\d+(\.\d{2})?$" /></td> |
| 1328 |
<td class="actions" |
| 1329 |
><button type="submit" class="btn btn-default btn-xs"><i class="fa fa-plus"></i> Add</button></td |
| 1330 |
> |
| 1331 |
</tr> |
| 1332 |
</table> |
| 1333 |
</form> |
| 1334 |
</div> |
| 1277 |
</div> |
1335 |
</div> |
| 1278 |
|
1336 |
|
| 1279 |
<div id="holds-policy-by-item-type" class="page-section"> |
1337 |
<div id="holds-policy-by-item-type" class="page-section"> |
|
Lines 1458-1463
Link Here
|
| 1458 |
autoWidth: false, |
1516 |
autoWidth: false, |
| 1459 |
}); |
1517 |
}); |
| 1460 |
}); |
1518 |
}); |
|
|
1519 |
$("#lost_item_processing_fee_form").validate({ |
| 1520 |
rules: { |
| 1521 |
lost_item_processing_fee: { required: true, number: true }, |
| 1522 |
}, |
| 1523 |
}); |
| 1461 |
|
1524 |
|
| 1462 |
function clear_edit() { |
1525 |
function clear_edit() { |
| 1463 |
var cancel = confirm(_("Are you sure you want to cancel your changes?")); |
1526 |
var cancel = confirm(_("Are you sure you want to cancel your changes?")); |
|
Lines 1665-1670
Link Here
|
| 1665 |
return f.submit(); |
1728 |
return f.submit(); |
| 1666 |
}); |
1729 |
}); |
| 1667 |
|
1730 |
|
|
|
1731 |
$(".delete-lost-item-processing-fee").on("click", function (e) { |
| 1732 |
e.preventDefault(); |
| 1733 |
if (!confirmDelete(MSG_CONFIRM_DELETE)) { |
| 1734 |
return false; |
| 1735 |
} |
| 1736 |
let f = $("#delete_form"); |
| 1737 |
f.find("[name='op']").val("cud-delete-lost-item-processing-fee"); |
| 1738 |
f.find("[name='itemtype']").val($(this).data("itemtype")); |
| 1739 |
f.find("[name='branch']").val($(this).data("branch")); |
| 1740 |
return f.submit(); |
| 1741 |
}); |
| 1742 |
|
| 1668 |
$(".del-waiting-hold-cancellation").on("click", function (e) { |
1743 |
$(".del-waiting-hold-cancellation").on("click", function (e) { |
| 1669 |
e.preventDefault(); |
1744 |
e.preventDefault(); |
| 1670 |
if (!confirmDelete(MSG_CONFIRM_DELETE)) { |
1745 |
if (!confirmDelete(MSG_CONFIRM_DELETE)) { |
| 1671 |
- |
|
|