Revision ddec2dcd
Von Werner Hahn vor mehr als 3 Jahren hinzugefügt
SL/DB/ShopOrder.pm | ||
---|---|---|
188 | 188 |
my $customer_proposals = $self->check_for_existing_customers; |
189 | 189 |
my $name = $self->billing_firstname . " " . $self->billing_lastname; |
190 | 190 |
my $customer = 0; |
191 |
my $payment_id = SL::DB::Manager::PaymentTerm->get_first()->id || undef; |
|
191 |
my $default_payment = SL::DB::Manager::PaymentTerm->get_first(); |
|
192 |
my $payment_id = $default_payment ? $default_payment->id : undef; |
|
192 | 193 |
if(!scalar(@{$customer_proposals})){ |
193 | 194 |
my %address = ( 'name' => $name, |
194 | 195 |
'department_1' => $self->billing_company, |
SL/ShopConnector/Shopware.pm | ||
---|---|---|
190 | 190 |
my %payment_ids_methods = ( |
191 | 191 |
# shopware_paymentId => kivitendo_payment_id |
192 | 192 |
); |
193 |
my $default_payment_id = SL::DB::Manager::PaymentTerm->get_first()->id || undef; |
|
193 |
my $default_payment = SL::DB::Manager::PaymentTerm->get_first(); |
|
194 |
my $default_payment_id = $default_payment ? $default_payment->id : undef; |
|
194 | 195 |
# Mapping to table shoporders. See http://community.shopware.com/_detail_1690.html#GET_.28Liste.29 |
195 | 196 |
my %columns = ( |
196 | 197 |
amount => $import->{data}->{invoiceAmount}, |
SL/ShopConnector/WooCommerce.pm | ||
---|---|---|
206 | 206 |
my %payment_ids_methods = ( |
207 | 207 |
# woocommerce_payment_method_title => kivitendo_payment_id |
208 | 208 |
); |
209 |
my $default_payment_id = SL::DB::Manager::PaymentTerm->get_first()->id || undef; |
|
209 |
my $default_payment = SL::DB::Manager::PaymentTerm->get_first(); |
|
210 |
my $default_payment_id = $default_payment ? $default_payment->id : undef; |
|
210 | 211 |
my %columns = ( |
211 | 212 |
#billing Shop can have different billing addresses, and may have 1 customer_address |
212 | 213 |
billing_firstname => $import->{billing}->{first_name}, |
Auch abrufbar als: Unified diff
WebshopApi: Standardzahlungsbedingung korrigiert Syntax