1#line 2 "src/Dbo/Transactions.cpp"
10set_num(
const std::string & _value )->
void
20 m_enter_date = _value;
50 m_post_date = _value.toString(
"yyyy-MM-dd 10:59:00" ).toUTF8();
58 m_description = _value;
71 if(
GCW::app()-> gnucashew_session().isOpen() )
93 return load( _txGuid );
104 GCW::app()-> gnucashew_session().addNew<
Item >( _txGuid );
118 if(
GCW::app()-> gnucashew_session().isOpen() )
131 .where(
"guid in (select tx_guid from splits where account_guid = ?)" )
132 .bind( _accountGuid )
133 .orderBy(
"post_date" )
137 for(
auto result : results )
138 retVal.push_back( result );
158 for(
auto item : byAccount( _accountGuid ) )
159 if( item-> post_date_as_date().date().month() == _month
160 && item-> post_date_as_date().date().year() == thisYear
162 retVal.push_back( item );
179 .where(
"num = ? and post_date LIKE ?" )
182 .orderBy(
"post_date" )
186 for(
auto item : results )
187 retVal.push_back( item );
auto set_num(const std::string &_value) -> void
std::vector< Ptr > Vector
auto set_enter_date(const std::string &_value) -> void
auto set_description(const std::string &_value) -> void
auto set_post_date(const std::string &_value) -> void
static WDate currentDate()
#define GCW_DATE_FORMAT_STORAGE
auto add(const std::string &_txGuid) -> Item::Ptr
auto byGuid(const std::string &_txGuid) -> Item::Ptr
auto byAccount(const std::string &_accountGuid) -> Item::Vector
auto byNumMonth(const std::string &_num, int _month) -> Item::Vector
auto byAccountMonth(const std::string &_accountGuid, int _month) -> Item::Vector
auto load(const std::string &_txGuid) -> Item::Ptr
Load Transaction by Guid.