Revision a2c8ac75
Von Kivitendo Admin vor mehr als 7 Jahren hinzugefügt
SL/Dev/Record.pm | ||
---|---|---|
329 | 329 |
] |
330 | 330 |
); |
331 | 331 |
|
332 |
Example: create 100 orders with the same part for 100 new customers: |
|
333 |
|
|
334 |
my $part1 = SL::Dev::Part::create_part(partnumber => 'T6256')->save; |
|
335 |
SL::Dev::Record::create_sales_order( |
|
336 |
save => 1, |
|
337 |
taxincluded => 0, |
|
338 |
orderitems => [ SL::Dev::Record::create_order_item(part => $part1, qty => 1, sellprice => 9) ] |
|
339 |
) for 1 .. 100; |
|
340 |
|
|
332 | 341 |
=head2 C<create_purchase_order %PARAMS> |
333 | 342 |
|
334 | 343 |
See comments for C<create_sales_order>. |
Auch abrufbar als: Unified diff
SL::Dev::Record - Doku Beispiel für viele Aufträge