Lines 114-120
my $default = {
Link Here
|
114 |
#Test GetIssuingRule |
114 |
#Test GetIssuingRule |
115 |
my $sampleissuingrule1 = { |
115 |
my $sampleissuingrule1 = { |
116 |
reservecharge => '0.000000', |
116 |
reservecharge => '0.000000', |
117 |
chargename => undef, |
|
|
118 |
restrictedtype => 0, |
117 |
restrictedtype => 0, |
119 |
accountsent => 0, |
118 |
accountsent => 0, |
120 |
maxissueqty => 5, |
119 |
maxissueqty => 5, |
Lines 173-179
my $sampleissuingrule2 = {
Link Here
|
173 |
overduefinescap => undef, |
172 |
overduefinescap => undef, |
174 |
accountsent => undef, |
173 |
accountsent => undef, |
175 |
reservecharge => undef, |
174 |
reservecharge => undef, |
176 |
chargename => undef, |
|
|
177 |
restrictedtype => undef, |
175 |
restrictedtype => undef, |
178 |
maxsuspensiondays => 0, |
176 |
maxsuspensiondays => 0, |
179 |
onshelfholds => 1, |
177 |
onshelfholds => 1, |
Lines 206-212
my $sampleissuingrule3 = {
Link Here
|
206 |
overduefinescap => undef, |
204 |
overduefinescap => undef, |
207 |
accountsent => undef, |
205 |
accountsent => undef, |
208 |
reservecharge => undef, |
206 |
reservecharge => undef, |
209 |
chargename => undef, |
|
|
210 |
restrictedtype => undef, |
207 |
restrictedtype => undef, |
211 |
maxsuspensiondays => 0, |
208 |
maxsuspensiondays => 0, |
212 |
onshelfholds => 1, |
209 |
onshelfholds => 1, |
Lines 240-253
$query = 'INSERT INTO issuingrules (
Link Here
|
240 |
overduefinescap, |
237 |
overduefinescap, |
241 |
accountsent, |
238 |
accountsent, |
242 |
reservecharge, |
239 |
reservecharge, |
243 |
chargename, |
|
|
244 |
restrictedtype, |
240 |
restrictedtype, |
245 |
maxsuspensiondays, |
241 |
maxsuspensiondays, |
246 |
onshelfholds, |
242 |
onshelfholds, |
247 |
opacitemholds, |
243 |
opacitemholds, |
248 |
cap_fine_to_replacement_price, |
244 |
cap_fine_to_replacement_price, |
249 |
article_requests |
245 |
article_requests |
250 |
) VALUES(?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?)'; |
246 |
) VALUES(?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?)'; |
251 |
my $sth = $dbh->prepare($query); |
247 |
my $sth = $dbh->prepare($query); |
252 |
$sth->execute( |
248 |
$sth->execute( |
253 |
$sampleissuingrule1->{branchcode}, |
249 |
$sampleissuingrule1->{branchcode}, |
Lines 273-279
$sth->execute(
Link Here
|
273 |
$sampleissuingrule1->{overduefinescap}, |
269 |
$sampleissuingrule1->{overduefinescap}, |
274 |
$sampleissuingrule1->{accountsent}, |
270 |
$sampleissuingrule1->{accountsent}, |
275 |
$sampleissuingrule1->{reservecharge}, |
271 |
$sampleissuingrule1->{reservecharge}, |
276 |
$sampleissuingrule1->{chargename}, |
|
|
277 |
$sampleissuingrule1->{restrictedtype}, |
272 |
$sampleissuingrule1->{restrictedtype}, |
278 |
$sampleissuingrule1->{maxsuspensiondays}, |
273 |
$sampleissuingrule1->{maxsuspensiondays}, |
279 |
$sampleissuingrule1->{onshelfholds}, |
274 |
$sampleissuingrule1->{onshelfholds}, |
Lines 305-311
$sth->execute(
Link Here
|
305 |
$sampleissuingrule2->{overduefinescap}, |
300 |
$sampleissuingrule2->{overduefinescap}, |
306 |
$sampleissuingrule2->{accountsent}, |
301 |
$sampleissuingrule2->{accountsent}, |
307 |
$sampleissuingrule2->{reservecharge}, |
302 |
$sampleissuingrule2->{reservecharge}, |
308 |
$sampleissuingrule2->{chargename}, |
|
|
309 |
$sampleissuingrule2->{restrictedtype}, |
303 |
$sampleissuingrule2->{restrictedtype}, |
310 |
$sampleissuingrule2->{maxsuspensiondays}, |
304 |
$sampleissuingrule2->{maxsuspensiondays}, |
311 |
$sampleissuingrule2->{onshelfholds}, |
305 |
$sampleissuingrule2->{onshelfholds}, |
Lines 337-343
$sth->execute(
Link Here
|
337 |
$sampleissuingrule3->{overduefinescap}, |
331 |
$sampleissuingrule3->{overduefinescap}, |
338 |
$sampleissuingrule3->{accountsent}, |
332 |
$sampleissuingrule3->{accountsent}, |
339 |
$sampleissuingrule3->{reservecharge}, |
333 |
$sampleissuingrule3->{reservecharge}, |
340 |
$sampleissuingrule3->{chargename}, |
|
|
341 |
$sampleissuingrule3->{restrictedtype}, |
334 |
$sampleissuingrule3->{restrictedtype}, |
342 |
$sampleissuingrule3->{maxsuspensiondays}, |
335 |
$sampleissuingrule3->{maxsuspensiondays}, |
343 |
$sampleissuingrule3->{onshelfholds}, |
336 |
$sampleissuingrule3->{onshelfholds}, |
344 |
- |
|
|