GnuCashew ~ GnuCash Enabled Web
GCW
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
15
/*!
16
** \brief Default Time
17
**
18
** This is the default-time that is applied to the split items
19
** date column. Since the user-interface only accepts 'date'
20
** values and not 'time' values, the time-component that gets
21
** posted to the back-end database is set to this default value.
22
**
23
*/
24
#define GCW_DATE_DEFAULT_TIME { 10, 59, 0 }
25
#define GCW_DEFAULT_DATE "1970-01-01 00:00:00"
26
#define GCW_RECONCILE_NO "n"
27
#define GCW_RECONCILE_YES "y"
28
#define GCW_RECONCILE_CLEARED "c"
29
30
/*!
31
** \brief Internal Numeric Type
32
**
33
** This DECIMAL library is used to handle 'currency' type values, which
34
** are notably difficult to handle within native C code.
35
**
36
*/
37
#define GCW_NUMERIC DECIMAL::decimal<2>
38
39
#define FUNCTION_HEADER __FILE__ << ":"
<< __LINE__ << " " << __FUNCTION__ << ":<start>"
40
#define FUNCTION_FOOTER __FILE__ << ":"
<< __LINE__ << " " << __FUNCTION__ << ":<end>"
41
#define BREAKER std::endl << std::endl << std::endl
42
#define BREAKHEADER BREAKER << FUNCTION_HEADER
43
#define BREAKFOOTER FUNCTION_FOOTER << BREAKER
44
45
#endif
46
Generated on Fri Mar 7 2025 11:49:32 for GnuCashew ~ GnuCash Enabled Web by
1.9.1