Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision 3ea4e13e

Von Bernd Bleßmann vor 8 Monaten hinzugefügt

  • ID 3ea4e13e1fb77c4eda01edb009eb4c4eeafd4309
  • Vorgänger 21437d97
  • Nachfolger a9ebf4e6

Zwischeninventur: Bericht Zählungen: Status des Abgleichs anzeigen

Unterschiede anzeigen:

SL/Controller/StockCounting.pm
if (!$grouped_objects_by->{$object->counting_id}->{$object->part_id}->{$object->bin_id}) {
$group_object = SL::DB::StockCountingItem->new(
counting => $object->counting, part => $object->part, bin => $object->bin, qty => 0);
$group_object->{reconciliated} = 1;
push @grouped_objects, $group_object;
$grouped_objects_by->{$object->counting_id}->{$object->part_id}->{$object->bin_id} = $group_object;
......
$group_object->id($group_object->id ? ($group_object->id . ',' . $object->id) : $object->id);
$group_object->qty($group_object->qty + $object->qty);
$group_object->{reconciliated} &&= !!$object->correction_inventory_id;
}
$objects = \@grouped_objects;
} else {
$_->{reconciliated} = !!$_->correction_inventory_id for @$objects;
}
$self->get_stocked($objects);
......
my $report = SL::ReportGenerator->new(\%::myconfig, $::form);
$self->{report} = $report;
my @columns = $::form->{group_counting_items} ? qw(counting part bin qty stocked)
: qw(counting counted_at part bin qty stocked employee);
my @columns = $::form->{group_counting_items} ? qw(counting part bin qty stocked reconciliated)
: qw(counting counted_at part bin qty stocked employee reconciliated);
my %column_defs = (
counting => { text => t8('Stock Counting'), sub => sub { $_[0]->counting->name }, },
......
bin => { text => t8('Bin'), sub => sub { $_[0]->bin->full_description } },
employee => { text => t8('Employee'), sub => sub { $_[0]->employee ? $_[0]->employee->safe_name : '---'} },
stocked => { text => t8('Stocked Qty'), sub => sub { _format_total($_[0]->{stocked}) }, align => 'right'},
reconciliated => { text => t8('Reconciliated'), sub => sub { $_[0]->{reconciliated} ? t8('Yes') : t8('No') }, align => 'right'},
);
# remove columns from defs which are not in @columns

Auch abrufbar als: Unified diff