From: Bernd Blessmann Date: Mon, 22 Aug 2011 11:36:42 +0000 (+0200) Subject: Projektnummer pro Beleg auch für Debitoren- und Kreditorenbuchungen. X-Git-Tag: release-2.7.0beta1~325 X-Git-Url: http://wagnertech.de/git?a=commitdiff_plain;h=9a3d356c2b4b2b465e06ed8c467ce08c823a8d09;p=kivitendo-erp.git Projektnummer pro Beleg auch für Debitoren- und Kreditorenbuchungen. --- diff --git a/SL/AP.pm b/SL/AP.pm index 33d09f16c..d90a53f5c 100644 --- a/SL/AP.pm +++ b/SL/AP.pm @@ -185,7 +185,8 @@ sub post_transaction { $query = qq|UPDATE ap SET invnumber = ?, transdate = ?, ordnumber = ?, vendor_id = ?, taxincluded = ?, amount = ?, duedate = ?, paid = ?, netamount = ?, - curr = ?, notes = ?, department_id = ?, storno = ?, storno_id = ? + curr = ?, notes = ?, department_id = ?, storno = ?, storno_id = ?, + globalproject_id = ? WHERE id = ?|; @values = ($form->{invnumber}, conv_date($form->{transdate}), $form->{ordnumber}, conv_i($form->{vendor_id}), @@ -194,7 +195,8 @@ sub post_transaction { $form->{netamount}, $form->{currency}, $form->{notes}, conv_i($form->{department_id}), $form->{storno}, - $form->{storno_id}, $form->{id}); + $form->{storno_id}, conv_i($form->{globalproject_id}), + $form->{id}); do_query($form, $dbh, $query, @values); # add individual transactions diff --git a/SL/AR.pm b/SL/AR.pm index 01a2ee6f5..ef42e69c6 100644 --- a/SL/AR.pm +++ b/SL/AR.pm @@ -156,11 +156,12 @@ sub post_transaction { invnumber = ?, ordnumber = ?, transdate = ?, customer_id = ?, taxincluded = ?, amount = ?, duedate = ?, paid = ?, netamount = ?, curr = ?, notes = ?, department_id = ?, - employee_id = ?, storno = ?, storno_id = ? + employee_id = ?, storno = ?, storno_id = ?, globalproject_id = ? WHERE id = ?|; my @values = ($form->{invnumber}, $form->{ordnumber}, conv_date($form->{transdate}), conv_i($form->{customer_id}), $form->{taxincluded} ? 't' : 'f', $form->{amount}, conv_date($form->{duedate}), $form->{paid}, $form->{netamount}, $form->{currency}, $form->{notes}, conv_i($form->{department_id}), - conv_i($form->{employee_id}), $form->{storno} ? 't' : 'f', $form->{storno_id}, conv_i($form->{id})); + conv_i($form->{employee_id}), $form->{storno} ? 't' : 'f', $form->{storno_id}, + conv_i($form->{globalproject_id}), conv_i($form->{id})); do_query($form, $dbh, $query, @values); # add individual transactions for AR, amount and taxes diff --git a/SL/Form.pm b/SL/Form.pm index e91971435..418d3cf62 100644 --- a/SL/Form.pm +++ b/SL/Form.pm @@ -2929,6 +2929,7 @@ sub create_links { a.duedate, a.ordnumber, a.taxincluded, a.curr AS currency, a.notes, a.intnotes, a.department_id, a.amount AS oldinvtotal, a.paid AS oldtotalpaid, a.employee_id, a.gldate, a.type, + a.globalproject_id, c.name AS $table, d.description AS department, e.name AS employee diff --git a/bin/mozilla/ap.pl b/bin/mozilla/ap.pl index e98a1cfec..f19363d4c 100644 --- a/bin/mozilla/ap.pl +++ b/bin/mozilla/ap.pl @@ -401,6 +401,12 @@ sub form_header { $form->{javascript} .= qq||; $form->{javascript} .= qq||; + my $globalprojectnumber = + NTI($cgi->popup_menu('-name' => "globalproject_id", + '-values' => \@project_values, + '-labels' => \%project_labels, + '-default' => $form->{"globalproject_id"} )); + $form->header; my $onload = qq|;setupDateFormat('|. $myconfig{dateformat} .qq|', '|. $locale->text("Falsches Datumsformat!") .qq|')|; $onload .= qq|;setupPoints('|. $myconfig{numberformat} .qq|', '|. $locale->text("wrongformat") .qq|')|; @@ -486,6 +492,10 @@ sub form_header { | . $locale->text('Due Date') . qq| $button2 + + | . $locale->text('Project Number') . qq| + $globalprojectnumber + diff --git a/bin/mozilla/ar.pl b/bin/mozilla/ar.pl index b225370f9..8a04ac517 100644 --- a/bin/mozilla/ar.pl +++ b/bin/mozilla/ar.pl @@ -436,6 +436,12 @@ sub form_header { qq|| . qq||; + my $globalprojectnumber = + NTI($cgi->popup_menu('-name' => "globalproject_id", + '-values' => \@project_values, + '-labels' => \%project_labels, + '-default' => $form->{"globalproject_id"} )); + $form->header; $onload = qq|focus()|; $onload .= qq|;setupDateFormat('|. $myconfig{dateformat} .qq|', '|. $locale->text("Falsches Datumsformat!") .qq|')|; @@ -523,6 +529,10 @@ sub form_header { | . $locale->text('Due Date') . qq| $button2 + + | . $locale->text('Project Number') . qq| + $globalprojectnumber + diff --git a/doc/changelog b/doc/changelog index 81f3fba6a..0abf48090 100644 --- a/doc/changelog +++ b/doc/changelog @@ -2,6 +2,9 @@ # Veränderungen von Lx-Office ERP # ################################### +- Projektnummer pro Beleg läßt sich auch für Debitoren- und + Kreditorenbuchungen angeben. + - Bei den Berichten für Verkaus- und Einkaufsrechnungen wird auch auf die positionsbezogenen Projektnummern für Debitoren- und Kreditorenbuchungen gefiltert.