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

Customer Item Class. More...

#include <Item.h>

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

Public Member Functions

const std::string & guid () const
 
const std::string & name () const
 
const std::string & id () const
 
template<class Action >
void persist (Action &action)
 
- Public Member Functions inherited from GCW::Dbo::BaseItem< Item >
 BaseItem ()
 

Private Attributes

std::string m_guid
 
std::string m_name
 
std::string m_id
 
std::string m_notes
 
int m_active
 
int m_discount_num
 
int m_discount_denom
 
int m_credit_num
 
int m_credit_denom
 
std::string m_currency
 
int m_tax_override
 
std::string m_addr_name
 
std::string m_addr_addr1
 
std::string m_addr_addr2
 
std::string m_addr_addr3
 
std::string m_addr_addr4
 
std::string m_addr_phone
 
std::string m_addr_fax
 
std::string m_addr_email
 
std::string m_shipaddr_name
 
std::string m_shipaddr_addr1
 
std::string m_shipaddr_addr2
 
std::string m_shipaddr_addr3
 
std::string m_shipaddr_addr4
 
std::string m_shipaddr_phone
 
std::string m_shipaddr_fax
 
std::string m_shipaddr_email
 
std::string m_terms
 
int m_tax_included
 
std::string m_taxtable
 

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

Customer Item Class.

This class represents an 'customer' within gnucash. This is a Dbo object so this class is used as the interface between the gnucashew application and the back-end database.

