Revision 6dc9c1d9
Von Werner Hahn vor mehr als 3 Jahren hinzugefügt
SL/IS.pm | ||
---|---|---|
1445 | 1445 |
my $invoice = SL::DB::Invoice->new( id => $form->{id} )->load; |
1446 | 1446 |
my @linked_shop_orders = $invoice->linked_records( |
1447 | 1447 |
from => 'ShopOrder', |
1448 |
via => ['Order', 'DeliveryOrder'],
|
|
1448 |
via => ['DeliveryOrder','Order',],
|
|
1449 | 1449 |
); |
1450 | 1450 |
if (scalar @linked_shop_orders == 1){ |
1451 | 1451 |
#do update |
1452 | 1452 |
my $shop_order = $linked_shop_orders[0][0]; |
1453 |
require SL::Shop; |
|
1453 |
require SL::Shop;
|
|
1454 | 1454 |
my $shop_config = SL::DB::Manager::Shop->get_first( query => [ id => $shop_order->shop_id ] ); |
1455 | 1455 |
my $shop = SL::Shop->new( config => $shop_config ); |
1456 | 1456 |
$shop->connector->set_orderstatus($shop_order->shop_trans_id, "completed"); |
Auch abrufbar als: Unified diff
ShopApi: statussetzen bei Rechnung schreiben Syntaxfehler behoben