Revision 366

Date:
2013/06/26 13:22:42
Author:
ahitrov
Revision Log:
Action restriction bug
Files:

Legend:

 
Added
 
Removed
 
Modified
  • utf8/plugins/webshop/lib/webshop/Coupon.pm

     
    120 120 my $found_sum = 0;
    121 121 foreach my $bi ( @$basket ) {
    122 122 warn "BASKET: Item id [".$bi->item_id."]\n" if $DEBUG;
    123 next unless $bi->special_price;
    124 foreach ( @$items) {
    125 if ( $bi->item_id == $_->id ) {
    126 warn "BASKET: Item [".$_->name."] id [".$_->id."]\n" if $DEBUG;
    123 next if $bi->special_price;
    124 foreach my $item ( @$items) {
    125 if ( $bi->item_id == $item->id ) {
    126 warn "BASKET: Item [".$item->name."] id [".$item->id."]\n" if $DEBUG;
    127 127 $found_sum += $bi->number * $bi->price;
    128 128 last;
    129 129 }
     
    137 137 my $found_sum = 0;
    138 138 foreach my $bi ( @$basket ) {
    139 139 warn "BASKET: Item id [".$bi->item_id."]\n" if $DEBUG;
    140 next unless $bi->special_price;
    140 next if $bi->special_price;
    141 141 $found_sum += $bi->number * $bi->price;
    142 142 }
    143 143 warn "Sum found: [$found_sum]\n" if $DEBUG;