ordnumber => t8('Order'),
customer => t8('Customer'),
vendor => t8('Vendor'),
- value_of_goods => t8('Value of goods'),
+ value_of_goods => t8('Value of transferred goods'),
);
my @doi_delivered = grep { $_->parts_id == $self->parts_id } map { $_->orderitems } @d_orders_delivered;
require SL::AM;
- return sum(map { AM->convert_unit($_->unit => $self->unit) * $_->qty } @doi_delivered);
+ $self->{delivered_qty} = sum(map { AM->convert_unit($_->unit => $self->unit) * $_->qty } @doi_delivered);
+ return $self->{delivered_qty};
}
sub value_of_goods {
my $price_factor = $self->price_factor || 1;
- return ($self->qty * $self->sellprice * (1 - $self->discount ) / $price_factor);
+ return ($self->{delivered_qty} * $self->sellprice * (1 - $self->discount ) / $price_factor);
}
sub taxincluded {
'Valid until' => 'gültig bis',
'Valid/Obsolete' => 'Gültig/ungültig',
'Value' => 'Wert',
- 'Value of goods' => 'Warenverkaufswert',
+ 'Value of transferred goods' => 'Verkaufswert der ausgelagerten Waren',
'Variable' => 'Variable',
'Variable Description' => 'Datenfeldbezeichnung',
'Variable Name' => 'Datenfeldname (intern)',