Lines 920-927
ok((defined $order1->{datecancellationprinted}), "order is cancelled");
Link Here
|
920 |
ok((not defined $order1->{cancellationreason}), "order has no cancellation reason"); |
920 |
ok((not defined $order1->{cancellationreason}), "order has no cancellation reason"); |
921 |
ok((defined GetBiblio($order1->{biblionumber})), "biblio still exists"); |
921 |
ok((defined GetBiblio($order1->{biblionumber})), "biblio still exists"); |
922 |
|
922 |
|
923 |
my $order2 = GetOrder($ordernumbers[1]); |
923 |
$order2 = GetOrder($ordernumbers[1]); |
924 |
my $error = DelOrder($order2->{biblionumber}, $order2->{ordernumber}, 1); |
924 |
$error = DelOrder($order2->{biblionumber}, $order2->{ordernumber}, 1); |
925 |
ok((not defined $error), "DelOrder does not fail"); |
925 |
ok((not defined $error), "DelOrder does not fail"); |
926 |
$order2 = GetOrder($order2->{ordernumber}); |
926 |
$order2 = GetOrder($order2->{ordernumber}); |
927 |
ok((defined $order2->{datecancellationprinted}), "order is cancelled"); |
927 |
ok((defined $order2->{datecancellationprinted}), "order is cancelled"); |
Lines 929-935
ok((not defined $order2->{cancellationreason}), "order has no cancellation reaso
Link Here
|
929 |
ok((not defined GetBiblio($order2->{biblionumber})), "biblio does not exist anymore"); |
929 |
ok((not defined GetBiblio($order2->{biblionumber})), "biblio does not exist anymore"); |
930 |
|
930 |
|
931 |
my $order4 = GetOrder($ordernumbers[3]); |
931 |
my $order4 = GetOrder($ordernumbers[3]); |
932 |
my $error = DelOrder($order4->{biblionumber}, $order4->{ordernumber}, 1, "foobar"); |
932 |
$error = DelOrder($order4->{biblionumber}, $order4->{ordernumber}, 1, "foobar"); |
933 |
ok((not defined $error), "DelOrder does not fail"); |
933 |
ok((not defined $error), "DelOrder does not fail"); |
934 |
$order4 = GetOrder($order4->{ordernumber}); |
934 |
$order4 = GetOrder($order4->{ordernumber}); |
935 |
ok((defined $order4->{datecancellationprinted}), "order is cancelled"); |
935 |
ok((defined $order4->{datecancellationprinted}), "order is cancelled"); |
936 |
- |
|
|