+sub handle_pricegroups {
+ my ($self, $entry) = @_;
+
+ my @prices;
+ my $idx = 0;
+ foreach my $pricegroup (@{ $self->all_pricegroups }) {
+ $idx++;
+ my $sellprice = $entry->{raw_data}->{"pricegroup_${idx}"};
+ next if $sellprice eq '';
+
+ push @prices, SL::DB::Price->new(pricegroup_id => $pricegroup->id,
+ price => $::form->parse_amount(\%::myconfig, $sellprice));
+ }
+
+ $entry->{object}->prices(\@prices);
+}
+