Revision f34953ca
Von Moritz Bunkus vor fast 10 Jahren hinzugefügt
SL/DB/Helper/PriceTaxCalculator.pm | ||
---|---|---|
19 | 19 |
require SL::DB::PriceFactor; |
20 | 20 |
require SL::DB::Unit; |
21 | 21 |
|
22 |
SL::DB::Part->load_cached(map { $_->parts_id } @{ $self->items }) if @{ $self->items }; |
|
22 |
SL::DB::Part->load_cached(map { $_->parts_id } @{ $self->items }) if @{ $self->items || [] };
|
|
23 | 23 |
|
24 | 24 |
my %units_by_name = map { ( $_->name => $_ ) } @{ SL::DB::Manager::Unit->get_all }; |
25 | 25 |
my %price_factors_by_id = map { ( $_->id => $_ ) } @{ SL::DB::Manager::PriceFactor->get_all }; |
Auch abrufbar als: Unified diff
PriceTaxCalculator: Belege ohne Positionen richtig verarbeiten können