Dev create_sales_invoice - type ist invoice
authorG. Richardson <grichardson@kivitec.de>
Wed, 11 Apr 2018 09:01:59 +0000 (11:01 +0200)
committerG. Richardson <grichardson@kivitec.de>
Tue, 8 May 2018 11:28:01 +0000 (13:28 +0200)
SL/Dev/Record.pm

index f98283c..8b7d6a7 100644 (file)
@@ -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,