mirror of
https://github.com/Gnucash/gnucash.git
synced 2025-02-25 18:55:30 -06:00
Remove the incomplete book-currency code.
Not everything from the 6 Book-Currency commits is removed: Switching the Num and split-action fields and restricting edits of transactions older than n days were included and those changes are left in place. Some other partly-implemented features were also part of these commits and were removed: Options for setting a default capital gains account and currency, completion of the LIFO cap-gains policy, and creation of a list of cap-gains policies. If any of these are to be revived they should each be done in a separate feature branch and submitted via Github pull request for a code review before merging; a design discussion on gnucash-devel before restarting work is also advisable.
This commit is contained in:
@@ -43,24 +43,6 @@ extern "C" {
|
||||
|
||||
typedef struct gncpolicy_s GNCPolicy;
|
||||
|
||||
/** Valid Policy List
|
||||
* Provides a glist of implemented policies.
|
||||
*
|
||||
* List must be freed with g_list_free().
|
||||
*/
|
||||
GList * gnc_get_valid_policy_list (void);
|
||||
|
||||
/** Valid Policy Name
|
||||
* Uses the Valid Policy List to determine if a policy name is valid.
|
||||
*/
|
||||
gboolean gnc_valid_policy_name (const gchar *policy_name);
|
||||
|
||||
const char *PolicyGetName (const GNCPolicy *pcy);
|
||||
|
||||
const char *PolicyGetDescription (const GNCPolicy *pcy);
|
||||
|
||||
const char *PolicyGetHint (const GNCPolicy *pcy);
|
||||
|
||||
/** First-in, First-out Policy
|
||||
* This policy will create FIFO Lots. FIFO Lots have the following
|
||||
* properties:
|
||||
@@ -69,24 +51,10 @@ const char *PolicyGetHint (const GNCPolicy *pcy);
|
||||
* -- Splits are added to the lot in date order, with earliest splits
|
||||
* added first.
|
||||
* -- All splits in the lot share the same transaction currency as
|
||||
* the split that opened the lot (if book-currency book option
|
||||
* selected, this will always be book currency).
|
||||
* the split that opened the lot
|
||||
*/
|
||||
GNCPolicy *xaccGetFIFOPolicy (void);
|
||||
|
||||
/** Last-in, Last-out Policy
|
||||
* This policy will create LIFO Lots. LIFO Lots have the following
|
||||
* properties:
|
||||
* -- The lot is started with the latest posted split that isn't
|
||||
* a part of another lot already.
|
||||
* -- Splits are added to the lot in date order, with latest splits
|
||||
* added first.
|
||||
* -- All splits in the lot share the same transaction currency as
|
||||
* the split that opened the lot (if book-currency book option
|
||||
* selected, this will always be book currency).
|
||||
*/
|
||||
GNCPolicy *xaccGetLIFOPolicy (void);
|
||||
|
||||
#ifdef __cplusplus
|
||||
} /* extern "C" */
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user