@goweekdays/core 2.15.2 → 2.15.3
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 +6 -0
- package/dist/index.d.ts +27 -4
- package/dist/index.js +463 -36
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +463 -36
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
package/dist/index.d.ts
CHANGED
|
@@ -1879,6 +1879,22 @@ declare function useChartOfAccountRepo(): {
|
|
|
1879
1879
|
updateStatusById: (_id: string | ObjectId, status: string) => Promise<string>;
|
|
1880
1880
|
countByPath: (path: string) => Promise<number>;
|
|
1881
1881
|
updateChildrenCountById: (_id: string | ObjectId, increment: number, session?: ClientSession) => Promise<string>;
|
|
1882
|
+
getTrialBalance: (options: {
|
|
1883
|
+
org: string | ObjectId;
|
|
1884
|
+
fiscalYear: number;
|
|
1885
|
+
from?: number;
|
|
1886
|
+
to?: number;
|
|
1887
|
+
limit?: number;
|
|
1888
|
+
page?: number;
|
|
1889
|
+
}) => Promise<{}>;
|
|
1890
|
+
getBalanceSheet: (options: {
|
|
1891
|
+
org: string | ObjectId;
|
|
1892
|
+
fiscalYear: number;
|
|
1893
|
+
from?: number;
|
|
1894
|
+
to?: number;
|
|
1895
|
+
limit?: number;
|
|
1896
|
+
page?: number;
|
|
1897
|
+
}) => Promise<{}>;
|
|
1882
1898
|
};
|
|
1883
1899
|
|
|
1884
1900
|
declare function useChartOfAccountController(): {
|
|
@@ -1889,6 +1905,9 @@ declare function useChartOfAccountController(): {
|
|
|
1889
1905
|
updateById: (req: Request, res: Response, next: NextFunction) => Promise<void>;
|
|
1890
1906
|
deleteById: (req: Request, res: Response, next: NextFunction) => Promise<void>;
|
|
1891
1907
|
updateStatusById: (req: Request, res: Response, next: NextFunction) => Promise<void>;
|
|
1908
|
+
getTrialBalance: (req: Request, res: Response, next: NextFunction) => Promise<void>;
|
|
1909
|
+
getBalanceSheet: (req: Request, res: Response, next: NextFunction) => Promise<void>;
|
|
1910
|
+
getIncomeStatement: (req: Request, res: Response, next: NextFunction) => Promise<void>;
|
|
1892
1911
|
};
|
|
1893
1912
|
|
|
1894
1913
|
type TAccountBalance = {
|
|
@@ -1898,7 +1917,9 @@ type TAccountBalance = {
|
|
|
1898
1917
|
accountType: string;
|
|
1899
1918
|
period: {
|
|
1900
1919
|
fiscalYear: number;
|
|
1901
|
-
|
|
1920
|
+
fiscalMonth: number;
|
|
1921
|
+
year: number;
|
|
1922
|
+
month: number;
|
|
1902
1923
|
};
|
|
1903
1924
|
openingDebit: number;
|
|
1904
1925
|
openingCredit: number;
|
|
@@ -1920,7 +1941,9 @@ declare function modelAccountBalance(value: TAccountBalance): {
|
|
|
1920
1941
|
accountType: string;
|
|
1921
1942
|
period: {
|
|
1922
1943
|
fiscalYear: number;
|
|
1923
|
-
|
|
1944
|
+
fiscalMonth: number;
|
|
1945
|
+
year: number;
|
|
1946
|
+
month: number;
|
|
1924
1947
|
};
|
|
1925
1948
|
openingDebit: number;
|
|
1926
1949
|
openingCredit: number;
|
|
@@ -1946,14 +1969,14 @@ declare function useAccountBalanceRepo(): {
|
|
|
1946
1969
|
account: ObjectId | string;
|
|
1947
1970
|
org: ObjectId | string;
|
|
1948
1971
|
fiscalYear: number;
|
|
1949
|
-
|
|
1972
|
+
fiscalMonth: number;
|
|
1950
1973
|
}) => Promise<TAccountBalance | null>;
|
|
1951
1974
|
getYearBalancesByAccount: (options: {
|
|
1952
1975
|
account: ObjectId | string;
|
|
1953
1976
|
org: ObjectId | string;
|
|
1954
1977
|
fiscalYear: number;
|
|
1955
1978
|
}) => Promise<TAccountBalance[]>;
|
|
1956
|
-
updateById: (account: string | ObjectId, org: string | ObjectId, fiscalYear: number,
|
|
1979
|
+
updateById: (account: string | ObjectId, org: string | ObjectId, fiscalYear: number, fiscalMonth: number, options: Partial<Pick<TAccountBalance, "openingDebit" | "openingCredit" | "movementDebit" | "movementCredit" | "closingDebit" | "closingCredit" | "netBalance">>, session?: ClientSession) => Promise<string>;
|
|
1957
1980
|
deleteById: (_id: string | ObjectId, session?: ClientSession) => Promise<string>;
|
|
1958
1981
|
};
|
|
1959
1982
|
|