|
Lines 8-14
use POSIX qw(strftime);
Link Here
|
| 8 |
|
8 |
|
| 9 |
use C4::Bookseller qw( GetBookSellerFromId ); |
9 |
use C4::Bookseller qw( GetBookSellerFromId ); |
| 10 |
|
10 |
|
| 11 |
use Test::More tests => 64; |
11 |
use Test::More tests => 66; |
| 12 |
|
12 |
|
| 13 |
BEGIN { |
13 |
BEGIN { |
| 14 |
use_ok('C4::Acquisition'); |
14 |
use_ok('C4::Acquisition'); |
|
Lines 700-705
ok(
Link Here
|
| 700 |
"SearchOrders with pending params gets only pending orders (bug 10723)" |
700 |
"SearchOrders with pending params gets only pending orders (bug 10723)" |
| 701 |
); |
701 |
); |
| 702 |
|
702 |
|
|
|
703 |
$search_orders = SearchOrders({ |
| 704 |
booksellerid => $booksellerid, |
| 705 |
basketno => $basketno, |
| 706 |
pending => 1, |
| 707 |
ordered => 1, |
| 708 |
}); |
| 709 |
is( scalar (@$search_orders), 0, "SearchOrders with pending and ordered params gets only pending ordered orders (bug 11170)" ); |
| 710 |
|
| 711 |
|
| 703 |
# |
712 |
# |
| 704 |
# Test GetBudgetByOrderNumber |
713 |
# Test GetBudgetByOrderNumber |
| 705 |
# |
714 |
# |
|
Lines 760-765
is( join( " ", @$test_extra_fields ),
Link Here
|
| 760 |
is( join( " ", @$test_different_fields ), |
769 |
is( join( " ", @$test_different_fields ), |
| 761 |
'', "GetLateOrders gets orders with the right content in every fields" ); |
770 |
'', "GetLateOrders gets orders with the right content in every fields" ); |
| 762 |
|
771 |
|
|
|
772 |
$search_orders = SearchOrders({ |
| 773 |
booksellerid => $booksellerid, |
| 774 |
basketno => $basketno, |
| 775 |
pending => 1, |
| 776 |
ordered => 1, |
| 777 |
}); |
| 778 |
is( scalar (@$search_orders), 3, "SearchOrders with pending and ordered params gets only pending ordered orders. After closing the basket, orders are marked as 'ordered' (bug 11170)" ); |
| 779 |
|
| 780 |
|
| 763 |
# |
781 |
# |
| 764 |
# Test AddClaim |
782 |
# Test AddClaim |
| 765 |
# |
783 |
# |
| 766 |
- |
|
|