From d3e504378e060ef31798ba969f52c21d04430972 Mon Sep 17 00:00:00 2001 From: "G. Richardson" Date: Wed, 11 Apr 2018 11:01:59 +0200 Subject: [PATCH] Dev create_sales_invoice - type ist invoice --- 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 f98283cea..8b7d6a717 100644 --- a/SL/Dev/Record.pm +++ b/SL/Dev/Record.pm @@ -34,7 +34,7 @@ sub create_sales_invoice { my $invoice = SL::DB::Invoice->new( invoice => 1, - type => 'sales_invoice', + type => 'invoice', customer_id => $customer->id, taxzone_id => $customer->taxzone->id, invnumber => delete $params{invnumber} // undef, -- 2.20.1