Revision 767

Date:
2019/04/09 20:58:35
Author:
ahitrov
Revision Log:
Total with_products now using "storage" field

Files:

Legend:

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

     
    233 233 foreach my $item ( @$basket ) {
    234 234 if ( $item->status == 1 ) {
    235 235 $total += $item->number;
    236 if ( exists $item->{item} ) {
    236 if ( exists $item->{item} && $item->{item}->status && $item->{item}->price && $item->{item}->storage ) {
    237 237 $sum += $item->number * $item->{item}->price;
    238 238 } elsif ( !$with_products ) {
    239 239 $sum += $item->number * $item->price;