View | Details | Raw Unified | Return to bug 16441
Collapse All | Expand All

(-)a/t/db_dependent/Letters.t (-3 / +2 lines)
Lines 326-332 $prepared_letter = GetPreparedLetter(( Link Here
326
    substitute             => $substitute,
326
    substitute             => $substitute,
327
    repeat                 => $repeat,
327
    repeat                 => $repeat,
328
));
328
));
329
is( $prepared_letter->{content}, q|This one only contains the date: | . output_pref({ dt => $date, dateonly => 1 }) . q|.|, 'dateonly test 2' );
329
is( $prepared_letter->{content}, q|And also this one:| . output_pref({ dt => $date, dateonly => 1 }) . q|.|, 'dateonly test 2' );
330
330
331
$dbh->do(q{UPDATE letter SET content = 'And also this one:<<timestamp|dateonly >>.' WHERE code = 'test_date';});
331
$dbh->do(q{UPDATE letter SET content = 'And also this one:<<timestamp|dateonly >>.' WHERE code = 'test_date';});
332
$prepared_letter = GetPreparedLetter((
332
$prepared_letter = GetPreparedLetter((
Lines 337-343 $prepared_letter = GetPreparedLetter(( Link Here
337
    substitute             => $substitute,
337
    substitute             => $substitute,
338
    repeat                 => $repeat,
338
    repeat                 => $repeat,
339
));
339
));
340
is( $prepared_letter->{content}, q|This one only contains the date: | . output_pref({ dt => $date, dateonly => 1 }) . q|.|, 'dateonly test 3' );
340
is( $prepared_letter->{content}, q|And also this one:| . output_pref({ dt => $date, dateonly => 1 }) . q|.|, 'dateonly test 3' );
341
341
342
$dbh->do(q{INSERT INTO letter (module, code, name, title, content) VALUES ('claimacquisition','TESTACQCLAIM','Acquisition Claim','Item Not Received','<<aqbooksellers.name>>|<<aqcontacts.name>>|<order>Ordernumber <<aqorders.ordernumber>> (<<biblio.title>>) (<<aqorders.quantity>> ordered)</order>');});
342
$dbh->do(q{INSERT INTO letter (module, code, name, title, content) VALUES ('claimacquisition','TESTACQCLAIM','Acquisition Claim','Item Not Received','<<aqbooksellers.name>>|<<aqcontacts.name>>|<order>Ordernumber <<aqorders.ordernumber>> (<<biblio.title>>) (<<aqorders.quantity>> ordered)</order>');});
343
343
344
- 

Return to bug 16441