|
Lines 852-858
subtest 'GetBudgetSpent GetBudgetOrdered tests' => sub {
Link Here
|
| 852 |
|
852 |
|
| 853 |
t::lib::Mocks::mock_preference('OrderPriceRounding','nearest_cent'); |
853 |
t::lib::Mocks::mock_preference('OrderPriceRounding','nearest_cent'); |
| 854 |
$spent_ordered = GetBudgetOrdered( $spent_order->{budget_id} ); |
854 |
$spent_ordered = GetBudgetOrdered( $spent_order->{budget_id} ); |
| 855 |
is($spent_ordered,'78.80',"We expect the ordered amount to be equal to the estimated price rounded times quantity"); |
855 |
is($spent_ordered,'78.8000',"We expect the ordered amount to be equal to the estimated price rounded times quantity"); |
| 856 |
|
856 |
|
| 857 |
#Okay, now we can receive the order, giving the price as the user would |
857 |
#Okay, now we can receive the order, giving the price as the user would |
| 858 |
|
858 |
|
| 859 |
- |
|
|