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

Entries Class. More...

#include <Item.h>

+ Inheritance diagram for GCW::Dbo::Entries::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_date
 
std::string m_date_entered
 
std::string m_description
 
std::string m_action
 
std::string m_notes
 
int m_quantity_num
 
int m_quantity_denom
 
std::string m_i_acct
 
int m_i_price_num
 
int m_i_price_denom
 
int m_i_discount_num
 
int m_i_discount_denom
 
std::string m_invoice
 
std::string m_i_disc_type
 
std::string m_i_disc_how
 
int m_i_taxable
 
int m_i_taxincluded
 
std::string m_i_taxtable
 
std::string m_b_acct
 
int m_b_price_num
 
int m_b_price_denom
 
std::string m_bill
 
int m_b_taxable
 
int m_b_taxincluded
 
std::string m_b_taxtable
 
int m_b_paytype
 
int m_billable
 
int m_billto_type
 
std::string m_billto_guid
 
std::string m_order_guid
 

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

Entries Class.

dot_inline_dotgraph_7.png
Native GnuCash Entries Sqlite Schema
CREATE TABLE entries
(
guid text(32) PRIMARY KEY NOT NULL,
date text(19) NOT NULL,
date_entered text(19),
description text(2048),
action text(2048),
notes text(2048),
quantity_num bigint,
i_acct text(32),
i_price_num bigint,
i_price_denom bigint,
invoice text(32),
i_disc_type text(2048),
i_disc_how text(2048),
i_taxable integer,
i_taxincluded integer,
i_taxtable text(32),
b_acct text(32),
b_price_num bigint,
b_price_denom bigint,
bill text(32),
b_taxable integer,
b_taxincluded integer,
b_taxtable text(32),
b_paytype integer,
billable integer,
billto_type integer,
billto_guid text(32),
order_guid text(32)
);
auto guid() const -> const std::string &
GUID.
Definition: Item.h:117
const Wt::WFormModel::Field description
Definition: Accounts.cpp:54
const Wt::WFormModel::Field bill
Definition: Entries.cpp:32
const Wt::WFormModel::Field i_taxtable
Definition: Entries.cpp:28
const Wt::WFormModel::Field i_discount_denom
Definition: Entries.cpp:22
const Wt::WFormModel::Field action
Definition: Entries.cpp:14
const Wt::WFormModel::Field billable
Definition: Entries.cpp:37
const Wt::WFormModel::Field i_disc_how
Definition: Entries.cpp:25
const Wt::WFormModel::Field b_taxable
Definition: Entries.cpp:33
const Wt::WFormModel::Field b_price_denom
Definition: Entries.cpp:31
const Wt::WFormModel::Field date_entered
Definition: Entries.cpp:12
const Wt::WFormModel::Field i_disc_type
Definition: Entries.cpp:24
const Wt::WFormModel::Field b_paytype
Definition: Entries.cpp:36
const Wt::WFormModel::Field date
Definition: Entries.cpp:11
const Wt::WFormModel::Field b_taxtable
Definition: Entries.cpp:35
const Wt::WFormModel::Field i_discount_num
Definition: Entries.cpp:21
const Wt::WFormModel::Field order_guid
Definition: Entries.cpp:40
const Wt::WFormModel::Field i_price_num
Definition: Entries.cpp:19
const Wt::WFormModel::Field b_price_num
Definition: Entries.cpp:30
const Wt::WFormModel::Field i_taxable
Definition: Entries.cpp:26
const Wt::WFormModel::Field b_acct
Definition: Entries.cpp:29
const Wt::WFormModel::Field i_price_denom
Definition: Entries.cpp:20
const Wt::WFormModel::Field i_taxincluded
Definition: Entries.cpp:27
const Wt::WFormModel::Field quantity_num
Definition: Entries.cpp:16
const Wt::WFormModel::Field invoice
Definition: Entries.cpp:23
const Wt::WFormModel::Field quantity_denom
Definition: Entries.cpp:17
const Wt::WFormModel::Field b_taxincluded
Definition: Entries.cpp:34
const Wt::WFormModel::Field i_acct
Definition: Entries.cpp:18
const Wt::WFormModel::Field notes
Definition: Definition.h:20
const Wt::WFormModel::Field billto_guid
Definition: Definition.h:31
const Wt::WFormModel::Field billto_type
Definition: Definition.h:30

