Revision 47ee7483
Von Kivitendo Admin vor mehr als 7 Jahren hinzugefügt
SL/Dev/Record.pm | ||
---|---|---|
383 | 383 |
|
384 | 384 |
Example including creation of part and of invoice: |
385 | 385 |
my $part = SL::Dev::Part::create_part( partnumber => 'T4254')->save; |
386 |
my $item = SL::Dev::Record::create_item(record_type => 'sales_invoice', part => $part, qty => 2.5);
|
|
386 |
my $item = SL::Dev::Record::create_invoice_item(part => $part, qty => 2.5);
|
|
387 | 387 |
my $invoice = SL::Dev::Record::create_sales_invoice( |
388 | 388 |
taxincluded => 0, |
389 | 389 |
invoiceitems => [ $item ], |
Auch abrufbar als: Unified diff
SL/Dev/Record.pm - create_invoice_item Beispiel aktualisiert