GnuCashew ~ Web Application compatible with GnuCash sql data files.
GCW
Loading...
Searching...
No Matches
Glb
gcwglobal.h
Go to the documentation of this file.
1
#line 2 "src/Glb/gcwglobal.h"
2
3
#ifndef __GLOBAL_H___
4
#define __GLOBAL_H___
5
6
/*
7
** set up some common global definitions
8
**
9
*/
10
11
#define ISO_DATE_FORMAT "yyyy-MM-ddThh:mm:ss.zzzZ"
12
#define GCW_DATE_FORMAT_STORAGE "yyyy-MM-dd hh:mm:ss"
13
//#define GCW_DATE_FORMAT_DISPLAY "MM/dd/yyyy"
14
#define GCW_DATE_FORMAT_DISPLAY "yyyy-MM-dd"
15
16
/*!
17
** \brief Default Time
18
**
19
** This is the default-time that is applied to the split items
20
** date column. Since the user-interface only accepts 'date'
21
** values and not 'time' values, the time-component that gets
22
** posted to the back-end database is set to this default value.
23
**
24
*/
25
#define GCW_DATE_DEFAULT_TIME { 10, 59, 0 }
26
#define GCW_DEFAULT_DATE "1970-01-01 00:00:00"
27
#define GCW_RECONCILE_NO "n"
28
#define GCW_RECONCILE_YES "y"
29
#define GCW_RECONCILE_CLEARED "c"
30
31
/*!
32
** \brief Internal Numeric Type
33
**
34
** This DECIMAL library is used to handle 'currency' type values, which
35
** are notably difficult to handle within native C code.
36
**
37
*/
38
#define GCW_NUMERIC DECIMAL::decimal<2>
39
40
#define FUNCTION_HEADER __FILE__ << ":" << __LINE__ << " " << __FUNCTION__ << ":<start>"
41
#define FUNCTION_FOOTER __FILE__ << ":" << __LINE__ << " " << __FUNCTION__ << ":<end>"
42
#define BREAKER std::endl << std::endl << std::endl
43
#define BREAKHEADER BREAKER << FUNCTION_HEADER
44
#define BREAKFOOTER FUNCTION_FOOTER << BREAKER
45
46
#endif
47
Generated on Sat Sep 13 2025 08:48:27 for GnuCashew ~ Web Application compatible with GnuCash sql data files. by
1.9.8