mirror of
https://github.com/Gnucash/gnucash.git
synced 2025-02-25 18:55:30 -06:00
[business-urls] parse enddate=time64-number
enddate=number is parsed if it exists. it is not yet used in owner-report generation.
This commit is contained in:
parent
99f2e0db23
commit
68c980baf2
@ -30,6 +30,7 @@
|
|||||||
#include "gnc-html.h"
|
#include "gnc-html.h"
|
||||||
#include "gnc-ui-util.h"
|
#include "gnc-ui-util.h"
|
||||||
#include "qof.h"
|
#include "qof.h"
|
||||||
|
#include "stdint.h"
|
||||||
|
|
||||||
#include "gncCustomer.h"
|
#include "gncCustomer.h"
|
||||||
#include "gncJob.h"
|
#include "gncJob.h"
|
||||||
@ -207,11 +208,12 @@ static gboolean
|
|||||||
ownerreportCB (const char *location, const char *label,
|
ownerreportCB (const char *location, const char *label,
|
||||||
gboolean new_window, GNCURLResult * result)
|
gboolean new_window, GNCURLResult * result)
|
||||||
{
|
{
|
||||||
gchar *ownerptr, *acctptr, *etype = NULL;
|
gchar *ownerptr, *acctptr, *etype, *datestr = NULL;
|
||||||
GncGUID guid;
|
GncGUID guid;
|
||||||
GncOwner owner;
|
GncOwner owner;
|
||||||
Account *acc;
|
Account *acc;
|
||||||
GHashTable *query_ht;
|
GHashTable *query_ht;
|
||||||
|
time64 enddate;
|
||||||
gboolean show_report = TRUE;
|
gboolean show_report = TRUE;
|
||||||
|
|
||||||
g_return_val_if_fail (location != NULL, FALSE);
|
g_return_val_if_fail (location != NULL, FALSE);
|
||||||
@ -227,6 +229,11 @@ ownerreportCB (const char *location, const char *label,
|
|||||||
DISABLE_REPORT_IF_TRUE (!acctptr || !string_to_guid (acctptr, &guid));
|
DISABLE_REPORT_IF_TRUE (!acctptr || !string_to_guid (acctptr, &guid));
|
||||||
acc = xaccAccountLookup (&guid, gnc_get_current_book ());
|
acc = xaccAccountLookup (&guid, gnc_get_current_book ());
|
||||||
|
|
||||||
|
/* parse the acct guid*/
|
||||||
|
datestr = g_hash_table_lookup (query_ht, "enddate");
|
||||||
|
if (datestr)
|
||||||
|
enddate = g_ascii_strtoull (datestr, NULL, 10);
|
||||||
|
|
||||||
/* parse the owner guid */
|
/* parse the owner guid */
|
||||||
ownerptr = g_hash_table_lookup (query_ht, "owner");
|
ownerptr = g_hash_table_lookup (query_ht, "owner");
|
||||||
DISABLE_REPORT_IF_TRUE (!ownerptr || !strchr("cvej", ownerptr[0]) ||
|
DISABLE_REPORT_IF_TRUE (!ownerptr || !strchr("cvej", ownerptr[0]) ||
|
||||||
|
Loading…
Reference in New Issue
Block a user