From: Sven Schöling Date: Fri, 7 Mar 2008 15:11:22 +0000 (+0000) Subject: Bugfix: X-Git-Tag: release-2.6.0beta1~188 X-Git-Url: http://wagnertech.de/git?a=commitdiff_plain;h=5e984449bf2da02189d95d332182ef9bbdbe0b84;p=kivitendo-erp.git Bugfix: Verkaeufer und Bearbeiter waren in den Rechnungsberichten durcheinandergekommen. Sind jetzt getrennt und korrekt in den Berichten einzubinden. --- diff --git a/SL/AR.pm b/SL/AR.pm index 5fc6032a9..0aa4ff372 100644 --- a/SL/AR.pm +++ b/SL/AR.pm @@ -416,10 +416,12 @@ sub ar_transactions { qq| a.transaction_description, | . qq| pr.projectnumber AS globalprojectnumber, | . qq| c.name, | . - qq| e.name AS employee | . + qq| e.name AS employee, | . + qq| e2.name AS salesman | . qq|FROM ar a | . qq|JOIN customer c ON (a.customer_id = c.id) | . qq|LEFT JOIN employee e ON (a.employee_id = e.id) | . + qq|LEFT JOIN employee e2 ON (a.salesman_id = e2.id) | . qq|LEFT JOIN project pr ON (a.globalproject_id = pr.id)|; my $where = "1 = 1"; diff --git a/bin/mozilla/ar.pl b/bin/mozilla/ar.pl index 31c9cfff4..c95d0c7fb 100644 --- a/bin/mozilla/ar.pl +++ b/bin/mozilla/ar.pl @@ -1377,7 +1377,7 @@ sub search { | . $locale->text('Notes') . qq| - + | . $locale->text('Salesperson') . qq| | . $locale->text('Shipping Point') . qq| @@ -1385,10 +1385,12 @@ sub search { | . $locale->text('Ship via') . qq| - | - . $locale->text('Ertrag') . qq| - | - . $locale->text('Ertrag prozentual') . qq| + + | . $locale->text('Ertrag') . qq| + + | . $locale->text('Ertrag prozentual') . qq| + + | . $locale->text('Employee') . qq| @@ -1465,7 +1467,7 @@ sub ar_transactions { @columns = qw(transdate id type invnumber ordnumber name netamount tax amount paid - datepaid due duedate transaction_description notes employee shippingpoint shipvia + datepaid due duedate transaction_description notes salesman employee shippingpoint shipvia marge_total marge_percent globalprojectnumber); my @hidden_variables = map { "l_${_}" } @columns; @@ -1489,7 +1491,8 @@ sub ar_transactions { 'duedate' => { 'text' => $locale->text('Due Date'), }, 'transaction_description' => { 'text' => $locale->text('Transaction description'), }, 'notes' => { 'text' => $locale->text('Notes'), }, - 'employee' => { 'text' => $locale->text('Salesperson'), }, + 'salesman' => { 'text' => $locale->text('Salesperson'), }, + 'employee' => { 'text' => $locale->text('Employee'), }, 'shippingpoint' => { 'text' => $locale->text('Shipping Point'), }, 'shipvia' => { 'text' => $locale->text('Ship via'), }, 'globalprojectnumber' => { 'text' => $locale->text('Project Number'), }, diff --git a/locale/de/ar b/locale/de/ar index 7392fb1aa..a5ab08e47 100644 --- a/locale/de/ar +++ b/locale/de/ar @@ -88,6 +88,7 @@ $self->{texts} = { 'Dunning' => 'Mahnung', 'ELSE' => 'Zusatz', 'Edit Accounts Receivables Transaction' => 'Debitorenbuchung bearbeiten', + 'Employee' => 'Bearbeiter', 'Enter longdescription' => 'Langtext eingeben', 'Error in database control file \'%s\': %s' => 'Fehler in Datenbankupgradekontrolldatei \'%s\': %s', 'Ertrag' => 'Ertrag',