Native GnuCash Account Sqlite Schema
CREATE TABLE customers
(
guid text(32) PRIMARY KEY NOT NULL,
name text(2048) NOT NULL,
id text(2048) NOT NULL,
notes text(2048) NOT NULL,
active integer NOT NULL,
discount_num bigint NOT NULL,
discount_denom bigint NOT NULL,
credit_num bigint NOT NULL,
credit_denom bigint NOT NULL,
currency text(32) NOT NULL,
tax_override integer NOT NULL,
addr_name text(1024),
addr_addr1 text(1024),
addr_addr2 text(1024),
addr_addr3 text(1024),
addr_addr4 text(1024),
addr_phone text(128),
addr_fax text(128),
addr_email text(256),
shipaddr_name text(1024),
shipaddr_addr1 text(1024),
shipaddr_addr2 text(1024),
shipaddr_addr3 text(1024),
shipaddr_addr4 text(1024),
shipaddr_phone text(128),
shipaddr_fax text(128),
shipaddr_email text(256),
terms text(32),
tax_included integer,
taxtable text(32)
);
sqlite> select * from customers;
f7bc3a5dec934b30bfa185060838a256|BishBash CPA|BBS||1|0|1|0|1|3d1e5462691a4289baec562fa9c26cfd|0|Dick C. Cavett CPA PC|Sheffield Road, #720|Deluth, TX 22313-8178|||442-344-1886||jim@holocow.com||||||||||3|
3168628916994bf985b1477c3635ed4f|Flourtems|FTM||1|0|1|0|1|3d1e5462691a4289baec562fa9c26cfd|0|Flourtems Fine Services|f442 Sadly Trail|Suite 123|Point, TX 42233||535-233-2477||femoins@ffs.com||||||||||3|
6f61a67518544d5bad98b571324a0ad3|Kid Bright|KFP||1|0|1|0|1|3d1e5462691a4289baec562fa9c26cfd|0|Kid Bright Pediatrics|1234 Lavon Hollow|Suite #13|Brunch, TX 32345||972-233-4463|223-440-2442|mary@fbp.com||||||||||3|
cb894898e1654cd1a074c047a9c10fb3|BYOB|BYB||1|0|1|0|1|3d1e5462691a4289baec562fa9c26cfd|0|BYOB Distribution|1230 Francis Drive|Suite 2220|Alabama, TX 22334||442-785-0083||hank@justsayno.co||||||||||3|
e640931e57854e60ad100b55d7492e27|Pishaww Colifloury|PCU||1|0|1|0|1|3d1e5462691a4289baec562fa9c26cfd|0|Pichschaw Ancilary|3224 North 55th Street|Suite 123|Frankfruit, TX 22141||777-332-3567|332-322-6698|bilbowbagins@flouride.com||||||||||3|
b16870d305cd43d0b75aca0363fc5b0a|Ping Pong Botch|PPB||1|0|1|0|1|3d1e5462691a4289baec562fa9c26cfd|0|Yes to Everything|1122 East Campgranada Road|Suite 220|Anklebracelette, Texas 75281||522-344-3500|234-332-3232|info@yesyesyes.com||||||||||3|
1dfb5117a9564046b833e6544df6ed22|Test|TST||1|0|1|0|1|3d1e5462691a4289baec562fa9c26cfd|0||||||||||||||||||3|
d246b19706cb43df8e3b4cad1b78142a|Transfiber|TFT||1|0|1|0|1|3d1e5462691a4289baec562fa9c26cfd|0|Telezokim Flampourneet|523 N. Ankle Street|Suite #3722|Alabony, TX 75211||224-344-0222|244-322-4442|gbckkd@hispster.com||||||||||3|
74031f41723a414e8f43ba1b36bf711d|Bring Broth Better|BBB||1|0|1|0|1|3d1e5462691a4289baec562fa9c26cfd|0|Brunch Partners Recruiting|||||224-444-4211||heberewt@ddalzatraz.com||||||||||3|
a4279e038684453a848dab6efbb87d38|Ten Nine Eight|TNE||1|0|1|0|1|3d1e5462691a4289baec562fa9c26cfd|0|Ten Eight Nine|1235 Capitalone Hollow|Suite 125|Carrolzby, TN 22331||922-333-9177||cccounting@teneightyeleven.com|||||||||83bb345e87544d3e9c6b501881edd8fc|3|
sqlite>
const std::string & guid() const
Definition: Item.h:112
const std::string & name() const
Definition: Item.h:113
const Wt::WFormModel::Field discount_num
Definition: BillTerms.cpp:19
const Wt::WFormModel::Field discount_denom
Definition: BillTerms.cpp:20
Wt::WFormModel::Field addr_addr1
Definition: Customers.cpp:20
Wt::WFormModel::Field addr_name
Definition: Customers.cpp:19
Wt::WFormModel::Field tax_included
Definition: Customers.cpp:36
Wt::WFormModel::Field shipaddr_addr4
Definition: Customers.cpp:31
Wt::WFormModel::Field addr_fax
Definition: Customers.cpp:25
Wt::WFormModel::Field shipaddr_email
Definition: Customers.cpp:34
Wt::WFormModel::Field taxtable
Definition: Customers.cpp:37
Wt::WFormModel::Field addr_addr3
Definition: Customers.cpp:22
Wt::WFormModel::Field tax_override
Definition: Customers.cpp:18
Wt::WFormModel::Field shipaddr_fax
Definition: Customers.cpp:33
Wt::WFormModel::Field addr_phone
Definition: Customers.cpp:24
Wt::WFormModel::Field credit_denom
Definition: Customers.cpp:16
Wt::WFormModel::Field shipaddr_addr3
Definition: Customers.cpp:30
Wt::WFormModel::Field addr_email
Definition: Customers.cpp:26
Wt::WFormModel::Field shipaddr_addr1
Definition: Customers.cpp:28
Wt::WFormModel::Field addr_addr2
Definition: Customers.cpp:21
Wt::WFormModel::Field shipaddr_name
Definition: Customers.cpp:27
Wt::WFormModel::Field credit_num
Definition: Customers.cpp:15
Wt::WFormModel::Field shipaddr_phone
Definition: Customers.cpp:32
Wt::WFormModel::Field shipaddr_addr2
Definition: Customers.cpp:29
Wt::WFormModel::Field addr_addr4
Definition: Customers.cpp:23
const Wt::WFormModel::Field notes
Definition: Definition.h:20
const Wt::WFormModel::Field currency
Definition: Definition.h:22
const Wt::WFormModel::Field active
Definition: Definition.h:21
const Wt::WFormModel::Field terms
Definition: Definition.h:25

