mirror of
https://github.com/Gnucash/gnucash.git
synced 2025-02-25 18:55:30 -06:00
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:
parent
3295187d90
commit
6e842f5fa5
@ -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
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user