X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=SL%2FShopConnector%2FShopware.pm;h=65c42fd1445151228b1b2a28dd1e1868ab39328b;hb=549f187d3a2b1d15f96c4556714666ed954447bb;hp=7e879bfefe7aa0292a2e02e219ad40e82e0e4b69;hpb=457e1237959ddf06c2198e2fba1768adc8053840;p=kivitendo-erp.git diff --git a/SL/ShopConnector/Shopware.pm b/SL/ShopConnector/Shopware.pm index 7e879bfef..65c42fd14 100644 --- a/SL/ShopConnector/Shopware.pm +++ b/SL/ShopConnector/Shopware.pm @@ -190,7 +190,8 @@ sub map_data_to_shoporder { my %payment_ids_methods = ( # shopware_paymentId => kivitendo_payment_id ); - my $default_payment_id = SL::DB::Manager::PaymentTerm->get_first()->id || undef; + my $default_payment = SL::DB::Manager::PaymentTerm->get_first(); + my $default_payment_id = $default_payment ? $default_payment->id : undef; # Mapping to table shoporders. See http://community.shopware.com/_detail_1690.html#GET_.28Liste.29 my %columns = ( amount => $import->{data}->{invoiceAmount}, @@ -467,7 +468,7 @@ __END__ =head1 NAME -SL::Shopconnecter::Shopware - connector for shopware 5 +SL::Shopconnector::Shopware - connector for shopware 5 =head1 SYNOPSIS