Revision ed023e22
Von Moritz Bunkus vor mehr als 11 Jahren hinzugefügt
SL/InstanceConfiguration.pm | ||
---|---|---|
168 | 168 |
Returns the default behavior for showing the delete button for the |
169 | 169 |
corresponding record type (true or false). |
170 | 170 |
|
171 |
=item C<get_default_warehouse_id>
|
|
171 |
=item C<get_warehouse_id> |
|
172 | 172 |
|
173 | 173 |
Returns the default warehouse_id |
174 | 174 |
|
175 |
=item C<get_default_bin_id>
|
|
175 |
=item C<get_bin_id> |
|
176 | 176 |
|
177 | 177 |
Returns the default bin_id |
178 | 178 |
|
179 |
=item C<get_default_warehouse_id_ignore_onhand>
|
|
179 |
=item C<get_warehouse_id_ignore_onhand> |
|
180 | 180 |
|
181 | 181 |
Returns the default warehouse_id for transfers without checking the |
182 | 182 |
current stock quantity |
183 | 183 |
|
184 |
=item C<get_default_bin_id_ignore_onhand>
|
|
184 |
=item C<get_bin_id_ignore_onhand> |
|
185 | 185 |
|
186 | 186 |
Returns the default bin_id for transfers without checking the. |
187 | 187 |
current stock quantity |
bin/mozilla/do.pl | ||
---|---|---|
1126 | 1126 |
|
1127 | 1127 |
# Standardlagerplatz für Standard-Auslagern verwenden, falls keiner für die Ware explizit definiert wurde |
1128 | 1128 |
if ($::instance_conf->get_transfer_default_use_master_default_bin) { |
1129 |
$part_info->{warehouse_id} ||= $::instance_conf->get_default_warehouse_id;
|
|
1130 |
$part_info->{bin_id} ||= $::instance_conf->get_default_bin_id;
|
|
1129 |
$part_info->{warehouse_id} ||= $::instance_conf->get_warehouse_id; |
|
1130 |
$part_info->{bin_id} ||= $::instance_conf->get_bin_id; |
|
1131 | 1131 |
} |
1132 | 1132 |
|
1133 | 1133 |
my $units = AM->retrieve_units(\%myconfig, $form); |
... | ... | |
1560 | 1560 |
|
1561 | 1561 |
# entsprechende defaults holen, falls standardlagerplatz verwendet werden soll |
1562 | 1562 |
if ($::instance_conf->get_transfer_default_use_master_default_bin) { |
1563 |
$default_warehouse_id = $::instance_conf->get_default_warehouse_id;
|
|
1564 |
$default_bin_id = $::instance_conf->get_default_bin_id;
|
|
1563 |
$default_warehouse_id = $::instance_conf->get_warehouse_id; |
|
1564 |
$default_bin_id = $::instance_conf->get_bin_id; |
|
1565 | 1565 |
} |
1566 | 1566 |
|
1567 | 1567 |
|
... | ... | |
1637 | 1637 |
# auslagern soll immer gehen, auch wenn nicht genügend auf lager ist. |
1638 | 1638 |
# der lagerplatz ist hier extra konfigurierbar, bspw. Lager-Korrektur mit |
1639 | 1639 |
# Lagerplatz Lagerplatz-Korrektur |
1640 |
my $default_warehouse_id_ignore_onhand = $::instance_conf->get_default_warehouse_id_ignore_onhand;
|
|
1641 |
my $default_bin_id_ignore_onhand = $::instance_conf->get_default_bin_id_ignore_onhand;
|
|
1640 |
my $default_warehouse_id_ignore_onhand = $::instance_conf->get_warehouse_id_ignore_onhand; |
|
1641 |
my $default_bin_id_ignore_onhand = $::instance_conf->get_bin_id_ignore_onhand; |
|
1642 | 1642 |
if ($::instance_conf->get_transfer_default_ignore_onhand && $default_bin_id_ignore_onhand) { |
1643 | 1643 |
# entsprechende defaults holen |
1644 | 1644 |
# falls chargenumber, bestbefore oder anzahl nicht stimmt, auf automatischen |
bin/mozilla/ic.pl | ||
---|---|---|
1593 | 1593 |
if (my $max = scalar @{ $form->{WAREHOUSES} }) { |
1594 | 1594 |
my ($default_warehouse_id, $default_bin_id); |
1595 | 1595 |
if ($form->{action} eq 'add') { # default only for new entries |
1596 |
$default_warehouse_id = $::instance_conf->get_default_warehouse_id;
|
|
1597 |
$default_bin_id = $::instance_conf->get_default_bin_id;
|
|
1596 |
$default_warehouse_id = $::instance_conf->get_warehouse_id; |
|
1597 |
$default_bin_id = $::instance_conf->get_bin_id; |
|
1598 | 1598 |
} |
1599 | 1599 |
$form->{warehouse_id} ||= $default_warehouse_id || $form->{WAREHOUSES}->[$max -1]->{id}; |
1600 | 1600 |
$form->{bin_id} ||= $default_bin_id || $form->{WAREHOUSES}->[$max -1]->{BINS}->[0]->{id}; |
Auch abrufbar als: Unified diff
InstanceConf: Funktionen get_default_(warehouse|bin)_id heißen inzwischen get_(warehouse|bin)_id