From 47ee7483575f1029a56fe3ac10b1680d91bc1601 Mon Sep 17 00:00:00 2001 From: "G. Richardson" Date: Mon, 7 Aug 2017 21:54:07 +0200 Subject: [PATCH] SL/Dev/Record.pm - create_invoice_item Beispiel aktualisiert --- SL/Dev/Record.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 ], -- 2.20.1