GnuCashew ~ Web Application compatible with GnuCash sql data files.
GCW
Loading...
Searching...
No Matches
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
 
 Item (const std::string &_guid)
 ctor with guid
 
auto guid () const -> const std::string &
 GUID.
 
template<class Action >
auto persist (Action &action) -> void
 
- Public Member Functions inherited from GCW::Dbo::BaseItem< Item >
 BaseItem ()
 
- Public Member Functions inherited from Wt::Dbo::Dbo< class C >
 Dbo ()
 
 Dbo (const Dbo< C > &other)
 
dbo_traits< C >::IdType id () const
 
Sessionsession () const
 
void setDirty ()
 
bool isDirty () const
 
ptr< Cself () const
 

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),
charge_amt_num bigint,
charge_amt_denom bigint
);
auto guid() const -> const std::string &
GUID.

Definition at line 84 of file Dbo/Invoices/Item.h.

Constructor & Destructor Documentation

◆ Item() [1/2]

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

ctor

Definition at line 92 of file Dbo/Invoices/Item.h.

◆ Item() [2/2]

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

ctor with guid

Definition at line 97 of file Dbo/Invoices/Item.h.

Member Function Documentation

◆ guid()

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 Dbo/Invoices/Item.h.

References m_guid.

◆ persist()

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 Dbo/Invoices/Item.h.

Referenced by persist().

◆ m_billing_id

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

Definition at line 142 of file Dbo/Invoices/Item.h.

Referenced by persist().

◆ m_billto_guid

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

Definition at line 147 of file Dbo/Invoices/Item.h.

Referenced by persist().

◆ m_billto_type

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

Definition at line 146 of file Dbo/Invoices/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 Dbo/Invoices/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 Dbo/Invoices/Item.h.

Referenced by persist().

◆ m_currency

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

Definition at line 138 of file Dbo/Invoices/Item.h.

Referenced by persist().

◆ m_date_opened

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

Definition at line 134 of file Dbo/Invoices/Item.h.

Referenced by persist().

◆ m_date_posted

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

Definition at line 135 of file Dbo/Invoices/Item.h.

Referenced by persist().

◆ m_guid

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

Definition at line 132 of file Dbo/Invoices/Item.h.

Referenced by guid(), and persist().

◆ m_id

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

Definition at line 133 of file Dbo/Invoices/Item.h.

Referenced by persist().

◆ m_notes

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

Definition at line 136 of file Dbo/Invoices/Item.h.

Referenced by persist().

◆ m_owner_guid

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

Definition at line 140 of file Dbo/Invoices/Item.h.

Referenced by persist().

◆ m_owner_type

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

Definition at line 139 of file Dbo/Invoices/Item.h.

Referenced by persist().

◆ m_post_acc

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

Definition at line 145 of file Dbo/Invoices/Item.h.

Referenced by persist().

◆ m_post_lot

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

Definition at line 144 of file Dbo/Invoices/Item.h.

Referenced by persist().

◆ m_post_txn

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

Definition at line 143 of file Dbo/Invoices/Item.h.

Referenced by persist().

◆ m_terms

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

Definition at line 141 of file Dbo/Invoices/Item.h.

Referenced by persist().


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