Bug 687478 - Bills due reminder doesn't work well with credit notes

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@23361 57a11ea4-9604-0410-9ed3-97b8803252fd
This commit is contained in:
Geert Janssens
2013-10-31 22:24:27 +00:00
parent d1cdf9a163
commit fed6a1e5b7

View File

@@ -3143,6 +3143,8 @@ gnc_invoice_show_bills_due (QofBook *book, double days_in_advance)
/* Create the param list (in reverse order) */
if (param_list == NULL)
{
param_list = gnc_search_param_prepend (param_list, _("CN?"), NULL, type,
INVOICE_IS_CN, NULL);
param_list = gnc_search_param_prepend (param_list, _("Amount"), NULL, type,
INVOICE_POST_LOT, LOT_BALANCE, NULL);
param_list = gnc_search_param_prepend (param_list, _("Company"), NULL, type,
@@ -3161,7 +3163,7 @@ gnc_invoice_show_bills_due (QofBook *book, double days_in_advance)
* AND invoice -> lot -> is_closed? == FALSE
* AND invoice -> type != customer invoice
* AND invoice -> type != customer credit note
* AND invoice -> due >= (today - days_in_advance)
* AND invoice -> due <= (today + days_in_advance)
*/
qof_query_add_boolean_match (q, g_slist_prepend(NULL, INVOICE_IS_POSTED), TRUE,