Bug #357696 - Billable items appear in more than one invoice

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@19132 57a11ea4-9604-0410-9ed3-97b8803252fd
This commit is contained in:
Geert Janssens 2010-05-07 10:32:07 +00:00
parent 3295187d90
commit 6e842f5fa5
2 changed files with 4 additions and 2 deletions

View File

@ -426,7 +426,7 @@ static void create_invoice_query (GncEntryLedger *ledger)
* ( Entry->Billable == TRUE AND
* Entry->Bill->Is-Posted? == TRUE AND
* ( Entry->BillTo == Invoice->parent OR
* Entry->Bill->BillTo == Invoice->parent ) )
* ( Entry->BillTo == NULL AND Entry->Bill->BillTo == Invoice->parent ) ) )
* OR
* ( Entry->Order->real-parent == Invoice->parent ) )
* #endif

View File

@ -730,7 +730,9 @@ qof_query_guid_predicate (QofGuidMatch options, GList *guid_list)
query_guid_t pdata;
GList *node;
if (NULL == guid_list) return NULL;
/* An empty list of guids is only valid when testing for a null GUID value */
if (!guid_list)
g_return_val_if_fail (options == QOF_GUID_MATCH_NULL, NULL);
pdata = g_new0 (query_guid_def, 1);
pdata->pd.how = QOF_COMPARE_EQUAL;