Revision 68e82bca
Von Jan Büren vor mehr als 1 Jahr hinzugefügt
SL/ShopConnector/Shopware6.pm | ||
---|---|---|
798 | 798 |
# add discount if percentage |
799 | 799 |
while ((my $identifier, my $discount_ref) = each (%discount_identifier)) { |
800 | 800 |
# load and update shop order position |
801 |
my $soi = SL::DB::ShopOrderItem->find_by(identifier => $identifier); |
|
801 |
my $soi = SL::DB::Manager::ShopOrderItem->find_by(identifier => $identifier);
|
|
802 | 802 |
die "No Shop Order Item for discount found! identfier: " . $identifier unless ref $soi eq 'SL::DB::ShopOrderItem'; |
803 | 803 |
|
804 | 804 |
$soi->update_attributes(discount => $discount_ref->{discount_percentage} / 100, |
Auch abrufbar als: Unified diff
shopware6: discount find_by benötigt Manager