@classytic/ledger-bd 0.5.0 → 0.6.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +24 -0
- package/dist/index.d.mts +25 -3
- package/dist/index.mjs +299 -3
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,30 @@
|
|
|
3
3
|
Format based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
|
|
4
4
|
adhering to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
|
5
5
|
|
|
6
|
+
## [0.6.0] — 2026-07-11
|
|
7
|
+
|
|
8
|
+
### Added — PPE / fixed-asset codes for the assets module
|
|
9
|
+
|
|
10
|
+
Named constants in `BD_ACCOUNT_CODES` (`src/accounts/codes.ts`) for the
|
|
11
|
+
PPE ledger accounts used by `@classytic/assets`:
|
|
12
|
+
|
|
13
|
+
- **Asset categories** (with NBR straight-line depreciation rates from
|
|
14
|
+
SRO No.120-Law/Income Tax/2025): `PPE_BUILDING` 1315 (10%),
|
|
15
|
+
`PPE_FACTORY_BUILDING` 1314 (20%), `PPE_MACHINERY` 1322 (20%),
|
|
16
|
+
`PPE_FURNITURE` 1335 (10%), `PPE_VEHICLE` 1337 (20%),
|
|
17
|
+
`PPE_OFFICE_EQUIPMENT` 1333 (20%), `PPE_COMPUTER` 1334 (30%),
|
|
18
|
+
`PPE_MEDICAL_EQUIPMENT` 1347 (20%).
|
|
19
|
+
- **`ACCUMULATED_DEPRECIATION_PPE`** 1359 — contra-asset for all PPE
|
|
20
|
+
categories.
|
|
21
|
+
- **Depreciation expense codes** `DEPRECIATION_BUILDING` 6601 through
|
|
22
|
+
`DEPRECIATION_MEDICAL_EQUIPMENT` 6608 — one per PPE category, so
|
|
23
|
+
the depreciation journal entry can split by asset class.
|
|
24
|
+
- **`LOSS_ON_ASSET_DISPOSAL`** 6810 — disposal below book value.
|
|
25
|
+
|
|
26
|
+
These codes are already part of the BFRS chart of accounts shipped in
|
|
27
|
+
earlier versions; this release adds the named `BD_ACCOUNT_CODES` keys so
|
|
28
|
+
the assets engine can resolve them symbolically without hardcoding strings.
|
|
29
|
+
|
|
6
30
|
## [0.5.0] - 2026-07-06
|
|
7
31
|
|
|
8
32
|
Seven opt-in vertical extensions plus an NBR canonical reporting-code
|
package/dist/index.d.mts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { AccountType } from "@classytic/ledger";
|
|
1
|
+
import { AccountResolverConfig, AccountType } from "@classytic/ledger";
|
|
2
2
|
|
|
3
3
|
//#region src/accounts/assets.d.ts
|
|
4
4
|
declare const CURRENT_ASSETS: AccountType[];
|
|
@@ -366,11 +366,33 @@ declare const BD_ACCOUNT_CODES: {
|
|
|
366
366
|
*/
|
|
367
367
|
readonly BAD_DEBT_WRITTEN_OFF: "6702"; /** 6703 — Inventory Write-down / Obsolescence (slow-moving / expired). */
|
|
368
368
|
readonly OBSOLESCENCE: "6703"; /** 6711 — Inventory Shrinkage / Theft / Loss (audit shortfall). */
|
|
369
|
-
readonly SHRINKAGE: "6711";
|
|
369
|
+
readonly SHRINKAGE: "6711"; /** 1315 — Office Building (NBR depreciation: 10%). */
|
|
370
|
+
readonly PPE_BUILDING: "1315"; /** 1314 — Factory Building (NBR depreciation: 20%). */
|
|
371
|
+
readonly PPE_FACTORY_BUILDING: "1314"; /** 1322 — Plant & Machinery (NBR depreciation: 20%). */
|
|
372
|
+
readonly PPE_MACHINERY: "1322"; /** 1335 — Furniture & Fixtures (NBR depreciation: 10%). */
|
|
373
|
+
readonly PPE_FURNITURE: "1335"; /** 1337 — Motor Vehicles (cars) (NBR depreciation: 20%). */
|
|
374
|
+
readonly PPE_VEHICLE: "1337"; /** 1333 — Office Equipment (NBR depreciation: 20%). */
|
|
375
|
+
readonly PPE_OFFICE_EQUIPMENT: "1333"; /** 1334 — Computer & IT Equipment (NBR depreciation: 30%). */
|
|
376
|
+
readonly PPE_COMPUTER: "1334"; /** 1347 — Medical Equipment (NBR depreciation: 20%). */
|
|
377
|
+
readonly PPE_MEDICAL_EQUIPMENT: "1347"; /** 1359 — Accumulated Depreciation — PPE (contra-asset, all PPE). */
|
|
378
|
+
readonly ACCUMULATED_DEPRECIATION_PPE: "1359"; /** 6601 — Depreciation — Building. */
|
|
379
|
+
readonly DEPRECIATION_BUILDING: "6601"; /** 6602 — Depreciation — Factory Building. */
|
|
380
|
+
readonly DEPRECIATION_FACTORY_BUILDING: "6602"; /** 6603 — Depreciation — Plant & Machinery. */
|
|
381
|
+
readonly DEPRECIATION_MACHINERY: "6603"; /** 6604 — Depreciation — Furniture & Fixtures. */
|
|
382
|
+
readonly DEPRECIATION_FURNITURE: "6604"; /** 6605 — Depreciation — Vehicles. */
|
|
383
|
+
readonly DEPRECIATION_VEHICLE: "6605"; /** 6606 — Depreciation — Office Equipment. */
|
|
384
|
+
readonly DEPRECIATION_OFFICE_EQUIPMENT: "6606"; /** 6607 — Depreciation — Computer & IT. */
|
|
385
|
+
readonly DEPRECIATION_COMPUTER: "6607"; /** 6608 — Depreciation — Medical Equipment. */
|
|
386
|
+
readonly DEPRECIATION_MEDICAL_EQUIPMENT: "6608"; /** 6810 — Loss on Sale of Assets (disposal below book value). */
|
|
387
|
+
readonly LOSS_ON_ASSET_DISPOSAL: "6810"; /** 4304 — Profit on Sale of Fixed Assets (disposal above book value). */
|
|
388
|
+
readonly PROFIT_ON_ASSET_DISPOSAL: "4304";
|
|
370
389
|
};
|
|
371
390
|
type BDAccountCode = (typeof BD_ACCOUNT_CODES)[keyof typeof BD_ACCOUNT_CODES];
|
|
372
391
|
type BDAccountKey = keyof typeof BD_ACCOUNT_CODES;
|
|
373
392
|
//#endregion
|
|
393
|
+
//#region src/accounts/account-rules.d.ts
|
|
394
|
+
declare const BD_ACCOUNT_RULES: AccountResolverConfig;
|
|
395
|
+
//#endregion
|
|
374
396
|
//#region src/accounts/index.d.ts
|
|
375
397
|
/** Complete flat array of all BD account types + tax sub-accounts + group labels */
|
|
376
398
|
declare const BD_ACCOUNT_TYPES: readonly AccountType[];
|
|
@@ -498,4 +520,4 @@ declare const ALL_DIVISIONS: ("Dhaka" | "Chittagong" | "Rajshahi" | "Khulna" | "
|
|
|
498
520
|
*/
|
|
499
521
|
declare const bangladeshPack: import("@classytic/ledger").CountryPack;
|
|
500
522
|
//#endregion
|
|
501
|
-
export { ADMIN_EXPENSES, ALL_DIVISIONS, ALL_TAX_ACCOUNTS, ASSETS, BANKING_REVENUE, type BDAccountCode, type BDAccountKey, BD_ACCOUNT_CODES, BD_ACCOUNT_TYPES, BD_DIVISIONS, COGS, COST_OF_SERVICES, CURRENT_ASSETS, CURRENT_LIABILITIES, DEPRECIATION, DIRECT_LABOR, DIRECT_MATERIALS, DIVISIONS, EMPLOYEE_COSTS, EQUITY, EXPENSES, FINANCIAL_EXPENSES, INDUSTRY_REVENUE, LIABILITIES, MANUFACTURING_OVERHEAD, NGO_REVENUE, NON_CURRENT_ASSETS, NON_CURRENT_LIABILITIES, OTHER_INCOME, OTHER_OPERATING, PREMISES_COSTS, PROVISIONS, PURCHASES, REVENUE, SALES_REVENUE, SELLING_DISTRIBUTION, ALL_TAX_CODES as TAX_CODES, TAX_CODES_BY_DIVISION, TAX_EXPENSE, TAX_RECEIVABLE_ACCOUNTS, TDS_LIABILITY_ACCOUNTS, VAT_ASSET_ACCOUNTS, VAT_LIABILITY_ACCOUNTS, VDS_LIABILITY_ACCOUNTS, bangladeshPack, getTaxCodeDetails, mushakReturnTemplate };
|
|
523
|
+
export { ADMIN_EXPENSES, ALL_DIVISIONS, ALL_TAX_ACCOUNTS, ASSETS, BANKING_REVENUE, type BDAccountCode, type BDAccountKey, BD_ACCOUNT_CODES, BD_ACCOUNT_RULES, BD_ACCOUNT_TYPES, BD_DIVISIONS, COGS, COST_OF_SERVICES, CURRENT_ASSETS, CURRENT_LIABILITIES, DEPRECIATION, DIRECT_LABOR, DIRECT_MATERIALS, DIVISIONS, EMPLOYEE_COSTS, EQUITY, EXPENSES, FINANCIAL_EXPENSES, INDUSTRY_REVENUE, LIABILITIES, MANUFACTURING_OVERHEAD, NGO_REVENUE, NON_CURRENT_ASSETS, NON_CURRENT_LIABILITIES, OTHER_INCOME, OTHER_OPERATING, PREMISES_COSTS, PROVISIONS, PURCHASES, REVENUE, SALES_REVENUE, SELLING_DISTRIBUTION, ALL_TAX_CODES as TAX_CODES, TAX_CODES_BY_DIVISION, TAX_EXPENSE, TAX_RECEIVABLE_ACCOUNTS, TDS_LIABILITY_ACCOUNTS, VAT_ASSET_ACCOUNTS, VAT_LIABILITY_ACCOUNTS, VDS_LIABILITY_ACCOUNTS, bangladeshPack, getTaxCodeDetails, mushakReturnTemplate };
|
package/dist/index.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineCountryPack } from "@classytic/ledger";
|
|
1
|
+
import { ACCOUNT_PURPOSE, defineCountryPack } from "@classytic/ledger";
|
|
2
2
|
//#region src/accounts/assets.ts
|
|
3
3
|
const A$2 = "Balance Sheet-Asset";
|
|
4
4
|
const CURRENT_ASSETS = [
|
|
@@ -6670,7 +6670,303 @@ const BD_ACCOUNT_CODES = {
|
|
|
6670
6670
|
/** 6703 — Inventory Write-down / Obsolescence (slow-moving / expired). */
|
|
6671
6671
|
OBSOLESCENCE: "6703",
|
|
6672
6672
|
/** 6711 — Inventory Shrinkage / Theft / Loss (audit shortfall). */
|
|
6673
|
-
SHRINKAGE: "6711"
|
|
6673
|
+
SHRINKAGE: "6711",
|
|
6674
|
+
/** 1315 — Office Building (NBR depreciation: 10%). */
|
|
6675
|
+
PPE_BUILDING: "1315",
|
|
6676
|
+
/** 1314 — Factory Building (NBR depreciation: 20%). */
|
|
6677
|
+
PPE_FACTORY_BUILDING: "1314",
|
|
6678
|
+
/** 1322 — Plant & Machinery (NBR depreciation: 20%). */
|
|
6679
|
+
PPE_MACHINERY: "1322",
|
|
6680
|
+
/** 1335 — Furniture & Fixtures (NBR depreciation: 10%). */
|
|
6681
|
+
PPE_FURNITURE: "1335",
|
|
6682
|
+
/** 1337 — Motor Vehicles (cars) (NBR depreciation: 20%). */
|
|
6683
|
+
PPE_VEHICLE: "1337",
|
|
6684
|
+
/** 1333 — Office Equipment (NBR depreciation: 20%). */
|
|
6685
|
+
PPE_OFFICE_EQUIPMENT: "1333",
|
|
6686
|
+
/** 1334 — Computer & IT Equipment (NBR depreciation: 30%). */
|
|
6687
|
+
PPE_COMPUTER: "1334",
|
|
6688
|
+
/** 1347 — Medical Equipment (NBR depreciation: 20%). */
|
|
6689
|
+
PPE_MEDICAL_EQUIPMENT: "1347",
|
|
6690
|
+
/** 1359 — Accumulated Depreciation — PPE (contra-asset, all PPE). */
|
|
6691
|
+
ACCUMULATED_DEPRECIATION_PPE: "1359",
|
|
6692
|
+
/** 6601 — Depreciation — Building. */
|
|
6693
|
+
DEPRECIATION_BUILDING: "6601",
|
|
6694
|
+
/** 6602 — Depreciation — Factory Building. */
|
|
6695
|
+
DEPRECIATION_FACTORY_BUILDING: "6602",
|
|
6696
|
+
/** 6603 — Depreciation — Plant & Machinery. */
|
|
6697
|
+
DEPRECIATION_MACHINERY: "6603",
|
|
6698
|
+
/** 6604 — Depreciation — Furniture & Fixtures. */
|
|
6699
|
+
DEPRECIATION_FURNITURE: "6604",
|
|
6700
|
+
/** 6605 — Depreciation — Vehicles. */
|
|
6701
|
+
DEPRECIATION_VEHICLE: "6605",
|
|
6702
|
+
/** 6606 — Depreciation — Office Equipment. */
|
|
6703
|
+
DEPRECIATION_OFFICE_EQUIPMENT: "6606",
|
|
6704
|
+
/** 6607 — Depreciation — Computer & IT. */
|
|
6705
|
+
DEPRECIATION_COMPUTER: "6607",
|
|
6706
|
+
/** 6608 — Depreciation — Medical Equipment. */
|
|
6707
|
+
DEPRECIATION_MEDICAL_EQUIPMENT: "6608",
|
|
6708
|
+
/** 6810 — Loss on Sale of Assets (disposal below book value). */
|
|
6709
|
+
LOSS_ON_ASSET_DISPOSAL: "6810",
|
|
6710
|
+
/** 4304 — Profit on Sale of Fixed Assets (disposal above book value). */
|
|
6711
|
+
PROFIT_ON_ASSET_DISPOSAL: "4304"
|
|
6712
|
+
};
|
|
6713
|
+
//#endregion
|
|
6714
|
+
//#region src/accounts/account-rules.ts
|
|
6715
|
+
/**
|
|
6716
|
+
* Bangladesh default account-resolution ruleset.
|
|
6717
|
+
*
|
|
6718
|
+
* Ships the "smart defaults" a BD deployment gets for free: which expense
|
|
6719
|
+
* account a bill line lands on from its description keywords or a picked
|
|
6720
|
+
* category, which cash/clearing account a payment method maps to, and which
|
|
6721
|
+
* inventory account a stock type uses. Consumed by `createAccountResolver`
|
|
6722
|
+
* (`@classytic/ledger`); the host layers DB-configured overrides on top with
|
|
6723
|
+
* `mergeAccountConfig`, and any line can still carry an explicit accountCode
|
|
6724
|
+
* that bypasses resolution entirely (the accountant escape hatch).
|
|
6725
|
+
*
|
|
6726
|
+
* These are DEFAULTS, not law — every rule is data a deployment can override
|
|
6727
|
+
* without a code change. The matcher is the primitives condition DSL, so a
|
|
6728
|
+
* keyword rule reads `keywords contains 'poster'`.
|
|
6729
|
+
*
|
|
6730
|
+
* Resolution CONTEXT the host is expected to pass (all optional):
|
|
6731
|
+
* - `keywords: string[]` — normalized tokens from the line description
|
|
6732
|
+
* - `category: string` — an explicit user-picked expense category
|
|
6733
|
+
* - `paymentMethod: string`— for the `cash` purpose (cash/card/bkash/bank…)
|
|
6734
|
+
* - `inventoryType: string`— for the `inventory` purpose
|
|
6735
|
+
*/
|
|
6736
|
+
/**
|
|
6737
|
+
* An expense keyword rule: matches when the line's `keywords` array contains
|
|
6738
|
+
* ANY of `words`. Keyword rules sit at priority 10 — above category rules (5)
|
|
6739
|
+
* so a specific word ("poster") beats a broad category ("marketing").
|
|
6740
|
+
*/
|
|
6741
|
+
function keywordExpense(id, words, use, label) {
|
|
6742
|
+
return {
|
|
6743
|
+
id,
|
|
6744
|
+
purpose: ACCOUNT_PURPOSE.EXPENSE,
|
|
6745
|
+
priority: 10,
|
|
6746
|
+
use,
|
|
6747
|
+
label,
|
|
6748
|
+
when: { any: words.map((w) => ({
|
|
6749
|
+
field: "keywords",
|
|
6750
|
+
op: "contains",
|
|
6751
|
+
value: w
|
|
6752
|
+
})) }
|
|
6753
|
+
};
|
|
6754
|
+
}
|
|
6755
|
+
/** A category rule: matches an explicit picked category (priority 5). */
|
|
6756
|
+
function categoryExpense(id, category, use, label) {
|
|
6757
|
+
return {
|
|
6758
|
+
id,
|
|
6759
|
+
purpose: ACCOUNT_PURPOSE.EXPENSE,
|
|
6760
|
+
priority: 5,
|
|
6761
|
+
use,
|
|
6762
|
+
label,
|
|
6763
|
+
when: {
|
|
6764
|
+
field: "category",
|
|
6765
|
+
op: "eq",
|
|
6766
|
+
value: category
|
|
6767
|
+
}
|
|
6768
|
+
};
|
|
6769
|
+
}
|
|
6770
|
+
const BD_ACCOUNT_RULES = {
|
|
6771
|
+
rules: [
|
|
6772
|
+
keywordExpense("bd-print", [
|
|
6773
|
+
"print",
|
|
6774
|
+
"printing",
|
|
6775
|
+
"poster",
|
|
6776
|
+
"card",
|
|
6777
|
+
"cards",
|
|
6778
|
+
"stationery",
|
|
6779
|
+
"flyer",
|
|
6780
|
+
"banner",
|
|
6781
|
+
"brochure",
|
|
6782
|
+
"invitation"
|
|
6783
|
+
], "6301", "Printing & Stationery"),
|
|
6784
|
+
keywordExpense("bd-venue", [
|
|
6785
|
+
"hall",
|
|
6786
|
+
"venue",
|
|
6787
|
+
"event",
|
|
6788
|
+
"entertainment",
|
|
6789
|
+
"hospitality",
|
|
6790
|
+
"catering",
|
|
6791
|
+
"conference",
|
|
6792
|
+
"seminar",
|
|
6793
|
+
"reception"
|
|
6794
|
+
], "6803", "Entertainment / Hospitality"),
|
|
6795
|
+
keywordExpense("bd-digital", [
|
|
6796
|
+
"facebook",
|
|
6797
|
+
"google",
|
|
6798
|
+
"seo",
|
|
6799
|
+
"digital",
|
|
6800
|
+
"social",
|
|
6801
|
+
"boost",
|
|
6802
|
+
"adwords",
|
|
6803
|
+
"meta"
|
|
6804
|
+
], "6402", "Digital Marketing"),
|
|
6805
|
+
keywordExpense("bd-advert", [
|
|
6806
|
+
"advert",
|
|
6807
|
+
"advertisement",
|
|
6808
|
+
"publicity",
|
|
6809
|
+
"promo",
|
|
6810
|
+
"promotion",
|
|
6811
|
+
"campaign",
|
|
6812
|
+
"billboard",
|
|
6813
|
+
"signage"
|
|
6814
|
+
], "6401", "Advertisement & Publicity"),
|
|
6815
|
+
keywordExpense("bd-rent", ["rent", "lease"], "6201", "Office Rent"),
|
|
6816
|
+
keywordExpense("bd-repair", [
|
|
6817
|
+
"repair",
|
|
6818
|
+
"maintenance",
|
|
6819
|
+
"servicing",
|
|
6820
|
+
"refurbish"
|
|
6821
|
+
], "6207", "Office Repairs & Maintenance"),
|
|
6822
|
+
keywordExpense("bd-legal", [
|
|
6823
|
+
"legal",
|
|
6824
|
+
"lawyer",
|
|
6825
|
+
"professional",
|
|
6826
|
+
"consultant",
|
|
6827
|
+
"consulting",
|
|
6828
|
+
"audit",
|
|
6829
|
+
"accounting",
|
|
6830
|
+
"notary"
|
|
6831
|
+
], "6309", "Legal Fee & Professional Charges"),
|
|
6832
|
+
keywordExpense("bd-travel", [
|
|
6833
|
+
"travel",
|
|
6834
|
+
"conveyance",
|
|
6835
|
+
"taxi",
|
|
6836
|
+
"uber",
|
|
6837
|
+
"pathao",
|
|
6838
|
+
"transport",
|
|
6839
|
+
"fare",
|
|
6840
|
+
"ticket"
|
|
6841
|
+
], "6414", "Travel & Conveyance"),
|
|
6842
|
+
keywordExpense("bd-fuel", [
|
|
6843
|
+
"fuel",
|
|
6844
|
+
"petrol",
|
|
6845
|
+
"diesel",
|
|
6846
|
+
"octane",
|
|
6847
|
+
"lubricant"
|
|
6848
|
+
], "6807", "Fuel & Lubricants"),
|
|
6849
|
+
categoryExpense("bd-cat-printing", "printing", "6301", "Printing & Stationery"),
|
|
6850
|
+
categoryExpense("bd-cat-venue", "venue", "6803", "Entertainment / Hospitality"),
|
|
6851
|
+
categoryExpense("bd-cat-marketing", "marketing", "6401", "Advertisement & Publicity"),
|
|
6852
|
+
categoryExpense("bd-cat-rent", "rent", "6201", "Office Rent"),
|
|
6853
|
+
categoryExpense("bd-cat-repairs", "repairs", "6207", "Office Repairs & Maintenance"),
|
|
6854
|
+
categoryExpense("bd-cat-professional", "professional", "6309", "Legal Fee & Professional Charges"),
|
|
6855
|
+
categoryExpense("bd-cat-travel", "travel", "6414", "Travel & Conveyance"),
|
|
6856
|
+
categoryExpense("bd-cat-fuel", "fuel", "6807", "Fuel & Lubricants"),
|
|
6857
|
+
{
|
|
6858
|
+
id: "bd-pay-cash",
|
|
6859
|
+
purpose: ACCOUNT_PURPOSE.CASH,
|
|
6860
|
+
priority: 10,
|
|
6861
|
+
use: BD_ACCOUNT_CODES.PETTY_CASH,
|
|
6862
|
+
label: "Cash in Hand",
|
|
6863
|
+
when: {
|
|
6864
|
+
field: "paymentMethod",
|
|
6865
|
+
op: "eq",
|
|
6866
|
+
value: "cash"
|
|
6867
|
+
}
|
|
6868
|
+
},
|
|
6869
|
+
{
|
|
6870
|
+
id: "bd-pay-card",
|
|
6871
|
+
purpose: ACCOUNT_PURPOSE.CASH,
|
|
6872
|
+
priority: 10,
|
|
6873
|
+
use: BD_ACCOUNT_CODES.GATEWAY_CLEARING,
|
|
6874
|
+
label: "Gateway Clearing",
|
|
6875
|
+
when: {
|
|
6876
|
+
field: "paymentMethod",
|
|
6877
|
+
op: "in",
|
|
6878
|
+
value: [
|
|
6879
|
+
"card",
|
|
6880
|
+
"stripe",
|
|
6881
|
+
"sslcommerz",
|
|
6882
|
+
"visa",
|
|
6883
|
+
"mastercard"
|
|
6884
|
+
]
|
|
6885
|
+
}
|
|
6886
|
+
},
|
|
6887
|
+
{
|
|
6888
|
+
id: "bd-pay-mfs",
|
|
6889
|
+
purpose: ACCOUNT_PURPOSE.CASH,
|
|
6890
|
+
priority: 10,
|
|
6891
|
+
use: BD_ACCOUNT_CODES.MOBILE_MONEY_MERCHANT,
|
|
6892
|
+
label: "Mobile Money",
|
|
6893
|
+
when: {
|
|
6894
|
+
field: "paymentMethod",
|
|
6895
|
+
op: "in",
|
|
6896
|
+
value: [
|
|
6897
|
+
"bkash",
|
|
6898
|
+
"nagad",
|
|
6899
|
+
"rocket",
|
|
6900
|
+
"mfs",
|
|
6901
|
+
"mobile",
|
|
6902
|
+
"upay"
|
|
6903
|
+
]
|
|
6904
|
+
}
|
|
6905
|
+
},
|
|
6906
|
+
{
|
|
6907
|
+
id: "bd-pay-bank",
|
|
6908
|
+
purpose: ACCOUNT_PURPOSE.CASH,
|
|
6909
|
+
priority: 10,
|
|
6910
|
+
use: BD_ACCOUNT_CODES.CASH,
|
|
6911
|
+
label: "Cash at Bank",
|
|
6912
|
+
when: {
|
|
6913
|
+
field: "paymentMethod",
|
|
6914
|
+
op: "in",
|
|
6915
|
+
value: [
|
|
6916
|
+
"bank",
|
|
6917
|
+
"bank_transfer",
|
|
6918
|
+
"cheque",
|
|
6919
|
+
"eft",
|
|
6920
|
+
"rtgs"
|
|
6921
|
+
]
|
|
6922
|
+
}
|
|
6923
|
+
},
|
|
6924
|
+
{
|
|
6925
|
+
id: "bd-inv-raw",
|
|
6926
|
+
purpose: ACCOUNT_PURPOSE.INVENTORY,
|
|
6927
|
+
priority: 10,
|
|
6928
|
+
use: BD_ACCOUNT_CODES.RAW_MATERIALS,
|
|
6929
|
+
label: "Raw Materials",
|
|
6930
|
+
when: {
|
|
6931
|
+
field: "inventoryType",
|
|
6932
|
+
op: "eq",
|
|
6933
|
+
value: "raw_materials"
|
|
6934
|
+
}
|
|
6935
|
+
},
|
|
6936
|
+
{
|
|
6937
|
+
id: "bd-inv-finished",
|
|
6938
|
+
purpose: ACCOUNT_PURPOSE.INVENTORY,
|
|
6939
|
+
priority: 10,
|
|
6940
|
+
use: BD_ACCOUNT_CODES.FINISHED_GOODS,
|
|
6941
|
+
label: "Finished Goods",
|
|
6942
|
+
when: {
|
|
6943
|
+
field: "inventoryType",
|
|
6944
|
+
op: "eq",
|
|
6945
|
+
value: "finished_goods"
|
|
6946
|
+
}
|
|
6947
|
+
},
|
|
6948
|
+
{
|
|
6949
|
+
id: "bd-inv-merch",
|
|
6950
|
+
purpose: ACCOUNT_PURPOSE.INVENTORY,
|
|
6951
|
+
priority: 10,
|
|
6952
|
+
use: BD_ACCOUNT_CODES.MERCHANDISE,
|
|
6953
|
+
label: "Merchandise",
|
|
6954
|
+
when: {
|
|
6955
|
+
field: "inventoryType",
|
|
6956
|
+
op: "eq",
|
|
6957
|
+
value: "merchandise"
|
|
6958
|
+
}
|
|
6959
|
+
}
|
|
6960
|
+
],
|
|
6961
|
+
defaults: {
|
|
6962
|
+
[ACCOUNT_PURPOSE.EXPENSE]: "6822",
|
|
6963
|
+
[ACCOUNT_PURPOSE.COGS]: BD_ACCOUNT_CODES.COGS_MATERIALS,
|
|
6964
|
+
[ACCOUNT_PURPOSE.REVENUE]: BD_ACCOUNT_CODES.SALES_REVENUE,
|
|
6965
|
+
[ACCOUNT_PURPOSE.RECEIVABLE]: BD_ACCOUNT_CODES.AR,
|
|
6966
|
+
[ACCOUNT_PURPOSE.PAYABLE]: BD_ACCOUNT_CODES.AP,
|
|
6967
|
+
[ACCOUNT_PURPOSE.CASH]: BD_ACCOUNT_CODES.CASH,
|
|
6968
|
+
[ACCOUNT_PURPOSE.INVENTORY]: BD_ACCOUNT_CODES.MERCHANDISE
|
|
6969
|
+
}
|
|
6674
6970
|
};
|
|
6675
6971
|
//#endregion
|
|
6676
6972
|
//#region src/accounts/index.ts
|
|
@@ -7607,4 +7903,4 @@ const bangladeshPack = defineCountryPack({
|
|
|
7607
7903
|
]
|
|
7608
7904
|
});
|
|
7609
7905
|
//#endregion
|
|
7610
|
-
export { ADMIN_EXPENSES, ALL_DIVISIONS, ALL_TAX_ACCOUNTS, ASSETS, BANKING_REVENUE, BD_ACCOUNT_CODES, BD_ACCOUNT_TYPES, BD_DIVISIONS, COGS, COST_OF_SERVICES, CURRENT_ASSETS, CURRENT_LIABILITIES, DEPRECIATION, DIRECT_LABOR, DIRECT_MATERIALS, DIVISIONS, EMPLOYEE_COSTS, EQUITY, EXPENSES, FINANCIAL_EXPENSES, INDUSTRY_REVENUE, LIABILITIES, MANUFACTURING_OVERHEAD, NGO_REVENUE, NON_CURRENT_ASSETS, NON_CURRENT_LIABILITIES, OTHER_INCOME, OTHER_OPERATING, PREMISES_COSTS, PROVISIONS, PURCHASES, REVENUE, SALES_REVENUE, SELLING_DISTRIBUTION, ALL_TAX_CODES as TAX_CODES, TAX_CODES_BY_DIVISION, TAX_EXPENSE, TAX_RECEIVABLE_ACCOUNTS, TDS_LIABILITY_ACCOUNTS, VAT_ASSET_ACCOUNTS, VAT_LIABILITY_ACCOUNTS, VDS_LIABILITY_ACCOUNTS, bangladeshPack, getTaxCodeDetails, mushakReturnTemplate };
|
|
7906
|
+
export { ADMIN_EXPENSES, ALL_DIVISIONS, ALL_TAX_ACCOUNTS, ASSETS, BANKING_REVENUE, BD_ACCOUNT_CODES, BD_ACCOUNT_RULES, BD_ACCOUNT_TYPES, BD_DIVISIONS, COGS, COST_OF_SERVICES, CURRENT_ASSETS, CURRENT_LIABILITIES, DEPRECIATION, DIRECT_LABOR, DIRECT_MATERIALS, DIVISIONS, EMPLOYEE_COSTS, EQUITY, EXPENSES, FINANCIAL_EXPENSES, INDUSTRY_REVENUE, LIABILITIES, MANUFACTURING_OVERHEAD, NGO_REVENUE, NON_CURRENT_ASSETS, NON_CURRENT_LIABILITIES, OTHER_INCOME, OTHER_OPERATING, PREMISES_COSTS, PROVISIONS, PURCHASES, REVENUE, SALES_REVENUE, SELLING_DISTRIBUTION, ALL_TAX_CODES as TAX_CODES, TAX_CODES_BY_DIVISION, TAX_EXPENSE, TAX_RECEIVABLE_ACCOUNTS, TDS_LIABILITY_ACCOUNTS, VAT_ASSET_ACCOUNTS, VAT_LIABILITY_ACCOUNTS, VDS_LIABILITY_ACCOUNTS, bangladeshPack, getTaxCodeDetails, mushakReturnTemplate };
|
package/package.json
CHANGED