Lines 415-422
$order2->{order_internalnote} = "my notes";
Link Here
|
415 |
quantityreceived => 2, |
415 |
quantityreceived => 2, |
416 |
invoice => $invoice, |
416 |
invoice => $invoice, |
417 |
} |
417 |
} |
418 |
) |
418 |
); |
419 |
; |
|
|
420 |
$order2 = GetOrder( $ordernumbers[1] ); |
419 |
$order2 = GetOrder( $ordernumbers[1] ); |
421 |
is( $order2->{'quantityreceived'}, |
420 |
is( $order2->{'quantityreceived'}, |
422 |
0, 'Splitting up order did not receive any on original order' ); |
421 |
0, 'Splitting up order did not receive any on original order' ); |
Lines 425-430
is( $order2->{'budget_id'}, $budgetid,
Link Here
|
425 |
'Budget on original order is unchanged' ); |
424 |
'Budget on original order is unchanged' ); |
426 |
is( $order2->{order_internalnote}, "my notes", |
425 |
is( $order2->{order_internalnote}, "my notes", |
427 |
'ModReceiveOrder and GetOrder deal with internal notes' ); |
426 |
'ModReceiveOrder and GetOrder deal with internal notes' ); |
|
|
427 |
my $order1 = GetOrder( $ordernumbers[0] ); |
428 |
is( |
429 |
$order1->{order_internalnote}, |
430 |
"internal note", |
431 |
"ModReceiveOrder only changes the supplied orders internal notes" |
432 |
); |
428 |
|
433 |
|
429 |
$neworder = GetOrder($new_ordernumber); |
434 |
$neworder = GetOrder($new_ordernumber); |
430 |
is( $neworder->{'quantity'}, 2, '2 items on new order' ); |
435 |
is( $neworder->{'quantity'}, 2, '2 items on new order' ); |
431 |
- |
|
|