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

Invoices Class. More...

#include <Item.h>

+ Inheritance diagram for GCW::Dbo::Invoices::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
 
 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_id
 
std::string m_date_opened
 
std::string m_date_posted
 
std::string m_notes
 
int m_active
 
std::string m_currency
 
int m_owner_type
 
std::string m_owner_guid
 
std::string m_terms
 
std::string m_billing_id
 
std::string m_post_txn
 
std::string m_post_lot
 
std::string m_post_acc
 
int m_billto_type
 
std::string m_billto_guid
 
int m_charge_amt_num
 
int m_charge_amt_denom
 

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

Invoices Class.

dot_inline_dotgraph_8.png
Native GnuCash Invoice Sqlite Schema
CREATE TABLE invoices
(
guid text(32) PRIMARY KEY NOT NULL,
id text(2048) NOT NULL,
date_opened text(19),
date_posted text(19),
notes text(2048) NOT NULL,
active integer NOT NULL,
currency text(32) NOT NULL,
owner_type integer,
owner_guid text(32),
terms text(32),
billing_id text(2048),
post_txn text(32),
post_lot text(32),
post_acc text(32),
billto_type integer,
billto_guid text(32),
);
auto guid() const -> const std::string &
GUID.
Definition: Item.h:104
const Wt::WFormModel::Field notes
Definition: Definition.h:20
const Wt::WFormModel::Field currency
Definition: Definition.h:22
const Wt::WFormModel::Field billing_id
Definition: Definition.h:26
const Wt::WFormModel::Field billto_guid
Definition: Definition.h:31
const Wt::WFormModel::Field date_posted
Definition: Definition.h:19
const Wt::WFormModel::Field active
Definition: Definition.h:21
const Wt::WFormModel::Field post_lot
Definition: Definition.h:28
const Wt::WFormModel::Field billto_type
Definition: Definition.h:30
const Wt::WFormModel::Field post_acc
Definition: Definition.h:29
const Wt::WFormModel::Field owner_type
Definition: Definition.h:23
const Wt::WFormModel::Field date_opened
Definition: Definition.h:18
const Wt::WFormModel::Field charge_amt_num
Definition: Definition.h:32
const Wt::WFormModel::Field owner_guid
Definition: Definition.h:24
const Wt::WFormModel::Field post_txn
Definition: Definition.h:27
const Wt::WFormModel::Field charge_amt_denom
Definition: Definition.h:33
const Wt::WFormModel::Field terms
Definition: Definition.h:25

Definition at line 84 of file Item.h.

Constructor & Destructor Documentation

◆ Item() [1/4]

GCW::Dbo::Invoices::Item::Item ( )
inline

ctor

Definition at line 92 of file Item.h.

◆ Item() [2/4]

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

ctor with guid

Definition at line 97 of file Item.h.

◆ Item() [3/4]

GCW::Dbo::Invoices::Item::Item ( )
inline

ctor

Definition at line 92 of file Item.h.

◆ Item() [4/4]

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

ctor with guid

Definition at line 97 of file Item.h.

Member Function Documentation

◆ guid() [1/2]

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

GUID.

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

Definition at line 104 of file Item.h.

References m_guid.

◆ guid() [2/2]

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

GUID.

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

Definition at line 104 of file Item.h.

References m_guid.

◆ persist() [1/2]

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

◆ persist() [2/2]

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

Member Data Documentation

◆ m_active

int GCW::Dbo::Invoices::Item::m_active
private

Definition at line 137 of file Item.h.

Referenced by persist().

◆ m_billing_id

std::string GCW::Dbo::Invoices::Item::m_billing_id
private

Definition at line 142 of file Item.h.

Referenced by persist().

◆ m_billto_guid

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

Definition at line 147 of file Item.h.

Referenced by persist().

◆ m_billto_type

int GCW::Dbo::Invoices::Item::m_billto_type
private

Definition at line 146 of file Item.h.

Referenced by persist().

◆ m_charge_amt_denom

int GCW::Dbo::Invoices::Item::m_charge_amt_denom
private

Definition at line 149 of file Item.h.

Referenced by persist().

◆ m_charge_amt_num

int GCW::Dbo::Invoices::Item::m_charge_amt_num
private

Definition at line 148 of file Item.h.

Referenced by persist().

◆ m_currency

std::string GCW::Dbo::Invoices::Item::m_currency
private

Definition at line 138 of file Item.h.

Referenced by persist().

◆ m_date_opened

std::string GCW::Dbo::Invoices::Item::m_date_opened
private

Definition at line 134 of file Item.h.

Referenced by persist().

◆ m_date_posted

std::string GCW::Dbo::Invoices::Item::m_date_posted
private

Definition at line 135 of file Item.h.

Referenced by persist().

◆ m_guid

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

Definition at line 132 of file Item.h.

Referenced by guid(), and persist().

◆ m_id

std::string GCW::Dbo::Invoices::Item::m_id
private

Definition at line 133 of file Item.h.

Referenced by persist().

◆ m_notes

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

Definition at line 136 of file Item.h.

Referenced by persist().

◆ m_owner_guid

std::string GCW::Dbo::Invoices::Item::m_owner_guid
private

Definition at line 140 of file Item.h.

Referenced by persist().

◆ m_owner_type

int GCW::Dbo::Invoices::Item::m_owner_type
private

Definition at line 139 of file Item.h.

Referenced by persist().

◆ m_post_acc

std::string GCW::Dbo::Invoices::Item::m_post_acc
private

Definition at line 145 of file Item.h.

Referenced by persist().

◆ m_post_lot

std::string GCW::Dbo::Invoices::Item::m_post_lot
private

Definition at line 144 of file Item.h.

Referenced by persist().

◆ m_post_txn

std::string GCW::Dbo::Invoices::Item::m_post_txn
private

Definition at line 143 of file Item.h.

Referenced by persist().

◆ m_terms

std::string GCW::Dbo::Invoices::Item::m_terms
private

Definition at line 141 of file Item.h.

Referenced by persist().


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