From: G. Richardson Date: Mon, 7 Aug 2017 19:54:07 +0000 (+0200) Subject: SL/Dev/Record.pm - create_invoice_item Beispiel aktualisiert X-Git-Tag: release-3.5.4~908 X-Git-Url: http://wagnertech.de/git?a=commitdiff_plain;h=47ee7483575f1029a56fe3ac10b1680d91bc1601;p=kivitendo-erp.git SL/Dev/Record.pm - create_invoice_item Beispiel aktualisiert --- diff --git a/SL/Dev/Record.pm b/SL/Dev/Record.pm index 649c6b2de..ae60ade64 100644 --- a/SL/Dev/Record.pm +++ b/SL/Dev/Record.pm @@ -383,7 +383,7 @@ Required params: record_type (sales_invoice, sales_order, sales_delivery_order) Example including creation of part and of invoice: my $part = SL::Dev::Part::create_part( partnumber => 'T4254')->save; - my $item = SL::Dev::Record::create_item(record_type => 'sales_invoice', part => $part, qty => 2.5); + my $item = SL::Dev::Record::create_invoice_item(part => $part, qty => 2.5); my $invoice = SL::Dev::Record::create_sales_invoice( taxincluded => 0, invoiceitems => [ $item ],