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
The door, it is fixed
[tpg/opendispense2.git]
/
src
/
cokebank.h
diff --git
a/src/cokebank.h
b/src/cokebank.h
index
e5a4389
..
c3c7c6f
100644
(file)
--- a/
src/cokebank.h
+++ b/
src/cokebank.h
@@
-17,8
+17,11
@@
#include <stdlib.h>
#define COKEBANK_SALES_ACCT ">sales" //!< Sales made into
#include <stdlib.h>
#define COKEBANK_SALES_ACCT ">sales" //!< Sales made into
-#define COKEBANK_DEBT_ACCT ">liability" //!< Credit taken out of
+#define COKEBANK_SALES_PREFIX ">sales:" //!< Sales made into
+#define COKEBANK_DEBT_ACCT ">countersum" //!< Credit taken out of
#define COKEBANK_FREE_ACCT ">freeitems" //!< ODay drink costs taken out of
#define COKEBANK_FREE_ACCT ">freeitems" //!< ODay drink costs taken out of
+#define COKEBANK_DONATE_ACCT ">donations" //!< Donations go here
+#define COKEBANK_GRAT_ACCR ">gratuities" //!< Coke runs and new users
/**
* \brief Account iterator opaque structure
/**
* \brief Account iterator opaque structure
@@
-135,7
+138,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