projects
/
kivitendo-erp.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
cbb3aa4
)
Seriennummer in LS auf Pos. 1, falls Pflichtfeld
author
Jan Büren
<jan@kivitendo.de>
Wed, 18 Aug 2021 09:20:21 +0000
(11:20 +0200)
committer
Jan Büren
<jan@kivitendo.de>
Wed, 18 Aug 2021 09:20:21 +0000
(11:20 +0200)
... aber nur wenn die Positionen im Lieferschein auch das
Pflichtfeld Seriennummer enthalten
bin/mozilla/io.pl
patch
|
blob
|
history
diff --git
a/bin/mozilla/io.pl
b/bin/mozilla/io.pl
index
a69521b
..
e889f2a
100644
(file)
--- a/
bin/mozilla/io.pl
+++ b/
bin/mozilla/io.pl
@@
-172,8
+172,12
@@
sub display_row {
);
# serialnr is important for delivery_orders
if ($form->{type} eq 'sales_delivery_order') {
- splice @row2_sort, 0, 1;
- splice @header_sort, 4, 0, "serialnr";
+ for my $i (1 .. $form->{rowcount} - 1) {
+ next unless $form->{"has_sernumber_$i"};
+ splice @row2_sort, 0, 1;
+ splice @header_sort, 4, 0, "serialnr";
+ last;
+ }
}
my %column_def = (