GnuCashew ~ GnuCash Enabled Web
GCW
BillPay.cpp
Go to the documentation of this file.
1 #line 2 "src/Gui/BillPay/BillPay.cpp"
2 
3 #include "BillPay.h"
4 
5 auto
8 {
9  Wt::Dbo::Transaction t( GCW::app()-> gnucashew_session() );
10 
11  auto retVal = GCW::Dbo::Vars::get( "config", GCW_GUI_BILLPAY_CONFIG_CFY );
12 
13  return retVal;
14 
15 } // endconfigItem()-> GCW::Dbo::Vars::Item::Ptr
16 
17 auto
19 bpItem( const std::string & _guid )-> GCW::Gui::BillPay::Item
20 {
21  return
23  (
24  /*
25  ** get the BP item based on the GUID provided. Note
26  ** that if the item doesn't exist, it will be added.
27  **
28  */
30  (
31  _guid,
33  true
34  )
35  );
36 
37 } // endbpItem( const std::string & _nickname )-> GCW::Dbo::Vars::Item::Ptr
38 
39 auto
41 toString( int _value )-> std::string
42 {
43  std::string retVal = std::to_string( _value );
44 
45  if( retVal.length() == 1 )
46  retVal = "0" + retVal;
47 
48  return retVal;
49 
50 } // endtoString( int _value )-> std::string
51 
52 auto
54 exportAll()-> void
55 {
56 
57 } // endexportAll()-> void
58 
59 auto
61 importAll()-> void
62 {
63 
64 } // endimportAll()-> void
65 
66 
#define GCW_GUI_BILLPAY_ITEM_CFY
Definition: BillPay.h:39
#define GCW_GUI_BILLPAY_CONFIG_CFY
Definition: BillPay.h:38
Wt::Dbo::ptr< Item > Ptr
Definition: BaseItem.h:39
GCW::Dbo::Vars::Item::Ptr get(const std::string &_keyValue, const std::string &_cfyValue="*", bool _add=true)
Definition: Vars.cpp:16
auto bpItem(const std::string &_guid) -> GCW::Gui::BillPay::Item
Bill Pay Item.
Definition: BillPay.cpp:19
auto importAll() -> void
Definition: BillPay.cpp:61
auto exportAll() -> void
Definition: BillPay.cpp:54
auto toString(int _value) -> std::string
Convert Integer to String.
Definition: BillPay.cpp:41
auto configItem() -> GCW::Dbo::Vars::Item::Ptr
Config Item.
Definition: BillPay.cpp:7
App * app()
Definition: App.cpp:67