Definition at line 107 of file Item.h.

Member Function Documentation

◆ guid()

const std::string& GCW::Dbo::Customers::Item::guid ( ) const
inline

Definition at line 112 of file Item.h.

References m_guid.

◆ id()

const std::string& GCW::Dbo::Customers::Item::id ( ) const
inline

Definition at line 114 of file Item.h.

References m_id.

◆ name()

const std::string& GCW::Dbo::Customers::Item::name ( ) const
inline

Definition at line 113 of file Item.h.

References m_name.

◆ persist()

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

Definition at line 116 of file Item.h.

References GCW::Dbo::Entries::Field::action, GCW::Dbo::Customers::Field::active, GCW::Dbo::Customers::Field::addr_addr1, GCW::Dbo::Customers::Field::addr_addr2, GCW::Dbo::Customers::Field::addr_addr3, GCW::Dbo::Customers::Field::addr_addr4, GCW::Dbo::Customers::Field::addr_email, GCW::Dbo::Customers::Field::addr_fax, GCW::Dbo::Customers::Field::addr_name, GCW::Dbo::Customers::Field::addr_phone, GCW::Dbo::Customers::Field::credit_denom, GCW::Dbo::Customers::Field::credit_num, GCW::Dbo::Customers::Field::currency, GCW::Dbo::Customers::Field::discount_denom, GCW::Dbo::Customers::Field::discount_num, GCW::Dbo::Customers::Field::guid, GCW::Dbo::Invoices::Field::id, GCW::Dbo::Customers::Field::id, m_active, m_addr_addr1, m_addr_addr2, m_addr_addr3, m_addr_addr4, m_addr_email, m_addr_fax, m_addr_name, m_addr_phone, m_credit_denom, m_credit_num, m_currency, m_discount_denom, m_discount_num, m_guid, m_id, m_name, m_notes, m_shipaddr_addr1, m_shipaddr_addr2, m_shipaddr_addr3, m_shipaddr_addr4, m_shipaddr_email, m_shipaddr_fax, m_shipaddr_name, m_shipaddr_phone, m_tax_included, m_tax_override, m_taxtable, m_terms, GCW::Dbo::Customers::Field::name, GCW::Dbo::Customers::Field::notes, GCW::Dbo::Customers::Field::shipaddr_addr1, GCW::Dbo::Customers::Field::shipaddr_addr2, GCW::Dbo::Customers::Field::shipaddr_addr3, GCW::Dbo::Customers::Field::shipaddr_addr4, GCW::Dbo::Customers::Field::shipaddr_email, GCW::Dbo::Customers::Field::shipaddr_fax, GCW::Dbo::Customers::Field::shipaddr_name, GCW::Dbo::Customers::Field::shipaddr_phone, GCW::Dbo::Customers::Field::tax_included, GCW::Dbo::Customers::Field::tax_override, GCW::Dbo::Customers::Field::taxtable, and GCW::Dbo::Customers::Field::terms.

Member Data Documentation

◆ m_active

int GCW::Dbo::Customers::Item::m_active
private

Definition at line 157 of file Item.h.

Referenced by persist().

◆ m_addr_addr1

std::string GCW::Dbo::Customers::Item::m_addr_addr1
private

Definition at line 165 of file Item.h.

Referenced by persist().

◆ m_addr_addr2

std::string GCW::Dbo::Customers::Item::m_addr_addr2
private

Definition at line 166 of file Item.h.

Referenced by persist().

◆ m_addr_addr3

std::string GCW::Dbo::Customers::Item::m_addr_addr3
private

Definition at line 167 of file Item.h.

Referenced by persist().

