fix(server): correct "Liabilties" typo to "Liabilities" in balance sheet
The balance sheet rendered "Current Liabilties" in the Liabilities section because of a typo in the i18n key, the schema reference, the swagger example responses, and the generated SDK fixtures. Fixed all five locations so PDF/HTML/JSON renders all read "Current Liabilities". - packages/server/src/i18n/en/balance_sheet.json: rename key and value - packages/server/src/modules/FinancialStatements/modules/BalanceSheet/ BalanceSheetSchema.ts: update i18n key reference - packages/server/src/modules/FinancialStatements/modules/BalanceSheet/ BalanceSheet.swagger.ts: fix three example response strings - shared/sdk-ts/openapi.json + schema.ts: regenerate to match
This commit is contained in:
@@ -9,7 +9,7 @@
|
||||
"non_current_assets": "Non-Current Assets",
|
||||
"liabilities_and_equity": "Liabilities and Equity",
|
||||
"liabilities": "Liabilities",
|
||||
"current_liabilties": "Current Liabilties",
|
||||
"current_liabilities": "Current Liabilities",
|
||||
"long_term_liabilities": "Long-Term Liabilities",
|
||||
"non_current_liabilities": "Non-Current Liabilities",
|
||||
"equity": "Equity",
|
||||
|
||||
+3
-3
@@ -281,7 +281,7 @@ export const BalanceSheetResponseExample = {
|
||||
},
|
||||
children: [
|
||||
{
|
||||
name: 'Current Liabilties',
|
||||
name: 'Current Liabilities',
|
||||
id: 'CURRENT_LIABILITY',
|
||||
node_type: 'AGGREGATE',
|
||||
type: 'AGGREGATE',
|
||||
@@ -912,7 +912,7 @@ export const BalanceSheetTableResponseExample = {
|
||||
cells: [
|
||||
{
|
||||
key: 'name',
|
||||
value: 'Current Liabilties',
|
||||
value: 'Current Liabilities',
|
||||
},
|
||||
{
|
||||
key: 'total',
|
||||
@@ -1024,7 +1024,7 @@ export const BalanceSheetTableResponseExample = {
|
||||
cells: [
|
||||
{
|
||||
key: 'name',
|
||||
value: 'Total Current Liabilties',
|
||||
value: 'Total Current Liabilities',
|
||||
},
|
||||
{
|
||||
key: 'total',
|
||||
|
||||
+1
-1
@@ -88,7 +88,7 @@ export const getBalanceSheetSchema = () => [
|
||||
type: BALANCE_SHEET_SCHEMA_NODE_TYPE.AGGREGATE,
|
||||
children: [
|
||||
{
|
||||
name: 'balance_sheet.current_liabilties',
|
||||
name: 'balance_sheet.current_liabilities',
|
||||
id: BALANCE_SHEET_SCHEMA_NODE_ID.CURRENT_LIABILITY,
|
||||
type: BALANCE_SHEET_SCHEMA_NODE_TYPE.ACCOUNTS,
|
||||
accountsTypes: [
|
||||
|
||||
Reference in New Issue
Block a user