GnuCashew ~ GnuCash Enabled Web
GCW
Public Member Functions | Private Attributes | List of all members
GCW::Dbo::BillTerms::Item Class Reference

BillTerms Class. More...

#include <Item.h>

+ Inheritance diagram for GCW::Dbo::BillTerms::Item:

Public Member Functions

 Item ()
 ctor More...
 
 Item (const std::string &_guid)
 ctor with guid More...
 
auto guid () const -> const std::string &
 GUID. More...
 
template<class Action >
auto persist (Action &action) -> void
 
- Public Member Functions inherited from GCW::Dbo::BaseItem< Item >
 BaseItem ()
 

Private Attributes

std::string m_guid
 
std::string m_name
 
std::string m_description
 
int m_refcount
 
int m_invisible
 
std::string m_parent
 
std::string m_type
 
int m_duedays
 
int m_discountdays
 
int m_discount_num
 
int m_discount_denom
 
int m_cutoff
 

Additional Inherited Members

- Public Types inherited from GCW::Dbo::BaseItem< Item >
using Ptr = Wt::Dbo::ptr< Item >
 
using Collection = Wt::Dbo::collection< Ptr >
 
using Vector = std::vector< Ptr >
 

Detailed Description

BillTerms Class.

dot_inline_dotgraph_3.png
Native GnuCash BillTerms Sqlite Schema
CREATE TABLE billterms
(
guid text(32) PRIMARY KEY NOT NULL,
name text(2048) NOT NULL,
description text(2048) NOT NULL,
refcount integer NOT NULL,
invisible integer NOT NULL,
parent text(32),
type text(2048) NOT NULL,
duedays integer,
discountdays integer,
discount_num bigint,
cutoff integer
);
auto guid() const -> const std::string &
GUID.
Definition: Item.h:98
const Wt::WFormModel::Field name
Definition: Accounts.cpp:47
const Wt::WFormModel::Field description
Definition: Accounts.cpp:54
const Wt::WFormModel::Field refcount
Definition: BillTerms.cpp:13
const Wt::WFormModel::Field discount_num
Definition: BillTerms.cpp:19
const Wt::WFormModel::Field cutoff
Definition: BillTerms.cpp:21
const Wt::WFormModel::Field parent
Definition: BillTerms.cpp:15
const Wt::WFormModel::Field discount_denom
Definition: BillTerms.cpp:20
const Wt::WFormModel::Field discountdays
Definition: BillTerms.cpp:18
const Wt::WFormModel::Field invisible
Definition: BillTerms.cpp:14
const Wt::WFormModel::Field type
Definition: BillTerms.cpp:16
const Wt::WFormModel::Field duedays
Definition: BillTerms.cpp:17

Definition at line 78 of file Item.h.

Constructor & Destructor Documentation

◆ Item() [1/2]

GCW::Dbo::BillTerms::Item::Item ( )
inline

ctor

Definition at line 86 of file Item.h.

◆ Item() [2/2]

GCW::Dbo::BillTerms::Item::Item ( const std::string &  _guid)
inline

ctor with guid

Definition at line 91 of file Item.h.

Member Function Documentation

◆ guid()

auto GCW::Dbo::BillTerms::Item::guid ( ) const -> const std::string &
inline

GUID.

Return account 'guid' value - the primary key for the account

Definition at line 98 of file Item.h.

References m_guid.

◆ persist()

template<class Action >
auto GCW::Dbo::BillTerms::Item::persist ( Action &  action) -> void
inline

Member Data Documentation

◆ m_cutoff

int GCW::Dbo::BillTerms::Item::m_cutoff
private

Definition at line 131 of file Item.h.

Referenced by persist().

◆ m_description

std::string GCW::Dbo::BillTerms::Item::m_description
private

Definition at line 122 of file Item.h.

Referenced by persist().

◆ m_discount_denom

int GCW::Dbo::BillTerms::Item::m_discount_denom
private

Definition at line 130 of file Item.h.

Referenced by persist().

◆ m_discount_num

int GCW::Dbo::BillTerms::Item::m_discount_num
private

Definition at line 129 of file Item.h.

Referenced by persist().

◆ m_discountdays

int GCW::Dbo::BillTerms::Item::m_discountdays
private

Definition at line 128 of file Item.h.

Referenced by persist().

◆ m_duedays

int GCW::Dbo::BillTerms::Item::m_duedays
private

Definition at line 127 of file Item.h.

Referenced by persist().

◆ m_guid

std::string GCW::Dbo::BillTerms::Item::m_guid
private

Definition at line 120 of file Item.h.

Referenced by guid(), and persist().

◆ m_invisible

int GCW::Dbo::BillTerms::Item::m_invisible
private

Definition at line 124 of file Item.h.

Referenced by persist().

◆ m_name

std::string GCW::Dbo::BillTerms::Item::m_name
private

Definition at line 121 of file Item.h.

Referenced by persist().

◆ m_parent

std::string GCW::Dbo::BillTerms::Item::m_parent
private

Definition at line 125 of file Item.h.

Referenced by persist().

◆ m_refcount

int GCW::Dbo::BillTerms::Item::m_refcount
private

Definition at line 123 of file Item.h.

Referenced by persist().

◆ m_type

std::string GCW::Dbo::BillTerms::Item::m_type
private

Definition at line 126 of file Item.h.

Referenced by persist().


The documentation for this class was generated from the following file: