X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=SL%2FDN.pm;h=b9568bd13d92487518f7a5f681a1dd4099e7368c;hb=ee56f1b20ab915671ded297f593c0e2e245bad70;hp=69db0053fe41befdedb6d5520459b94e60e4eae7;hpb=1d327692f5b3d9df230a8cc3963698982e89971b;p=kivitendo-erp.git diff --git a/SL/DN.pm b/SL/DN.pm index 69db0053f..b9568bd13 100644 --- a/SL/DN.pm +++ b/SL/DN.pm @@ -25,7 +25,8 @@ # GNU General Public License for more details. # You should have received a copy of the GNU General Public License # along with this program; if not, write to the Free Software -# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. +# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, +# MA 02110-1335, USA. #====================================================================== # # Dunning process module @@ -803,6 +804,7 @@ sub print_dunning { ar.transdate, ar.duedate, ar.customer_id, ar.invnumber, ar.ordnumber, ar.cp_id, ar.amount, ar.netamount, ar.paid, + ar.employee_id, ar.salesman_id, (SELECT cu.name FROM currencies cu WHERE cu.id = ar.currency_id) AS curr, (SELECT description from department WHERE id = ar.department_id) AS department, ar.amount - ar.paid AS open_amount, @@ -833,7 +835,7 @@ sub print_dunning { c.country, c.department_1, c.department_2, c.email, c.customernumber, c.greeting, c.contact, c.phone, c.fax, c.homepage, c.email, c.taxincluded, c.business_id, c.taxnumber, c.iban, - c,ustid, e.name as salesman_name, + c.ustid, co.* FROM dunning d LEFT JOIN ar ON (d.trans_id = ar.id) @@ -903,6 +905,9 @@ sub print_dunning { push @{ $form->{DUNNING_PDFS_EMAIL} }, { 'filename' => "${spool}/$filename", 'name' => $form->get_formname_translation('dunning') . "_${dunning_id}.pdf" }; + $form->get_employee_data('prefix' => 'employee', 'id' => $form->{employee_id}); + $form->get_employee_data('prefix' => 'salesman', 'id' => $form->{salesman_id}); + $form->parse_template($myconfig); $main::lxdebug->leave_sub();