projects
/
kivitendo-erp.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
be4e1d7
)
SL::Dev::Record - Doku Beispiel für viele Aufträge
author
G. Richardson
<information@kivitendo-premium.de>
Wed, 15 Mar 2017 16:33:11 +0000
(17:33 +0100)
committer
G. Richardson
<information@kivitendo-premium.de>
Tue, 28 Mar 2017 15:49:49 +0000
(17:49 +0200)
SL/Dev/Record.pm
patch
|
blob
|
history
diff --git
a/SL/Dev/Record.pm
b/SL/Dev/Record.pm
index
089b65c
..
3ec9639
100644
(file)
--- a/
SL/Dev/Record.pm
+++ b/
SL/Dev/Record.pm
@@
-329,6
+329,15
@@
Example including creation of part and of sales order.
]
);
+Example: create 100 orders with the same part for 100 new customers:
+
+ my $part1 = SL::Dev::Part::create_part(partnumber => 'T6256')->save;
+ SL::Dev::Record::create_sales_order(
+ save => 1,
+ taxincluded => 0,
+ orderitems => [ SL::Dev::Record::create_order_item(part => $part1, qty => 1, sellprice => 9) ]
+ ) for 1 .. 100;
+
=head2 C<create_purchase_order %PARAMS>
See comments for C<create_sales_order>.