Skip to content

Commit

Permalink
bugfix: don't send invoices to bank accounts printed on invoices
Browse files Browse the repository at this point in the history
  • Loading branch information
chilek committed Nov 16, 2016
1 parent 4e63c1b commit 1193d0b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion bin/lms-sendinvoices.php
Original file line number Diff line number Diff line change
Expand Up @@ -285,7 +285,8 @@ function localtime2() {
AND d.cdate >= $daystart AND d.cdate <= $dayend"
. (!empty($groupnames) ? $customergroups : "")
. " ORDER BY d.number" . (!empty($count_limit) ? " LIMIT $count_limit OFFSET $count_offset" : '');
$docs = $DB->GetAll($query, array(CONTACT_INVOICES | CONTACT_DISABLED, CONTACT_INVOICES, DOC_INVOICE, DOC_CNOTE, DOC_DNOTE));
$docs = $DB->GetAll($query, array(CONTACT_EMAIL | CONTACT_INVOICES | CONTACT_DISABLED,
CONTACT_EMAIL | CONTACT_INVOICES, DOC_INVOICE, DOC_CNOTE, DOC_DNOTE));

if (!empty($docs))
$LMS->SendInvoices($docs, 'backend', compact('SMARTY', 'invoice_filetype', 'dnote_filetype' , 'invoice_filename', 'dnote_filename', 'debug_email',
Expand Down

0 comments on commit 1193d0b

Please sign in to comment.