git.ucc.asn.au
/
tpg
/
opendispense2.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Extra help info, fixed logging for dispense failures, possible fix for logging errors
[tpg/opendispense2.git]
/
src
/
cokebank.h
diff --git
a/src/cokebank.h
b/src/cokebank.h
index
e5a4389
..
45d1304
100644
(file)
--- a/
src/cokebank.h
+++ b/
src/cokebank.h
@@
-17,8
+17,10
@@
#include <stdlib.h>
#define COKEBANK_SALES_ACCT ">sales" //!< Sales made into
#include <stdlib.h>
#define COKEBANK_SALES_ACCT ">sales" //!< Sales made into
+#define COKEBANK_SALES_PREFIX ">sales:" //!< Sales made into
#define COKEBANK_DEBT_ACCT ">liability" //!< Credit taken out of
#define COKEBANK_FREE_ACCT ">freeitems" //!< ODay drink costs taken out of
#define COKEBANK_DEBT_ACCT ">liability" //!< Credit taken out of
#define COKEBANK_FREE_ACCT ">freeitems" //!< ODay drink costs taken out of
+#define COKEBANK_DONATE_ACCT ">donations" //!< Donations go here
/**
* \brief Account iterator opaque structure
/**
* \brief Account iterator opaque structure
@@
-135,7
+137,7
@@
extern char *Bank_GetAcctName(int AcctID);
* \param Name Name to search for
* \return ID of the account, or -1 if not found
*/
* \param Name Name to search for
* \return ID of the account, or -1 if not found
*/
-extern int Bank_GetAcctByName(const char *Name);
+extern int Bank_GetAcctByName(const char *Name
, int bCreate
);
/**
* \brief Create a new account
* \param Name Name for the new account (if NULL, an anoymous account is created)
/**
* \brief Create a new account
* \param Name Name for the new account (if NULL, an anoymous account is created)
UCC
git Repository :: git.ucc.asn.au