Revision 400a18e9
Von Moritz Bunkus vor fast 14 Jahren hinzugefügt
SL/DB/Helper/PriceTaxCalculator.pm | ||
---|---|---|
162 | 162 |
sub _calculate_assembly_item { |
163 | 163 |
my ($self, $data, $part, $total_qty, $base_factor) = @_; |
164 | 164 |
|
165 |
return 0 unless $::eur && $data->{is_invoice};
|
|
165 |
return 0 if $::eur || !$data->{is_invoice};
|
|
166 | 166 |
|
167 | 167 |
foreach my $assembly_entry (@{ $part->assemblies }) { |
168 | 168 |
push @{ $data->{assembly_items}->[-1] }, { part => $assembly_entry->part, |
... | ... | |
183 | 183 |
|
184 | 184 |
_dbg("cpsi tq " . $total_qty); |
185 | 185 |
|
186 |
return 0 unless $::eur && $data->{is_invoice} && $total_qty;
|
|
186 |
return 0 if $::eur || !$data->{is_invoice} || !$total_qty;
|
|
187 | 187 |
|
188 | 188 |
my ($entry); |
189 | 189 |
$base_factor ||= 1; |
Auch abrufbar als: Unified diff
Bei EUR keine Warenbestandskosten verbuchen