◆ m_addr_addr4

std::string GCW::Dbo::Customers::Item::m_addr_addr4
private

Definition at line 168 of file Item.h.

Referenced by persist().

◆ m_addr_email

std::string GCW::Dbo::Customers::Item::m_addr_email
private

Definition at line 171 of file Item.h.

Referenced by persist().

◆ m_addr_fax

std::string GCW::Dbo::Customers::Item::m_addr_fax
private

Definition at line 170 of file Item.h.

Referenced by persist().

◆ m_addr_name

std::string GCW::Dbo::Customers::Item::m_addr_name
private

Definition at line 164 of file Item.h.

Referenced by persist().

◆ m_addr_phone

std::string GCW::Dbo::Customers::Item::m_addr_phone
private

Definition at line 169 of file Item.h.

Referenced by persist().

◆ m_credit_denom

int GCW::Dbo::Customers::Item::m_credit_denom
private

Definition at line 161 of file Item.h.

Referenced by persist().

◆ m_credit_num

int GCW::Dbo::Customers::Item::m_credit_num
private

Definition at line 160 of file Item.h.

Referenced by persist().

◆ m_currency

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

Definition at line 162 of file Item.h.

Referenced by persist().

◆ m_discount_denom

int GCW::Dbo::Customers::Item::m_discount_denom
private

Definition at line 159 of file Item.h.

Referenced by persist().

◆ m_discount_num

int GCW::Dbo::Customers::Item::m_discount_num
private

Definition at line 158 of file Item.h.

Referenced by persist().

◆ m_guid

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

Definition at line 153 of file Item.h.

Referenced by guid(), and persist().

◆ m_id

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

Definition at line 155 of file Item.h.

Referenced by id(), and persist().

◆ m_name

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

Definition at line 154 of file Item.h.

Referenced by name(), and persist().

◆ m_notes

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

Definition at line 156 of file Item.h.

Referenced by persist().

◆ m_shipaddr_addr1

std::string GCW::Dbo::Customers::Item::m_shipaddr_addr1
private

Definition at line 173 of file Item.h.

Referenced by persist().

◆ m_shipaddr_addr2

std::string GCW::Dbo::Customers::Item::m_shipaddr_addr2
private

Definition at line 174 of file Item.h.

Referenced by persist().

◆ m_shipaddr_addr3

std::string GCW::Dbo::Customers::Item::m_shipaddr_addr3
private

Definition at line 175 of file Item.h.

Referenced by persist().

◆ m_shipaddr_addr4

std::string GCW::Dbo::Customers::Item::m_shipaddr_addr4
private

Definition at line 176 of file Item.h.

Referenced by persist().

◆ m_shipaddr_email

std::string GCW::Dbo::Customers::Item::m_shipaddr_email
private

Definition at line 179 of file Item.h.

Referenced by persist().

◆ m_shipaddr_fax

std::string GCW::Dbo::Customers::Item::m_shipaddr_fax
private

Definition at line 178 of file Item.h.

Referenced by persist().

◆ m_shipaddr_name

std::string GCW::Dbo::Customers::Item::m_shipaddr_name
private

Definition at line 172 of file Item.h.

Referenced by persist().

◆ m_shipaddr_phone

std::string GCW::Dbo::Customers::Item::m_shipaddr_phone
private

Definition at line 177 of file Item.h.

Referenced by persist().

◆ m_tax_included

int GCW::Dbo::Customers::Item::m_tax_included
private

Definition at line 181 of file Item.h.

Referenced by persist().

◆ m_tax_override

int GCW::Dbo::Customers::Item::m_tax_override
private

Definition at line 163 of file Item.h.

Referenced by persist().

◆ m_taxtable

std::string GCW::Dbo::Customers::Item::m_taxtable
private

Definition at line 182 of file Item.h.

Referenced by persist().

◆ m_terms

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

Definition at line 180 of file Item.h.

Referenced by persist().


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