-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: integrate chart of accounts into credit facility (#1187)
* refactor: add 'ChartOfAccountCreationDetails' type * refactor: abstract create_control_sub_account function * chore: add credit facility seed steps * refactor: move app types to app-primitives modules * chore: use chart of accounts create in initiate * fix: fetch chart from in-progress db op
- Loading branch information
Showing
14 changed files
with
518 additions
and
174 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,64 @@ | ||
pub(super) const LANA_JOURNAL_CODE: &str = "LANA_BANK_JOURNAL"; | ||
|
||
pub(super) const CHART_REF: &str = "primary-chart"; | ||
|
||
pub(super) const DEPOSITS_CONTROL_ACCOUNT_REF: &str = "deposits"; | ||
pub(super) const DEPOSITS_CONTROL_ACCOUNT_NAME: &str = "Deposits"; | ||
pub(super) const DEPOSITS_CONTROL_SUB_ACCOUNT_REF: &str = "deposits-user"; | ||
pub(super) const DEPOSITS_CONTROL_SUB_ACCOUNT_NAME: &str = "User Deposits"; | ||
|
||
pub(super) const CREDIT_FACILITIES_DISBURSED_RECEIVABLE_CONTROL_ACCOUNT_REF: &str = | ||
"credit-facilities-disbursed-receivable"; | ||
pub(super) const CREDIT_FACILITIES_DISBURSED_RECEIVABLE_CONTROL_ACCOUNT_NAME: &str = | ||
"Credit Facilities Disbursed Receivable"; | ||
pub(super) const CREDIT_FACILITIES_DISBURSED_RECEIVABLE_CONTROL_SUB_ACCOUNT_REF: &str = | ||
"fixed-term-credit-facilities-disbursed-receivable"; | ||
pub(super) const CREDIT_FACILITIES_DISBURSED_RECEIVABLE_CONTROL_SUB_ACCOUNT_NAME: &str = | ||
"Fixed Term Credit Facilities Disbursed Receivable"; // Assets | ||
|
||
pub(super) const CREDIT_FACILITIES_INTEREST_RECEIVABLE_CONTROL_ACCOUNT_REF: &str = | ||
"credit-facilities-interest-receivable"; | ||
pub(super) const CREDIT_FACILITIES_INTEREST_RECEIVABLE_CONTROL_ACCOUNT_NAME: &str = | ||
"Credit Facilities Interest Receivable"; | ||
pub(super) const CREDIT_FACILITIES_INTEREST_RECEIVABLE_CONTROL_SUB_ACCOUNT_REF: &str = | ||
"fixed-term-credit-facilities-interest-receivable"; | ||
pub(super) const CREDIT_FACILITIES_INTEREST_RECEIVABLE_CONTROL_SUB_ACCOUNT_NAME: &str = | ||
"Fixed Term Credit Facilities Interest Receivable"; // Assets | ||
|
||
pub(super) const CREDIT_FACILITIES_INTEREST_INCOME_CONTROL_ACCOUNT_REF: &str = | ||
"credit-facilities-interest-income"; | ||
pub(super) const CREDIT_FACILITIES_INTEREST_INCOME_CONTROL_ACCOUNT_NAME: &str = | ||
"Credit Facilities Interest Income"; | ||
pub(super) const CREDIT_FACILITIES_INTEREST_INCOME_CONTROL_SUB_ACCOUNT_REF: &str = | ||
"fixed-term-credit-facilities-interest-income"; | ||
pub(super) const CREDIT_FACILITIES_INTEREST_INCOME_CONTROL_SUB_ACCOUNT_NAME: &str = | ||
"Fixed Term Credit Facilities Interest Income"; // Revenue | ||
|
||
pub(super) const CREDIT_FACILITIES_FEE_INCOME_CONTROL_ACCOUNT_REF: &str = | ||
"credit-facilities-fee-income"; | ||
pub(super) const CREDIT_FACILITIES_FEE_INCOME_CONTROL_ACCOUNT_NAME: &str = | ||
"Credit Facilities Fee Income"; | ||
pub(super) const CREDIT_FACILITIES_FEE_INCOME_CONTROL_SUB_ACCOUNT_REF: &str = | ||
"fixed-term-credit-facilities-fee-income"; | ||
pub(super) const CREDIT_FACILITIES_FEE_INCOME_CONTROL_SUB_ACCOUNT_NAME: &str = | ||
"Fixed Term Credit Facilities Fee Income"; // Revenue | ||
|
||
pub(super) const OBS_CHART_REF: &str = "off-balance-sheet-chart"; | ||
|
||
pub(super) const CREDIT_FACILITIES_COLLATERAL_CONTROL_ACCOUNT_REF: &str = | ||
"credit-facilities-collateral"; | ||
pub(super) const CREDIT_FACILITIES_COLLATERAL_CONTROL_ACCOUNT_NAME: &str = | ||
"Credit Facilities Collateral"; // Liabilities | ||
pub(super) const CREDIT_FACILITIES_COLLATERAL_CONTROL_SUB_ACCOUNT_REF: &str = | ||
"fixed-term-credit-facilities-collateral"; | ||
pub(super) const CREDIT_FACILITIES_COLLATERAL_CONTROL_SUB_ACCOUNT_NAME: &str = | ||
"Fixed Term Credit Facilities Collateral"; // OBS Liabilities | ||
|
||
pub(super) const CREDIT_FACILITIES_FACILITY_CONTROL_ACCOUNT_REF: &str = | ||
"credit-facilities-facility"; | ||
pub(super) const CREDIT_FACILITIES_FACILITY_CONTROL_ACCOUNT_NAME: &str = | ||
"Credit Facilities Facility Available"; | ||
pub(super) const CREDIT_FACILITIES_FACILITY_CONTROL_SUB_ACCOUNT_REF: &str = | ||
"fixed-term-credit-facilities-facility"; | ||
pub(super) const CREDIT_FACILITIES_FACILITY_CONTROL_SUB_ACCOUNT_NAME: &str = | ||
"Fixed Term Credit Facilities Facility Available"; // OBS Assets |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.