Revision 867a69bc
Von Jan Büren vor mehr als 3 Jahren hinzugefügt
SL/Helper/ShippedQty.pm | ||
---|---|---|
432 | 432 |
|
433 | 433 |
=item C<new PARAMS> |
434 | 434 |
|
435 |
Creates a new helper object. PARAMS may include: |
|
435 |
Creates a new helper object, $::form->{type} is mandatory. |
|
436 |
|
|
437 |
PARAMS may include: |
|
436 | 438 |
|
437 | 439 |
=over 4 |
438 | 440 |
|
... | ... | |
472 | 474 |
|
473 | 475 |
See C<matches> for the returned format. |
474 | 476 |
|
477 |
|
|
475 | 478 |
=back |
476 | 479 |
|
477 | 480 |
=item C<calculate OBJECTS> |
t/helper/shipped_qty.t | ||
---|---|---|
63 | 63 |
|
64 | 64 |
note("testing purchases, no fill_up"); |
65 | 65 |
|
66 |
$::form->{type} = 'purchase_order'; |
|
66 | 67 |
my $purchase_order = create_purchase_order( |
67 | 68 |
save => 1, |
68 | 69 |
orderitems => [ create_order_item(part => $part1, qty => 11), |
... | ... | |
135 | 136 |
|
136 | 137 |
note('testing sales, no fill_up'); |
137 | 138 |
|
139 |
$::form->{type} = 'sales_order'; |
|
138 | 140 |
my $sales_order = create_sales_order( |
139 | 141 |
save => 1, |
140 | 142 |
orderitems => [ create_order_item(part => $part1, qty => 5), |
Auch abrufbar als: Unified diff
ShippedQty: Fallunterschied für Einkauf/Verkauf gesetzt