2003-10-17 00:15:56 -05:00
|
|
|
/********************************************************************\
|
|
|
|
* gncEntry.h -- the Core Business Entry Interface *
|
|
|
|
* *
|
|
|
|
* This program is free software; you can redistribute it and/or *
|
|
|
|
* modify it under the terms of the GNU General Public License as *
|
|
|
|
* published by the Free Software Foundation; either version 2 of *
|
|
|
|
* the License, or (at your option) any later version. *
|
|
|
|
* *
|
|
|
|
* This program is distributed in the hope that it will be useful, *
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of *
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
|
|
|
|
* GNU General Public License for more details. *
|
|
|
|
* *
|
|
|
|
* You should have received a copy of the GNU General Public License*
|
|
|
|
* along with this program; if not, contact: *
|
|
|
|
* *
|
|
|
|
* Free Software Foundation Voice: +1-617-542-5942 *
|
2005-11-16 23:35:02 -06:00
|
|
|
* 51 Franklin Street, Fifth Floor Fax: +1-617-542-2652 *
|
|
|
|
* Boston, MA 02110-1301, USA gnu@gnu.org *
|
2003-10-17 00:15:56 -05:00
|
|
|
* *
|
|
|
|
\********************************************************************/
|
2004-05-07 00:11:49 -05:00
|
|
|
/** @addtogroup Business
|
|
|
|
@{ */
|
|
|
|
/** @addtogroup Entry
|
|
|
|
@{ */
|
|
|
|
/** @file gncEntry.h
|
|
|
|
@brief Business Entry Interface
|
|
|
|
@author Copyright (C) 2001,2002 Derek Atkins <warlord@MIT.EDU>
|
|
|
|
*/
|
2001-11-21 19:23:07 -06:00
|
|
|
|
|
|
|
#ifndef GNC_ENTRY_H_
|
|
|
|
#define GNC_ENTRY_H_
|
|
|
|
|
|
|
|
typedef struct _gncEntry GncEntry;
|
2007-04-04 21:43:45 -05:00
|
|
|
typedef struct _gncEntryClass GncEntryClass;
|
2001-11-21 19:23:07 -06:00
|
|
|
|
2010-03-02 15:41:05 -06:00
|
|
|
typedef enum
|
|
|
|
{
|
|
|
|
GNC_PAYMENT_CASH = 1,
|
|
|
|
GNC_PAYMENT_CARD
|
2003-04-01 15:15:22 -06:00
|
|
|
} GncEntryPaymentType;
|
|
|
|
|
2010-03-02 15:41:05 -06:00
|
|
|
typedef enum
|
|
|
|
{
|
|
|
|
GNC_DISC_PRETAX = 1,
|
|
|
|
GNC_DISC_SAMETIME,
|
|
|
|
GNC_DISC_POSTTAX
|
2003-04-01 15:15:22 -06:00
|
|
|
} GncDiscountHow;
|
|
|
|
|
2005-11-01 21:32:36 -06:00
|
|
|
#ifdef GNUCASH_MAJOR_VERSION
|
2003-10-19 00:13:59 -05:00
|
|
|
#include "gncBusiness.h"
|
2005-11-01 21:32:36 -06:00
|
|
|
#endif
|
2003-10-19 00:13:59 -05:00
|
|
|
#include "gncInvoice.h"
|
|
|
|
#include "gncOrder.h"
|
|
|
|
#include "gncTaxTable.h"
|
2005-11-01 21:32:36 -06:00
|
|
|
#include "gncOwner.h"
|
2003-10-19 00:13:59 -05:00
|
|
|
|
|
|
|
#define GNC_ID_ENTRY "gncEntry"
|
2007-04-04 21:43:45 -05:00
|
|
|
|
|
|
|
/* --- type macros --- */
|
|
|
|
#define GNC_TYPE_ENTRY (gnc_entry_get_type ())
|
|
|
|
#define GNC_ENTRY(o) \
|
|
|
|
(G_TYPE_CHECK_INSTANCE_CAST ((o), GNC_TYPE_ENTRY, GncEntry))
|
|
|
|
#define GNC_ENTRY_CLASS(k) \
|
|
|
|
(G_TYPE_CHECK_CLASS_CAST((k), GNC_TYPE_ENTRY, GncEntryClass))
|
|
|
|
#define GNC_IS_ENTRY(o) \
|
|
|
|
(G_TYPE_CHECK_INSTANCE_TYPE ((o), GNC_TYPE_ENTRY))
|
|
|
|
#define GNC_IS_ENTRY_CLASS(k) \
|
|
|
|
(G_TYPE_CHECK_CLASS_TYPE ((k), GNC_TYPE_ENTRY))
|
|
|
|
#define GNC_ENTRY_GET_CLASS(o) \
|
|
|
|
(G_TYPE_INSTANCE_GET_CLASS ((o), GNC_TYPE_ENTRY, GncEntryClass))
|
|
|
|
GType gnc_entry_get_type(void);
|
2001-11-21 19:23:07 -06:00
|
|
|
|
2004-05-07 00:11:49 -05:00
|
|
|
/** How to apply the discount and taxes. There are three distinct ways to
|
2002-06-16 00:11:33 -05:00
|
|
|
* apply them:
|
|
|
|
*
|
|
|
|
* Type: discount tax
|
|
|
|
* PRETAX pretax pretax-discount
|
|
|
|
* SAMETIME pretax pretax
|
|
|
|
* POSTTAX pretax+tax pretax
|
|
|
|
*/
|
2003-03-02 22:58:55 -06:00
|
|
|
|
2002-07-01 13:31:48 -05:00
|
|
|
const char * gncEntryDiscountHowToString (GncDiscountHow how);
|
|
|
|
gboolean gncEntryDiscountStringToHow (const char *str, GncDiscountHow *how);
|
|
|
|
|
2003-03-02 22:58:55 -06:00
|
|
|
const char * gncEntryPaymentTypeToString (GncEntryPaymentType type);
|
|
|
|
gboolean gncEntryPaymentStringToType (const char *str, GncEntryPaymentType *type);
|
|
|
|
|
2010-03-02 15:41:05 -06:00
|
|
|
/** @name Create/Destroy Functions
|
2005-11-01 21:32:36 -06:00
|
|
|
@{ */
|
2003-06-26 22:05:25 -05:00
|
|
|
GncEntry *gncEntryCreate (QofBook *book);
|
2001-11-21 19:23:07 -06:00
|
|
|
void gncEntryDestroy (GncEntry *entry);
|
2004-05-07 00:11:49 -05:00
|
|
|
/** @} */
|
2001-11-21 19:23:07 -06:00
|
|
|
|
2002-09-14 00:32:37 -05:00
|
|
|
/* SET FUNCTIONS */
|
2001-11-21 19:23:07 -06:00
|
|
|
|
2010-03-02 15:41:05 -06:00
|
|
|
/** @name Generic (shared) data
|
2005-11-01 21:32:36 -06:00
|
|
|
@{ */
|
2011-11-11 15:58:04 -06:00
|
|
|
/** Set the date of this entry */
|
|
|
|
void gncEntrySetDateGDate (GncEntry *entry, const GDate* date);
|
|
|
|
/** DEPRECATED - use gncEntrySetDateGDate() instead! (Because the time-of-day
|
|
|
|
is a misleading extra information. We are only dealing with the day
|
|
|
|
information! */
|
2002-02-27 23:10:07 -06:00
|
|
|
void gncEntrySetDate (GncEntry *entry, Timespec date);
|
|
|
|
void gncEntrySetDateEntered (GncEntry *entry, Timespec date);
|
2001-11-21 19:23:07 -06:00
|
|
|
void gncEntrySetDescription (GncEntry *entry, const char *desc);
|
|
|
|
void gncEntrySetAction (GncEntry *entry, const char *action);
|
2002-06-16 23:04:05 -05:00
|
|
|
void gncEntrySetNotes (GncEntry *entry, const char *notes);
|
2001-11-21 19:23:07 -06:00
|
|
|
void gncEntrySetQuantity (GncEntry *entry, gnc_numeric quantity);
|
2004-05-07 00:11:49 -05:00
|
|
|
/** @} */
|
2001-11-21 19:23:07 -06:00
|
|
|
|
2010-03-02 15:41:05 -06:00
|
|
|
/** @name Customer Invoices
|
2005-11-01 21:32:36 -06:00
|
|
|
@{ */
|
2002-07-11 10:11:33 -05:00
|
|
|
void gncEntrySetInvAccount (GncEntry *entry, Account *acc);
|
2002-09-14 00:32:37 -05:00
|
|
|
void gncEntrySetInvPrice (GncEntry *entry, gnc_numeric price);
|
|
|
|
void gncEntrySetInvTaxable (GncEntry *entry, gboolean taxable);
|
|
|
|
void gncEntrySetInvTaxIncluded (GncEntry *entry, gboolean tax_included);
|
|
|
|
void gncEntrySetInvTaxTable (GncEntry *entry, GncTaxTable *table);
|
|
|
|
void gncEntrySetInvDiscount (GncEntry *entry, gnc_numeric discount);
|
|
|
|
void gncEntrySetInvDiscountType (GncEntry *entry, GncAmountType type);
|
|
|
|
void gncEntrySetInvDiscountHow (GncEntry *entry, GncDiscountHow how);
|
2005-11-01 21:32:36 -06:00
|
|
|
void qofEntrySetInvDiscType (GncEntry *entry, const char *type);
|
|
|
|
void qofEntrySetInvDiscHow (GncEntry *entry, const char *type);
|
2004-05-07 00:11:49 -05:00
|
|
|
/** @} */
|
2002-09-14 00:32:37 -05:00
|
|
|
|
2010-03-02 15:41:05 -06:00
|
|
|
/** @name Vendor Bills (and Employee Expenses)
|
2005-11-01 21:32:36 -06:00
|
|
|
@{ */
|
2002-07-11 10:11:33 -05:00
|
|
|
void gncEntrySetBillAccount (GncEntry *entry, Account *acc);
|
2002-09-14 00:32:37 -05:00
|
|
|
void gncEntrySetBillPrice (GncEntry *entry, gnc_numeric price);
|
|
|
|
void gncEntrySetBillTaxable (GncEntry *entry, gboolean taxable);
|
|
|
|
void gncEntrySetBillTaxIncluded (GncEntry *entry, gboolean tax_included);
|
|
|
|
void gncEntrySetBillTaxTable (GncEntry *entry, GncTaxTable *table);
|
|
|
|
void gncEntrySetBillable (GncEntry *entry, gboolean billable);
|
|
|
|
void gncEntrySetBillTo (GncEntry *entry, GncOwner *billto);
|
2004-05-07 00:11:49 -05:00
|
|
|
/** @} */
|
2001-11-21 19:23:07 -06:00
|
|
|
|
2010-03-02 15:41:05 -06:00
|
|
|
/** @name employee-stuff
|
2005-11-01 21:32:36 -06:00
|
|
|
@{ */
|
2003-03-02 22:58:55 -06:00
|
|
|
void gncEntrySetBillPayment (GncEntry *entry, GncEntryPaymentType type);
|
2004-05-07 00:11:49 -05:00
|
|
|
/** @} */
|
2003-03-02 22:58:55 -06:00
|
|
|
|
2002-09-14 00:32:37 -05:00
|
|
|
/* GET FUNCTIONS */
|
2010-03-02 15:41:05 -06:00
|
|
|
/** @name Generic (shared) data
|
2005-11-01 21:32:36 -06:00
|
|
|
@{ */
|
2011-11-11 15:58:04 -06:00
|
|
|
/** Returns the day of this entry */
|
|
|
|
GDate gncEntryGetDateGDate (const GncEntry *entry);
|
|
|
|
/** DEPRECATED - use gncEntryGetDateGDate() instead! (Because the time-of-day
|
|
|
|
is a misleading extra information. We are only dealing with the day
|
|
|
|
information! */
|
2008-08-01 11:02:07 -05:00
|
|
|
Timespec gncEntryGetDate (const GncEntry *entry);
|
|
|
|
Timespec gncEntryGetDateEntered (const GncEntry *entry);
|
|
|
|
const char * gncEntryGetDescription (const GncEntry *entry);
|
|
|
|
const char * gncEntryGetAction (const GncEntry *entry);
|
|
|
|
const char * gncEntryGetNotes (const GncEntry *notes);
|
|
|
|
gnc_numeric gncEntryGetQuantity (const GncEntry *entry);
|
2004-05-07 00:11:49 -05:00
|
|
|
/** @} */
|
2002-09-14 00:32:37 -05:00
|
|
|
|
2010-03-02 15:41:05 -06:00
|
|
|
/** @name Customer Invoices
|
2005-11-01 21:32:36 -06:00
|
|
|
@{ */
|
2008-08-01 11:02:07 -05:00
|
|
|
Account * gncEntryGetInvAccount (const GncEntry *entry);
|
|
|
|
gnc_numeric gncEntryGetInvPrice (const GncEntry *entry);
|
|
|
|
gnc_numeric gncEntryGetInvDiscount (const GncEntry *entry);
|
|
|
|
GncAmountType gncEntryGetInvDiscountType (const GncEntry *entry);
|
|
|
|
GncDiscountHow gncEntryGetInvDiscountHow (const GncEntry *entry);
|
|
|
|
char* qofEntryGetInvDiscType (const GncEntry *entry);
|
|
|
|
char* qofEntryGetInvDiscHow (const GncEntry *entry);
|
|
|
|
gboolean gncEntryGetInvTaxable (const GncEntry *entry);
|
|
|
|
gboolean gncEntryGetInvTaxIncluded (const GncEntry *entry);
|
|
|
|
GncTaxTable * gncEntryGetInvTaxTable (const GncEntry *entry);
|
2004-05-07 00:11:49 -05:00
|
|
|
/** @} */
|
2002-09-14 00:32:37 -05:00
|
|
|
|
2010-03-02 15:41:05 -06:00
|
|
|
/** @name Vendor Bills (and Employee Expenses)
|
2005-11-01 21:32:36 -06:00
|
|
|
@{ */
|
2008-08-01 11:02:07 -05:00
|
|
|
Account * gncEntryGetBillAccount (const GncEntry *entry);
|
|
|
|
gnc_numeric gncEntryGetBillPrice (const GncEntry *entry);
|
|
|
|
gboolean gncEntryGetBillTaxable (const GncEntry *entry);
|
|
|
|
gboolean gncEntryGetBillTaxIncluded (const GncEntry *entry);
|
|
|
|
GncTaxTable * gncEntryGetBillTaxTable (const GncEntry *entry);
|
|
|
|
gboolean gncEntryGetBillable (const GncEntry *entry);
|
2002-07-10 12:32:59 -05:00
|
|
|
GncOwner *gncEntryGetBillTo (GncEntry *entry);
|
2001-11-23 23:35:08 -06:00
|
|
|
|
2008-08-01 11:02:07 -05:00
|
|
|
GncEntryPaymentType gncEntryGetBillPayment (const GncEntry* entry);
|
2004-05-07 00:11:49 -05:00
|
|
|
/** @} */
|
2002-09-14 00:32:37 -05:00
|
|
|
|
2002-05-18 15:10:27 -05:00
|
|
|
void gncEntryCopy (const GncEntry *src, GncEntry *dest);
|
|
|
|
|
2010-03-02 15:41:05 -06:00
|
|
|
/** @name Getting Values
|
2012-02-10 09:32:27 -06:00
|
|
|
*
|
|
|
|
* An entry has three important values:
|
|
|
|
* - entry value: the amount the merchant gets
|
|
|
|
* - tax value: the amount the government gets
|
|
|
|
* - discount value: the amount the customer saved
|
|
|
|
*
|
|
|
|
* These values can be retrieved in several variants. depending on
|
|
|
|
* how they will be used some sign reversals can be applied on
|
|
|
|
* the values:
|
|
|
|
* - Int value: the value as stored internally. No sign reversals will
|
|
|
|
* ever be done on this value
|
|
|
|
* - Doc value: the value as listed on the document. This is usually
|
|
|
|
* a positive value, unless the document was a
|
|
|
|
* negative invoice/bill or negative credit note.
|
|
|
|
* Since credit note entry values are stored negatively
|
|
|
|
* internally, they will be sign-reversed before returning
|
|
|
|
* them.
|
|
|
|
* - Bal value: the value as it will impact the balance. Customer
|
|
|
|
* invoices and vendor credit notes have a positive
|
|
|
|
* influence on the balance, so these values will be positive.
|
|
|
|
* For vendor bills and customer credit notes, the
|
|
|
|
* values will be negative.
|
|
|
|
*
|
|
|
|
* For tax there are TaxValue and TaxValues variants: the first one
|
|
|
|
* returns to total tax value for this entry, meaning the sum of all
|
|
|
|
* individual taxes. The second one returns a list of all the individual
|
|
|
|
* tax values for this entry. This list holds unrounded values only, there's
|
|
|
|
* no variant with rounded values.
|
|
|
|
*
|
2012-02-10 09:32:38 -06:00
|
|
|
* Note that this list may or may not be owned by the entry depending on the
|
|
|
|
* variant being called. If not owned by the entry, it should be freed with
|
|
|
|
* gncAccountValueDestroy.
|
|
|
|
*
|
|
|
|
* - gncEntryGetIntTaxValues returns a list owned by the entry.
|
|
|
|
* - gncEntryGetDocTaxValues returns a list NOT owned by the entry. It should be freed by the caller.
|
|
|
|
* - gncEntryGetBalTaxValues returns a list NOT owned by the entry. It should be freed by the caller.
|
2012-02-10 09:32:27 -06:00
|
|
|
*
|
|
|
|
* Finally, there are rounded and unrounded variants of most of
|
|
|
|
* these functions.
|
2005-11-01 21:32:36 -06:00
|
|
|
@{
|
|
|
|
*/
|
2006-10-15 14:02:05 -05:00
|
|
|
typedef GList AccountValueList;
|
2012-02-10 09:32:27 -06:00
|
|
|
gnc_numeric gncEntryGetIntValue (GncEntry *entry, gboolean round, gboolean is_cust_doc);
|
|
|
|
gnc_numeric gncEntryGetIntTaxValue (GncEntry *entry, gboolean round, gboolean is_cust_doc);
|
2012-02-10 09:32:38 -06:00
|
|
|
/** Careful: the returned list is managed by the entry, and will only be valid for a short time */
|
2012-02-10 09:32:27 -06:00
|
|
|
AccountValueList * gncEntryGetIntTaxValues (GncEntry *entry, gboolean is_cust_doc);
|
|
|
|
gnc_numeric gncEntryGetIntDiscountValue (GncEntry *entry, gboolean round, gboolean is_cust_doc);
|
|
|
|
|
|
|
|
gnc_numeric gncEntryGetDocValue (GncEntry *entry, gboolean round, gboolean is_cust_doc, gboolean is_cn);
|
|
|
|
gnc_numeric gncEntryGetDocTaxValue (GncEntry *entry, gboolean round, gboolean is_cust_doc, gboolean is_cn);
|
2012-02-10 09:32:38 -06:00
|
|
|
/** Careful: the returned list is NOT owned by the entry and should be freed by the caller */
|
2012-02-10 09:32:27 -06:00
|
|
|
AccountValueList * gncEntryGetDocTaxValues (GncEntry *entry, gboolean is_cust_doc, gboolean is_cn);
|
|
|
|
gnc_numeric gncEntryGetDocDiscountValue (GncEntry *entry, gboolean round, gboolean is_cust_doc, gboolean is_cn);
|
|
|
|
|
2012-02-10 09:32:38 -06:00
|
|
|
gnc_numeric gncEntryGetBalValue (GncEntry *entry, gboolean round, gboolean is_cust_doc);
|
|
|
|
gnc_numeric gncEntryGetBalTaxValue (GncEntry *entry, gboolean round, gboolean is_cust_doc);
|
|
|
|
/** Careful: the returned list is NOT owned by the entry and should be freed by the caller */
|
|
|
|
AccountValueList * gncEntryGetBalTaxValues (GncEntry *entry, gboolean is_cust_doc);
|
|
|
|
gnc_numeric gncEntryGetBalDiscountValue (GncEntry *entry, gboolean round, gboolean is_cust_doc);
|
2012-02-10 09:32:27 -06:00
|
|
|
|
|
|
|
/** Compute the Entry value, tax_value, and discount_value, based on
|
|
|
|
* the quantity, price, discount, tax_-table, and types. The value is
|
2002-06-16 00:11:33 -05:00
|
|
|
* the amount the merchant gets, the taxes are what the gov't gets,
|
2006-07-16 21:04:59 -05:00
|
|
|
* and the discount is how much the customer saved. The SCU is the
|
|
|
|
* target denominator of the value and tax -- it should be the
|
|
|
|
* account or commodity SCU of the target.
|
2002-06-16 00:11:33 -05:00
|
|
|
*
|
2012-02-10 09:32:27 -06:00
|
|
|
* The return values are NOT rounded.
|
|
|
|
*
|
|
|
|
* The tax_values list is owned by the entry and will be
|
|
|
|
* destroyed automatically, so use it quickly.
|
2002-01-12 22:25:55 -06:00
|
|
|
*/
|
2002-01-20 20:27:02 -06:00
|
|
|
void gncEntryComputeValue (gnc_numeric qty, gnc_numeric price,
|
2010-03-02 15:41:05 -06:00
|
|
|
const GncTaxTable *tax_table, gboolean tax_included,
|
|
|
|
gnc_numeric discount, GncAmountType discount_type,
|
|
|
|
GncDiscountHow discount_how, int SCU,
|
|
|
|
/* return values */
|
|
|
|
gnc_numeric *value, gnc_numeric *discount_value,
|
|
|
|
GList **tax_values);
|
2001-11-21 19:23:07 -06:00
|
|
|
|
2004-05-07 00:11:49 -05:00
|
|
|
/** @} */
|
|
|
|
|
2008-08-01 11:02:07 -05:00
|
|
|
GncOrder * gncEntryGetOrder (const GncEntry *entry);
|
|
|
|
GncInvoice * gncEntryGetInvoice (const GncEntry *entry);
|
|
|
|
GncInvoice * gncEntryGetBill (const GncEntry *entry);
|
2001-11-21 19:23:07 -06:00
|
|
|
|
2003-10-19 00:13:59 -05:00
|
|
|
/** Return a pointer to the instance gncEntry that is identified
|
2010-03-02 15:41:05 -06:00
|
|
|
* by the guid, and is residing in the book. Returns NULL if the
|
2003-10-19 00:13:59 -05:00
|
|
|
* instance can't be found.
|
|
|
|
* Equivalent function prototype is
|
2010-03-27 16:01:21 -05:00
|
|
|
* GncEntry * gncEntryLookup (QofBook *book, const GncGUID *guid);
|
2003-10-19 00:13:59 -05:00
|
|
|
*/
|
2010-03-27 16:01:21 -05:00
|
|
|
static inline GncEntry * gncEntryLookup (const QofBook *book, const GncGUID *guid)
|
2010-03-06 05:01:37 -06:00
|
|
|
{
|
|
|
|
QOF_BOOK_RETURN_ENTITY(book, guid, GNC_ID_ENTRY, GncEntry);
|
|
|
|
}
|
2001-11-21 19:23:07 -06:00
|
|
|
|
2008-08-01 11:02:07 -05:00
|
|
|
gboolean gncEntryIsOpen (const GncEntry *entry);
|
2002-11-03 14:21:42 -06:00
|
|
|
void gncEntryBeginEdit (GncEntry *entry);
|
2001-11-21 19:23:07 -06:00
|
|
|
void gncEntryCommitEdit (GncEntry *entry);
|
2008-08-01 11:02:07 -05:00
|
|
|
int gncEntryCompare (const GncEntry *a, const GncEntry *b);
|
2002-02-03 14:01:08 -06:00
|
|
|
|
2004-10-16 10:51:26 -05:00
|
|
|
#define ENTRY_DATE "date"
|
|
|
|
#define ENTRY_DATE_ENTERED "date-entered"
|
|
|
|
#define ENTRY_DESC "desc"
|
|
|
|
#define ENTRY_ACTION "action"
|
|
|
|
#define ENTRY_NOTES "notes"
|
|
|
|
#define ENTRY_QTY "qty"
|
|
|
|
|
|
|
|
#define ENTRY_IPRICE "iprice"
|
2005-11-01 21:32:36 -06:00
|
|
|
#define ENTRY_IACCT "invoice-account"
|
|
|
|
#define ENTRY_BACCT "bill-account"
|
2004-10-16 10:51:26 -05:00
|
|
|
#define ENTRY_BPRICE "bprice"
|
|
|
|
#define ENTRY_BILLABLE "billable?"
|
|
|
|
#define ENTRY_BILLTO "bill-to"
|
|
|
|
|
|
|
|
#define ENTRY_ORDER "order"
|
|
|
|
#define ENTRY_INVOICE "invoice"
|
|
|
|
#define ENTRY_BILL "bill"
|
|
|
|
|
|
|
|
#define ENTRY_INV_DISC_TYPE "discount-type"
|
|
|
|
#define ENTRY_INV_DISC_HOW "discount-method"
|
|
|
|
|
|
|
|
#define ENTRY_INV_TAXABLE "invoice-taxable"
|
|
|
|
#define ENTRY_BILL_TAXABLE "bill-taxable"
|
|
|
|
#define ENTRY_INV_TAX_INC "invoice-tax-included"
|
|
|
|
#define ENTRY_BILL_TAX_INC "bill-tax-included"
|
|
|
|
#define ENTRY_INV_DISCOUNT "invoice-discount"
|
|
|
|
#define ENTRY_BILL_PAY_TYPE "bill-payment-type"
|
|
|
|
|
2002-02-03 19:55:33 -06:00
|
|
|
|
2003-10-14 16:20:55 -05:00
|
|
|
/* deprecated functions, should be removed */
|
|
|
|
#define gncEntryGetGUID(x) qof_instance_get_guid(QOF_INSTANCE(x))
|
|
|
|
|
2001-11-21 19:23:07 -06:00
|
|
|
#endif /* GNC_ENTRY_H_ */
|
2004-05-07 00:11:49 -05:00
|
|
|
/** @} */
|
|
|
|
/** @} */
|