|
Lines 1109-1290
Link Here
|
| 1109 |
</div> |
1109 |
</div> |
| 1110 |
[% END %] |
1110 |
[% END %] |
| 1111 |
|
1111 |
|
| 1112 |
<div id="refund-lost-item-fee-on-return" class="page-section"> |
1112 |
<div id="lost-item-rules" class="page-section"> |
| 1113 |
[% IF current_branch == '*' %] |
1113 |
<div id="refund-lost-item-fee-on-return" class="page-section"> |
| 1114 |
<h2>Default lost item fee refund on return policy</h2> |
1114 |
[% IF current_branch == '*' %] |
| 1115 |
[% ELSE %] |
1115 |
<h2>Default lost item fee refund on return policy</h2> |
| 1116 |
<h2>Lost item fee refund on return policy for [% Branches.GetName(current_branch) | html %]</h2> |
1116 |
[% ELSE %] |
| 1117 |
[% END %] |
1117 |
<h2>Lost item fee refund on return policy for [% Branches.GetName(current_branch) | html %]</h2> |
| 1118 |
<p>Specify the default policy for lost item fees on return.</p> |
1118 |
[% END %] |
| 1119 |
<form method="post" action="/cgi-bin/koha/admin/smart-rules.pl"> |
1119 |
<p>Specify the default policy for lost item fees on return.</p> |
| 1120 |
[% INCLUDE 'csrf-token.inc' %] |
1120 |
<form method="post" action="/cgi-bin/koha/admin/smart-rules.pl"> |
| 1121 |
<input type="hidden" name="op" value="cud-mod-refund-lost-item-fee-rule" /> |
1121 |
[% INCLUDE 'csrf-token.inc' %] |
| 1122 |
<input type="hidden" name="branch" value="[% current_branch | html %]" /> |
1122 |
<input type="hidden" name="op" value="cud-mod-refund-lost-item-fee-rule" /> |
| 1123 |
<table> |
1123 |
<input type="hidden" name="branch" value="[% current_branch | html %]" /> |
| 1124 |
<tr> |
1124 |
<table> |
| 1125 |
<th>Refund lost item replacement fee</th> |
1125 |
<tr> |
| 1126 |
<th>Refund lost item processing fee</th> |
1126 |
<th>Refund lost item replacement fee</th> |
| 1127 |
<th> </th> |
1127 |
<th>Refund lost item processing fee</th> |
| 1128 |
</tr> |
1128 |
<th> </th> |
| 1129 |
<tr> |
1129 |
</tr> |
| 1130 |
<td> |
1130 |
<tr> |
| 1131 |
<select name="lostreturn"> |
1131 |
<td> |
| 1132 |
[%# Default branch %] |
1132 |
<select name="lostreturn"> |
| 1133 |
[% IF ( current_branch == '*' ) %] |
1133 |
[%# Default branch %] |
| 1134 |
[% IF ( defaultRefundRule == 'refund' ) %] |
1134 |
[% IF ( current_branch == '*' ) %] |
| 1135 |
<option value="refund" selected="selected">Refund lost item charge</option> |
1135 |
[% IF ( defaultRefundRule == 'refund' ) %] |
| 1136 |
<option value="refund_unpaid">Refund lost item charge (only if unpaid)</option> |
|
|
| 1137 |
<option value="charge">Refund lost item charge and charge new overdue fine</option> |
| 1138 |
<option value="restore">Refund lost item charge and restore overdue fine</option> |
| 1139 |
<option value="0">Leave lost item charge</option> |
| 1140 |
[% ELSIF ( defaultRefundRule == 'refund_unpaid' ) %] |
| 1141 |
<option value="refund">Refund lost item charge</option> |
| 1142 |
<option value="refund_unpaid" selected="selected">Refund lost item charge (only if unpaid)</option> |
| 1143 |
<option value="charge">Refund lost item charge and charge new overdue fine</option> |
| 1144 |
<option value="restore">Refund lost item charge and restore overdue fine</option> |
| 1145 |
<option value="0">Leave lost item charge</option> |
| 1146 |
[% ELSIF ( defaultRefundRule == 'charge' ) %] |
| 1147 |
<option value="refund">Refund lost item charge</option> |
| 1148 |
<option value="refund_unpaid">Refund lost item charge (only if unpaid)</option> |
| 1149 |
<option value="charge" selected="selected">Refund lost item charge and charge new overdue fine</option> |
| 1150 |
<option value="restore">Refund lost item charge and restore overdue fine</option> |
| 1151 |
<option value="0">Leave lost item charge</option> |
| 1152 |
[% ELSIF ( defaultRefundRule == 'restore' ) %] |
| 1153 |
<option value="refund">Refund lost item charge</option> |
| 1154 |
<option value="refund_unpaid">Refund lost item charge (only if unpaid)</option> |
| 1155 |
<option value="charge">Refund lost item charge and charge new overdue fine</option> |
| 1156 |
<option value="restore" selected="selected">Refund lost item charge and restore overdue fine</option> |
| 1157 |
<option value="0">Leave lost item charge</option> |
| 1158 |
[% ELSIF ( defaultRefundRule == 0 ) %] |
| 1159 |
<option value="refund">Refund lost item charge</option> |
| 1160 |
<option value="refund_unpaid">Refund lost item charge (only if unpaid)</option> |
| 1161 |
<option value="charge">Refund lost item charge and charge new overdue fine</option> |
| 1162 |
<option value="restore">Refund lost item charge and restore overdue fine</option> |
| 1163 |
<option value="0" selected="selected">Leave lost item charge</option> |
| 1164 |
[% ELSE %] |
| 1165 |
<option value="refund">Refund lost item charge</option> |
| 1166 |
<option value="refund_unpaid">Refund lost item charge (only if unpaid)</option> |
| 1167 |
<option value="charge">Refund lost item charge and charge new overdue fine</option> |
| 1168 |
<option value="restore">Refund lost item charge and restore overdue fine</option> |
| 1169 |
<option value="0">Leave lost item charge</option> |
| 1170 |
[% END %] |
| 1171 |
[% ELSE %] |
| 1172 |
[%# Branch-specific %] |
| 1173 |
<option value="*" [% IF ( not refundLostItemFeeRule ) %]selected="selected"[% END %]> |
| 1174 |
[% IF defaultRefundRule == 'refund' %] |
| 1175 |
<span>Use default (Refund lost item charge)</span> |
| 1176 |
[% ELSIF defaultRefundRule == 'refund_unpaid' %] |
| 1177 |
Use default (Refund lost item charge (only if unpaid)) |
| 1178 |
[% ELSIF defaultRefundRule == 'charge' %] |
| 1179 |
<span>Use default (Refund lost item charge and charge new overdue fine)</span> |
| 1180 |
[% ELSIF defaultRefundRule == 'restore' %] |
| 1181 |
<span>Use default (Refund lost item charge and restore overdue fine)</span> |
| 1182 |
[% ELSE %] |
| 1183 |
<span>Use default (Leave lost item charge)</span> |
| 1184 |
[% END %] |
| 1185 |
</option> |
| 1186 |
[% IF ( not refundLostItemFeeRule ) %] |
| 1187 |
<option value="refund">Refund lost item charge</option> |
| 1188 |
<option value="refund_unpaid">Refund lost item charge (only if unpaid)</option> |
| 1189 |
<option value="charge">Refund lost item charge and charge new overdue fine</option> |
| 1190 |
<option value="restore">Refund lost item charge and restore overdue fine</option> |
| 1191 |
<option value="0">Leave lost item charge</option> |
| 1192 |
[% ELSE %] |
| 1193 |
[% IF ( refundLostItemFeeRule.rule_value == 'refund' ) %] |
| 1194 |
<option value="refund" selected="selected">Refund lost item charge</option> |
1136 |
<option value="refund" selected="selected">Refund lost item charge</option> |
| 1195 |
<option value="refund_unpaid">Refund lost item charge (only if unpaid)</option> |
1137 |
<option value="refund_unpaid">Refund lost item charge (only if unpaid)</option> |
| 1196 |
<option value="charge">Refund lost item charge and charge new overdue fine</option> |
1138 |
<option value="charge">Refund lost item charge and charge new overdue fine</option> |
| 1197 |
<option value="restore">Refund lost item charge and restore overdue fine</option> |
1139 |
<option value="restore">Refund lost item charge and restore overdue fine</option> |
| 1198 |
<option value="0">Leave lost item charge</option> |
1140 |
<option value="0">Leave lost item charge</option> |
| 1199 |
[% ELSIF ( refundLostItemFeeRule.rule_value == 'refund_unpaid' ) %] |
1141 |
[% ELSIF ( defaultRefundRule == 'refund_unpaid' ) %] |
| 1200 |
<option value="refund">Refund lost item charge</option> |
1142 |
<option value="refund">Refund lost item charge</option> |
| 1201 |
<option value="refund_unpaid" selected="selected">Refund lost item charge (only if unpaid)</option> |
1143 |
<option value="refund_unpaid" selected="selected">Refund lost item charge (only if unpaid)</option> |
| 1202 |
<option value="charge">Refund lost item charge and charge new overdue fine</option> |
1144 |
<option value="charge">Refund lost item charge and charge new overdue fine</option> |
| 1203 |
<option value="restore">Refund lost item charge and restore overdue fine</option> |
1145 |
<option value="restore">Refund lost item charge and restore overdue fine</option> |
| 1204 |
<option value="0">Leave lost item charge</option> |
1146 |
<option value="0">Leave lost item charge</option> |
| 1205 |
[% ELSIF ( refundLostItemFeeRule.rule_value == 'charge' ) %] |
1147 |
[% ELSIF ( defaultRefundRule == 'charge' ) %] |
| 1206 |
<option value="refund">Refund lost item charge</option> |
1148 |
<option value="refund">Refund lost item charge</option> |
| 1207 |
<option value="refund_unpaid">Refund lost item charge (only if unpaid)</option> |
1149 |
<option value="refund_unpaid">Refund lost item charge (only if unpaid)</option> |
| 1208 |
<option value="charge" selected="selected">Refund lost item charge and charge new overdue fine</option> |
1150 |
<option value="charge" selected="selected">Refund lost item charge and charge new overdue fine</option> |
| 1209 |
<option value="restore">Refund lost item charge and restore overdue fine</option> |
1151 |
<option value="restore">Refund lost item charge and restore overdue fine</option> |
| 1210 |
<option value="0">Leave lost item charge</option> |
1152 |
<option value="0">Leave lost item charge</option> |
| 1211 |
[% ELSIF ( refundLostItemFeeRule.rule_value == 'restore' ) %] |
1153 |
[% ELSIF ( defaultRefundRule == 'restore' ) %] |
| 1212 |
<option value="refund">Refund lost item charge</option> |
1154 |
<option value="refund">Refund lost item charge</option> |
| 1213 |
<option value="refund_unpaid">Refund lost item charge (only if unpaid)</option> |
1155 |
<option value="refund_unpaid">Refund lost item charge (only if unpaid)</option> |
| 1214 |
<option value="charge">Refund lost item charge and charge new overdue fine</option> |
1156 |
<option value="charge">Refund lost item charge and charge new overdue fine</option> |
| 1215 |
<option value="restore" selected="selected">Refund lost item charge and restore overdue fine</option> |
1157 |
<option value="restore" selected="selected">Refund lost item charge and restore overdue fine</option> |
| 1216 |
<option value="0">Leave lost item charge</option> |
1158 |
<option value="0">Leave lost item charge</option> |
| 1217 |
[% ELSIF ( refundLostItemFeeRule.rule_value == 0 ) %] |
1159 |
[% ELSIF ( defaultRefundRule == 0 ) %] |
| 1218 |
<option value="refund">Refund lost item charge</option> |
1160 |
<option value="refund">Refund lost item charge</option> |
| 1219 |
<option value="refund_unpaid">Refund lost item charge (only if unpaid)</option> |
1161 |
<option value="refund_unpaid">Refund lost item charge (only if unpaid)</option> |
| 1220 |
<option value="charge">Refund lost item charge and charge new overdue fine</option> |
1162 |
<option value="charge">Refund lost item charge and charge new overdue fine</option> |
| 1221 |
<option value="restore">Refund lost item charge and restore overdue fine</option> |
1163 |
<option value="restore">Refund lost item charge and restore overdue fine</option> |
| 1222 |
<option value="0" selected="selected">Leave lost item charge</option> |
1164 |
<option value="0" selected="selected">Leave lost item charge</option> |
|
|
1165 |
[% ELSE %] |
| 1166 |
<option value="refund">Refund lost item charge</option> |
| 1167 |
<option value="refund_unpaid">Refund lost item charge (only if unpaid)</option> |
| 1168 |
<option value="charge">Refund lost item charge and charge new overdue fine</option> |
| 1169 |
<option value="restore">Refund lost item charge and restore overdue fine</option> |
| 1170 |
<option value="0">Leave lost item charge</option> |
| 1223 |
[% END %] |
1171 |
[% END %] |
| 1224 |
[% END %] |
|
|
| 1225 |
[% END %] |
| 1226 |
</select> |
| 1227 |
</td> |
| 1228 |
<td> |
| 1229 |
<select name="processingreturn"> |
| 1230 |
[%# Default branch %] |
| 1231 |
[% IF ( current_branch == '*' ) %] |
| 1232 |
[% IF ( defaultProcessingRefundRule == 'refund' ) %] |
| 1233 |
<option value="refund" selected="selected">Refund lost item processing charge</option> |
| 1234 |
<option value="refund_unpaid">Refund lost item processing charge (only if unpaid)</option> |
| 1235 |
<option value="0">Leave lost item processing charge</option> |
| 1236 |
[% ELSIF ( defaultProcessingRefundRule == 'refund_unpaid' ) %] |
| 1237 |
<option value="refund">Refund lost item charge</option> |
| 1238 |
<option value="refund_unpaid" selected="selected">Refund lost item processing charge (only if unpaid)</option> |
| 1239 |
<option value="0">Leave lost item processing charge</option> |
| 1240 |
[% ELSIF ( defaultProcessingRefundRule == 0 ) %] |
| 1241 |
<option value="refund">Refund lost item processing charge</option> |
| 1242 |
<option value="refund_unpaid">Refund lost item processing charge (only if unpaid)</option> |
| 1243 |
<option value="0" selected="selected">Leave lost item processing charge</option> |
| 1244 |
[% ELSE %] |
1172 |
[% ELSE %] |
| 1245 |
<option value="refund">Refund lost item processing charge</option> |
1173 |
[%# Branch-specific %] |
| 1246 |
<option value="refund_unpaid">Refund lost item processing charge (only if unpaid)</option> |
1174 |
<option value="*" [% IF ( not refundLostItemFeeRule ) %]selected="selected"[% END %]> |
| 1247 |
<option value="0">Leave lost item processing charge</option> |
1175 |
[% IF defaultRefundRule == 'refund' %] |
| 1248 |
[% END %] |
1176 |
<span>Use default (Refund lost item charge)</span> |
| 1249 |
[% ELSE %] |
1177 |
[% ELSIF defaultRefundRule == 'refund_unpaid' %] |
| 1250 |
[%# Branch-specific %] |
1178 |
Use default (Refund lost item charge (only if unpaid)) |
| 1251 |
<option value="*" [% IF ( not refundProcessingFeeRule ) %]selected="selected"[% END %]> |
1179 |
[% ELSIF defaultRefundRule == 'charge' %] |
| 1252 |
[% IF defaultProcessingRefundRule == 'refund' %] |
1180 |
<span>Use default (Refund lost item charge and charge new overdue fine)</span> |
| 1253 |
<span>Use default (Refund lost item processing charge)</span> |
1181 |
[% ELSIF defaultRefundRule == 'restore' %] |
| 1254 |
[% ELSIF defaultProcessingRefundRule == 'refund_unpaid' %] |
1182 |
<span>Use default (Refund lost item charge and restore overdue fine)</span> |
| 1255 |
Use default (Refund lost item processing charge (only if unpaid)) |
1183 |
[% ELSE %] |
|
|
1184 |
<span>Use default (Leave lost item charge)</span> |
| 1185 |
[% END %] |
| 1186 |
</option> |
| 1187 |
[% IF ( not refundLostItemFeeRule ) %] |
| 1188 |
<option value="refund">Refund lost item charge</option> |
| 1189 |
<option value="refund_unpaid">Refund lost item charge (only if unpaid)</option> |
| 1190 |
<option value="charge">Refund lost item charge and charge new overdue fine</option> |
| 1191 |
<option value="restore">Refund lost item charge and restore overdue fine</option> |
| 1192 |
<option value="0">Leave lost item charge</option> |
| 1256 |
[% ELSE %] |
1193 |
[% ELSE %] |
| 1257 |
<span>Use default (Leave lost item processing charge)</span> |
1194 |
[% IF ( refundLostItemFeeRule.rule_value == 'refund' ) %] |
|
|
1195 |
<option value="refund" selected="selected">Refund lost item charge</option> |
| 1196 |
<option value="refund_unpaid">Refund lost item charge (only if unpaid)</option> |
| 1197 |
<option value="charge">Refund lost item charge and charge new overdue fine</option> |
| 1198 |
<option value="restore">Refund lost item charge and restore overdue fine</option> |
| 1199 |
<option value="0">Leave lost item charge</option> |
| 1200 |
[% ELSIF ( refundLostItemFeeRule.rule_value == 'refund_unpaid' ) %] |
| 1201 |
<option value="refund">Refund lost item charge</option> |
| 1202 |
<option value="refund_unpaid" selected="selected">Refund lost item charge (only if unpaid)</option> |
| 1203 |
<option value="charge">Refund lost item charge and charge new overdue fine</option> |
| 1204 |
<option value="restore">Refund lost item charge and restore overdue fine</option> |
| 1205 |
<option value="0">Leave lost item charge</option> |
| 1206 |
[% ELSIF ( refundLostItemFeeRule.rule_value == 'charge' ) %] |
| 1207 |
<option value="refund">Refund lost item charge</option> |
| 1208 |
<option value="refund_unpaid">Refund lost item charge (only if unpaid)</option> |
| 1209 |
<option value="charge" selected="selected">Refund lost item charge and charge new overdue fine</option> |
| 1210 |
<option value="restore">Refund lost item charge and restore overdue fine</option> |
| 1211 |
<option value="0">Leave lost item charge</option> |
| 1212 |
[% ELSIF ( refundLostItemFeeRule.rule_value == 'restore' ) %] |
| 1213 |
<option value="refund">Refund lost item charge</option> |
| 1214 |
<option value="refund_unpaid">Refund lost item charge (only if unpaid)</option> |
| 1215 |
<option value="charge">Refund lost item charge and charge new overdue fine</option> |
| 1216 |
<option value="restore" selected="selected">Refund lost item charge and restore overdue fine</option> |
| 1217 |
<option value="0">Leave lost item charge</option> |
| 1218 |
[% ELSIF ( refundLostItemFeeRule.rule_value == 0 ) %] |
| 1219 |
<option value="refund">Refund lost item charge</option> |
| 1220 |
<option value="refund_unpaid">Refund lost item charge (only if unpaid)</option> |
| 1221 |
<option value="charge">Refund lost item charge and charge new overdue fine</option> |
| 1222 |
<option value="restore">Refund lost item charge and restore overdue fine</option> |
| 1223 |
<option value="0" selected="selected">Leave lost item charge</option> |
| 1224 |
[% END %] |
| 1258 |
[% END %] |
1225 |
[% END %] |
| 1259 |
</option> |
1226 |
[% END %] |
| 1260 |
[% IF ( not refundProcessingFeeRule ) %] |
1227 |
</select> |
| 1261 |
<option value="refund">Refund lost item processing charge</option> |
1228 |
</td> |
| 1262 |
<option value="refund_unpaid">Refund lost item processing charge (only if unpaid)</option> |
1229 |
<td> |
| 1263 |
<option value="0">Leave lost item processing charge</option> |
1230 |
<select name="processingreturn"> |
| 1264 |
[% ELSE %] |
1231 |
[%# Default branch %] |
| 1265 |
[% IF ( refundProcessingFeeRule.rule_value == 'refund' ) %] |
1232 |
[% IF ( current_branch == '*' ) %] |
|
|
1233 |
[% IF ( defaultProcessingRefundRule == 'refund' ) %] |
| 1266 |
<option value="refund" selected="selected">Refund lost item processing charge</option> |
1234 |
<option value="refund" selected="selected">Refund lost item processing charge</option> |
| 1267 |
<option value="refund_unpaid">Refund lost item processing charge (only if unpaid)</option> |
1235 |
<option value="refund_unpaid">Refund lost item processing charge (only if unpaid)</option> |
| 1268 |
<option value="0">Leave lost item processing charge</option> |
1236 |
<option value="0">Leave lost item processing charge</option> |
| 1269 |
[% ELSIF ( refundProcessingFeeRule.rule_value == 'refund_unpaid' ) %] |
1237 |
[% ELSIF ( defaultProcessingRefundRule == 'refund_unpaid' ) %] |
| 1270 |
<option value="refund">Refund lost item processing charge</option> |
1238 |
<option value="refund">Refund lost item charge</option> |
| 1271 |
<option value="refund_unpaid" selected="selected">Refund lost item processing charge (only if unpaid)</option> |
1239 |
<option value="refund_unpaid" selected="selected">Refund lost item processing charge (only if unpaid)</option> |
| 1272 |
<option value="0">Leave lost item processing charge</option> |
1240 |
<option value="0">Leave lost item processing charge</option> |
| 1273 |
[% ELSIF ( refundProcessingFeeRule.rule_value == 0 ) %] |
1241 |
[% ELSIF ( defaultProcessingRefundRule == 0 ) %] |
| 1274 |
<option value="refund">Refund lost item processing charge</option> |
1242 |
<option value="refund">Refund lost item processing charge</option> |
| 1275 |
<option value="refund_unpaid">Refund lost item processing charge (only if unpaid)</option> |
1243 |
<option value="refund_unpaid">Refund lost item processing charge (only if unpaid)</option> |
| 1276 |
<option value="0" selected="selected">Leave lost item processing charge</option> |
1244 |
<option value="0" selected="selected">Leave lost item processing charge</option> |
|
|
1245 |
[% ELSE %] |
| 1246 |
<option value="refund">Refund lost item processing charge</option> |
| 1247 |
<option value="refund_unpaid">Refund lost item processing charge (only if unpaid)</option> |
| 1248 |
<option value="0">Leave lost item processing charge</option> |
| 1249 |
[% END %] |
| 1250 |
[% ELSE %] |
| 1251 |
[%# Branch-specific %] |
| 1252 |
<option value="*" [% IF ( not refundProcessingFeeRule ) %]selected="selected"[% END %]> |
| 1253 |
[% IF defaultProcessingRefundRule == 'refund' %] |
| 1254 |
<span>Use default (Refund lost item processing charge)</span> |
| 1255 |
[% ELSIF defaultProcessingRefundRule == 'refund_unpaid' %] |
| 1256 |
Use default (Refund lost item processing charge (only if unpaid)) |
| 1257 |
[% ELSE %] |
| 1258 |
<span>Use default (Leave lost item processing charge)</span> |
| 1259 |
[% END %] |
| 1260 |
</option> |
| 1261 |
[% IF ( not refundProcessingFeeRule ) %] |
| 1262 |
<option value="refund">Refund lost item processing charge</option> |
| 1263 |
<option value="refund_unpaid">Refund lost item processing charge (only if unpaid)</option> |
| 1264 |
<option value="0">Leave lost item processing charge</option> |
| 1265 |
[% ELSE %] |
| 1266 |
[% IF ( refundProcessingFeeRule.rule_value == 'refund' ) %] |
| 1267 |
<option value="refund" selected="selected">Refund lost item processing charge</option> |
| 1268 |
<option value="refund_unpaid">Refund lost item processing charge (only if unpaid)</option> |
| 1269 |
<option value="0">Leave lost item processing charge</option> |
| 1270 |
[% ELSIF ( refundProcessingFeeRule.rule_value == 'refund_unpaid' ) %] |
| 1271 |
<option value="refund">Refund lost item processing charge</option> |
| 1272 |
<option value="refund_unpaid" selected="selected">Refund lost item processing charge (only if unpaid)</option> |
| 1273 |
<option value="0">Leave lost item processing charge</option> |
| 1274 |
[% ELSIF ( refundProcessingFeeRule.rule_value == 0 ) %] |
| 1275 |
<option value="refund">Refund lost item processing charge</option> |
| 1276 |
<option value="refund_unpaid">Refund lost item processing charge (only if unpaid)</option> |
| 1277 |
<option value="0" selected="selected">Leave lost item processing charge</option> |
| 1278 |
[% END %] |
| 1277 |
[% END %] |
1279 |
[% END %] |
| 1278 |
[% END %] |
1280 |
[% END %] |
| 1279 |
[% END %] |
1281 |
</select> |
| 1280 |
</select> |
1282 |
</td> |
| 1281 |
</td> |
1283 |
<td class="actions"> |
| 1282 |
<td class="actions"> |
1284 |
<button type="submit" class="btn btn-default btn-xs"><i class="fa fa-save"></i> Save</button> |
| 1283 |
<button type="submit" class="btn btn-default btn-xs"><i class="fa fa-save"></i> Save</button> |
1285 |
</td> |
| 1284 |
</td> |
1286 |
</tr> |
| 1285 |
</tr> |
1287 |
</table> |
| 1286 |
</table> |
1288 |
</form> |
| 1287 |
</form> |
1289 |
</div> |
|
|
1290 |
<div id="lost-item-fee-rules" class="page-section"> |
| 1291 |
[% IF current_branch == '*' %] |
| 1292 |
<h2>Default lost item fee policy</h2> |
| 1293 |
[% ELSE %] |
| 1294 |
<h2>Lost item fee policy for [% Branches.GetName(current_branch) | html %]</h2> |
| 1295 |
[% END %] |
| 1296 |
<p>Specify the default policy for lost item fees.</p> |
| 1297 |
<form id="lost_item_processing_fee_form" method="post" action="/cgi-bin/koha/admin/smart-rules.pl"> |
| 1298 |
[% INCLUDE 'csrf-token.inc' %] |
| 1299 |
<input type="hidden" name="op" value="cud-mod-lost-item-fee-rule" /> |
| 1300 |
<input type="hidden" name="branch" value="[% current_branch | html %]" /> |
| 1301 |
<table> |
| 1302 |
<tr> |
| 1303 |
<th>Item type</th> |
| 1304 |
<th>Lost item processing fee</th> |
| 1305 |
<th> </th> |
| 1306 |
</tr> |
| 1307 |
[% SET c = undef %] |
| 1308 |
[% FOREACH i IN itemtypes %] |
| 1309 |
[% SET lost_item_processing_fee = all_rules.$c.$i.lost_item_processing_fee %] |
| 1310 |
|
| 1311 |
[% IF ( lost_item_processing_fee.defined && lost_item_processing_fee != '' ) %] |
| 1312 |
<tr> |
| 1313 |
<td> |
| 1314 |
[% IF i == undef %] |
| 1315 |
<em>All</em> |
| 1316 |
[% ELSE %] |
| 1317 |
[% ItemTypes.GetDescription(i,1) | html %] |
| 1318 |
[% END %] |
| 1319 |
</td> |
| 1320 |
<td> [% lost_item_processing_fee | $Price %] </td> |
| 1321 |
<td class="actions"> |
| 1322 |
<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 %]" |
| 1323 |
><i class="fa fa-trash-can"></i> Delete</a |
| 1324 |
> |
| 1325 |
</td> |
| 1326 |
</tr> |
| 1327 |
[% END %] |
| 1328 |
[% END %] |
| 1329 |
<tr> |
| 1330 |
<td> |
| 1331 |
<select name="lost_item_processing_fee_itemtype" id="lost_item_processing_fee_itemtype"> |
| 1332 |
<option value="*">All</option> |
| 1333 |
[% FOREACH i IN itemtypeloop %] |
| 1334 |
<option value="[% i.itemtype | html %]">[% ItemTypes.GetDescription(i.itemtype) | html %]</option> |
| 1335 |
[% END %] |
| 1336 |
</select> |
| 1337 |
</td> |
| 1338 |
<td><input name="lost_item_processing_fee" size="5" type="text" inputmode="decimal" pattern="^\d+(\.\d{2})?$" /></td> |
| 1339 |
<td class="actions" |
| 1340 |
><button type="submit" class="btn btn-default btn-xs"><i class="fa fa-plus"></i> Add</button></td |
| 1341 |
> |
| 1342 |
</tr> |
| 1343 |
</table> |
| 1344 |
</form> |
| 1345 |
</div> |
| 1288 |
</div> |
1346 |
</div> |
| 1289 |
|
1347 |
|
| 1290 |
<div id="holds-policy-by-item-type" class="page-section"> |
1348 |
<div id="holds-policy-by-item-type" class="page-section"> |
|
Lines 1469-1474
Link Here
|
| 1469 |
autoWidth: false, |
1527 |
autoWidth: false, |
| 1470 |
}); |
1528 |
}); |
| 1471 |
}); |
1529 |
}); |
|
|
1530 |
$("#lost_item_processing_fee_form").validate({ |
| 1531 |
rules: { |
| 1532 |
lost_item_processing_fee: { required: true, number: true }, |
| 1533 |
}, |
| 1534 |
}); |
| 1472 |
|
1535 |
|
| 1473 |
function clear_edit() { |
1536 |
function clear_edit() { |
| 1474 |
var cancel = confirm(_("Are you sure you want to cancel your changes?")); |
1537 |
var cancel = confirm(_("Are you sure you want to cancel your changes?")); |
|
Lines 1687-1692
Link Here
|
| 1687 |
return f.submit(); |
1750 |
return f.submit(); |
| 1688 |
}); |
1751 |
}); |
| 1689 |
|
1752 |
|
|
|
1753 |
$(".delete-lost-item-processing-fee").on("click", function (e) { |
| 1754 |
e.preventDefault(); |
| 1755 |
if (!confirmDelete(MSG_CONFIRM_DELETE)) { |
| 1756 |
return false; |
| 1757 |
} |
| 1758 |
let f = $("#delete_form"); |
| 1759 |
f.find("[name='op']").val("cud-delete-lost-item-processing-fee"); |
| 1760 |
f.find("[name='itemtype']").val($(this).data("itemtype")); |
| 1761 |
f.find("[name='branch']").val($(this).data("branch")); |
| 1762 |
return f.submit(); |
| 1763 |
}); |
| 1764 |
|
| 1690 |
$(".del-waiting-hold-cancellation").on("click", function (e) { |
1765 |
$(".del-waiting-hold-cancellation").on("click", function (e) { |
| 1691 |
e.preventDefault(); |
1766 |
e.preventDefault(); |
| 1692 |
if (!confirmDelete(MSG_CONFIRM_DELETE)) { |
1767 |
if (!confirmDelete(MSG_CONFIRM_DELETE)) { |
| 1693 |
- |
|
|