Definition at line 97 of file Item.h.

Constructor & Destructor Documentation

◆ Item() [1/2]

GCW::Dbo::Entries::Item::Item ( )
inline

ctor

Definition at line 105 of file Item.h.

◆ Item() [2/2]

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

ctor with guid

Definition at line 110 of file Item.h.

Member Function Documentation

◆ guid()

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

GUID.

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

Definition at line 117 of file Item.h.

References m_guid.

◆ persist()

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

Definition at line 120 of file Item.h.

References GCW::Dbo::Entries::Field::action, GCW::Dbo::Entries::Field::b_acct, GCW::Dbo::Entries::Field::b_paytype, GCW::Dbo::Entries::Field::b_price_denom, GCW::Dbo::Entries::Field::b_price_num, GCW::Dbo::Entries::Field::b_taxable, GCW::Dbo::Entries::Field::b_taxincluded, GCW::Dbo::Entries::Field::b_taxtable, GCW::Dbo::Entries::Field::bill, GCW::Dbo::Entries::Field::billable, GCW::Dbo::Entries::Field::billto_guid, GCW::Dbo::Entries::Field::billto_type, GCW::Dbo::Entries::Field::date, GCW::Dbo::Entries::Field::date_entered, GCW::Dbo::Entries::Field::description, GCW::Dbo::Entries::Field::guid, GCW::Dbo::Entries::Field::i_acct, GCW::Dbo::Entries::Field::i_disc_how, GCW::Dbo::Entries::Field::i_disc_type, GCW::Dbo::Entries::Field::i_discount_denom, GCW::Dbo::Entries::Field::i_discount_num, GCW::Dbo::Entries::Field::i_price_denom, GCW::Dbo::Entries::Field::i_price_num, GCW::Dbo::Entries::Field::i_taxable, GCW::Dbo::Entries::Field::i_taxincluded, GCW::Dbo::Entries::Field::i_taxtable, GCW::Dbo::Invoices::Field::id, GCW::Dbo::Entries::Field::invoice, m_action, m_b_acct, m_b_paytype, m_b_price_denom, m_b_price_num, m_b_taxable, m_b_taxincluded, m_b_taxtable, m_bill, m_billable, m_billto_guid, m_billto_type, m_date, m_date_entered, m_description, m_guid, m_i_acct, m_i_disc_how, m_i_disc_type, m_i_discount_denom, m_i_discount_num, m_i_price_denom, m_i_price_num, m_i_taxable, m_i_taxincluded, m_i_taxtable, m_invoice, m_notes, m_order_guid, m_quantity_denom, m_quantity_num, GCW::Dbo::Entries::Field::notes, GCW::Dbo::Entries::Field::order_guid, GCW::Dbo::Entries::Field::quantity_denom, and GCW::Dbo::Entries::Field::quantity_num.

Member Data Documentation

◆ m_action

std::string GCW::Dbo::Entries::Item::m_action
private

Definition at line 162 of file Item.h.

Referenced by persist().

◆ m_b_acct

std::string GCW::Dbo::Entries::Item::m_b_acct
private

Definition at line 177 of file Item.h.

Referenced by persist().

◆ m_b_paytype

int GCW::Dbo::Entries::Item::m_b_paytype
private

Definition at line 184 of file Item.h.

Referenced by persist().

◆ m_b_price_denom

int GCW::Dbo::Entries::Item::m_b_price_denom
private

Definition at line 179 of file Item.h.

Referenced by persist().

◆ m_b_price_num

int GCW::Dbo::Entries::Item::m_b_price_num
private

Definition at line 178 of file Item.h.

Referenced by persist().

◆ m_b_taxable

