Revision 40cfb5ee
Von Kivitendo Admin vor etwa 8 Jahren hinzugefügt
SL/AP.pm | ||
---|---|---|
66 | 66 |
$form->{defaultcurrency} = $form->get_default_currency($myconfig); |
67 | 67 |
$form->{taxincluded} = 0 unless $form->{taxincluded}; |
68 | 68 |
|
69 |
($null, $form->{department_id}) = split(/--/, $form->{department}); |
|
70 |
|
|
71 | 69 |
if ($form->{currency} eq $form->{defaultcurrency}) { |
72 | 70 |
$form->{exchangerate} = 1; |
73 | 71 |
} else { |
... | ... | |
463 | 461 |
$where .= " AND (cp.cp_name ILIKE ? OR cp.cp_givenname ILIKE ?)"; |
464 | 462 |
push(@values, (like($form->{"cp_name"}))x2); |
465 | 463 |
} |
466 |
if ($form->{department}) { |
|
467 |
# ähnlich wie commit 0bbfb33b6aa8e38bb6c81d1684ab7d08e5b5c5af abteilung |
|
468 |
# wird so nicht mehr als zeichenkette zusammengebaut |
|
469 |
# hätte zu ee9f9f9aa4c3b9d5d20ab10a45c12bcaa6aa78d0 auffallen können ;-) jan |
|
470 |
#my ($null, $department_id) = split /--/, $form->{department}; |
|
464 |
if ($form->{department_id}) { |
|
471 | 465 |
$where .= " AND a.department_id = ?"; |
472 |
push(@values, $form->{department}); |
|
466 |
push(@values, $form->{department_id});
|
|
473 | 467 |
} |
474 | 468 |
if ($form->{invnumber}) { |
475 | 469 |
$where .= " AND a.invnumber ILIKE ?"; |
Auch abrufbar als: Unified diff
Kreditorenbuchung - Abteilung nutzt immer L.select_tag als Dropdown