Revision 726e362a
Von Sven Schöling vor etwa 4 Jahren hinzugefügt
SL/Helper/Inventory.pm | ||
---|---|---|
13 | 13 |
use SL::MoreCommon qw(listify); |
14 | 14 |
use SL::DBUtils qw(selectall_hashref_query selectrow_query); |
15 | 15 |
use SL::DB::TransferType; |
16 |
use SL::Helper::Number qw(_number _round_number); |
|
16 |
use SL::Helper::Number qw(_format_number _round_number);
|
|
17 | 17 |
use SL::X; |
18 | 18 |
|
19 | 19 |
our @EXPORT_OK = qw(get_stock get_onhand allocate allocate_for_assembly produce_assembly check_constraints); |
... | ... | |
203 | 203 |
if ($rest_qty > 0) { |
204 | 204 |
die SL::X::Inventory::Allocation->new( |
205 | 205 |
error => 'not enough to allocate', |
206 |
msg => t8("can not allocate #1 units of #2, missing #3 units", _number(\%::myconfig, $qty), $part->displayable_name, _number(\%::myconfig, $rest_qty)),
|
|
206 |
msg => t8("can not allocate #1 units of #2, missing #3 units", _format_number($qty), $part->displayable_name, _format_number($rest_qty)),
|
|
207 | 207 |
); |
208 | 208 |
} else { |
209 | 209 |
if ($params{constraints}) { |
... | ... | |
275 | 275 |
$err .= ' '.t8('part \'#\'1 in bin \'#2\' only with qty #3 (need additional #4) and chargenumber \'#5\'.', |
276 | 276 |
SL::DB::Part->load_cached($_->parts_id)->description, |
277 | 277 |
SL::DB::Bin->load_cached($_->bin_id)->full_description, |
278 |
_number($_->qty), _number($needed), $_->chargenumber ? $_->chargenumber : '--') for @allocs;
|
|
278 |
_format_number($_->qty), _format_number($needed), $_->chargenumber ? $_->chargenumber : '--') for @allocs;
|
|
279 | 279 |
die SL::X::Inventory::Allocation->new( |
280 | 280 |
error => 'allocation constraints failure', |
281 | 281 |
msg => $err, |
Auch abrufbar als: Unified diff
Inventory Helper: Auf Number Helper Änderungen angepasst