int GCW::Dbo::Entries::Item::m_b_taxable
private

Definition at line 181 of file Item.h.

Referenced by persist().

◆ m_b_taxincluded

int GCW::Dbo::Entries::Item::m_b_taxincluded
private

Definition at line 182 of file Item.h.

Referenced by persist().

◆ m_b_taxtable

std::string GCW::Dbo::Entries::Item::m_b_taxtable
private

Definition at line 183 of file Item.h.

Referenced by persist().

◆ m_bill

std::string GCW::Dbo::Entries::Item::m_bill
private

Definition at line 180 of file Item.h.

Referenced by persist().

◆ m_billable

int GCW::Dbo::Entries::Item::m_billable
private

Definition at line 185 of file Item.h.

Referenced by persist().

◆ m_billto_guid

std::string GCW::Dbo::Entries::Item::m_billto_guid
private

Definition at line 187 of file Item.h.

Referenced by persist().

◆ m_billto_type

int GCW::Dbo::Entries::Item::m_billto_type
private

Definition at line 186 of file Item.h.

Referenced by persist().

◆ m_date

std::string GCW::Dbo::Entries::Item::m_date
private

Definition at line 159 of file Item.h.

Referenced by persist().

◆ m_date_entered

std::string GCW::Dbo::Entries::Item::m_date_entered
private

Definition at line 160 of file Item.h.

Referenced by persist().

◆ m_description

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

Definition at line 161 of file Item.h.

Referenced by persist().

◆ m_guid

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

Definition at line 158 of file Item.h.

Referenced by guid(), and persist().

◆ m_i_acct

std::string GCW::Dbo::Entries::Item::m_i_acct
private

Definition at line 166 of file Item.h.

Referenced by persist().

◆ m_i_disc_how

std::string GCW::Dbo::Entries::Item::m_i_disc_how
private

Definition at line 173 of file Item.h.

Referenced by persist().

◆ m_i_disc_type

std::string GCW::Dbo::Entries::Item::m_i_disc_type
private

Definition at line 172 of file Item.h.

Referenced by persist().

◆ m_i_discount_denom

int GCW::Dbo::Entries::Item::m_i_discount_denom
private

Definition at line 170 of file Item.h.

Referenced by persist().

◆ m_i_discount_num

int GCW::Dbo::Entries::Item::m_i_discount_num
private

Definition at line 169 of file Item.h.

Referenced by persist().

◆ m_i_price_denom

int GCW::Dbo::Entries::Item::m_i_price_denom
private

Definition at line 168 of file Item.h.

Referenced by persist().

◆ m_i_price_num

int GCW::Dbo::Entries::Item::m_i_price_num
private

Definition at line 167 of file Item.h.

Referenced by persist().

◆ m_i_taxable

int GCW::Dbo::Entries::Item::m_i_taxable
private

Definition at line 174 of file Item.h.

Referenced by persist().

◆ m_i_taxincluded

int GCW::Dbo::Entries::Item::m_i_taxincluded
private

Definition at line 175 of file Item.h.

Referenced by persist().

◆ m_i_taxtable

std::string GCW::Dbo::Entries::Item::m_i_taxtable
private

Definition at line 176 of file Item.h.

Referenced by persist().

◆ m_invoice

std::string GCW::Dbo::Entries::Item::m_invoice
private

Definition at line 171 of file Item.h.

Referenced by persist().

◆ m_notes

std::string GCW::Dbo::Entries::Item::m_notes
private

Definition at line 163 of file Item.h.

Referenced by persist().

◆ m_order_guid

std::string GCW::Dbo::Entries::Item::m_order_guid
private

Definition at line 188 of file Item.h.

Referenced by persist().

◆ m_quantity_denom

int GCW::Dbo::Entries::Item::m_quantity_denom
private

Definition at line 165 of file Item.h.

Referenced by persist().

◆ m_quantity_num

int GCW::Dbo::Entries::Item::m_quantity_num
private

Definition at line 164 of file Item.h.

Referenced by persist().


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