namirasoft-erp 1.4.3 → 1.4.5
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/dist/NamirasoftErpServer.d.ts +2 -0
- package/dist/NamirasoftErpServer.js +3 -1
- package/dist/NamirasoftErpServer.js.map +1 -1
- package/dist/NamirasoftErpServerReport.d.ts +8 -0
- package/dist/NamirasoftErpServerReport.js +29 -0
- package/dist/NamirasoftErpServerReport.js.map +1 -0
- package/dist/command/ReportCommand.d.ts +4 -0
- package/dist/command/ReportCommand.js +15 -0
- package/dist/command/ReportCommand.js.map +1 -0
- package/dist/command/ReportGeneralLedgerCommand.d.ts +5 -0
- package/dist/command/ReportGeneralLedgerCommand.js +38 -0
- package/dist/command/ReportGeneralLedgerCommand.js.map +1 -0
- package/dist/command/cli.js +2 -0
- package/dist/command/cli.js.map +1 -1
- package/dist/index.d.ts +6 -0
- package/dist/index.js +6 -0
- package/dist/index.js.map +1 -1
- package/dist/meta/JournalEntryMetaTable.d.ts +1 -0
- package/dist/meta/JournalEntryMetaTable.js +1 -0
- package/dist/meta/JournalEntryMetaTable.js.map +1 -1
- package/dist/row/GeneralLedgerMoneyRow.d.ts +5 -0
- package/dist/row/GeneralLedgerMoneyRow.js +3 -0
- package/dist/row/GeneralLedgerMoneyRow.js.map +1 -0
- package/dist/row/GeneralLedgerRow.d.ts +8 -0
- package/dist/row/GeneralLedgerRow.js +3 -0
- package/dist/row/GeneralLedgerRow.js.map +1 -0
- package/dist/row/GeneralLedgerRowRow.d.ts +16 -0
- package/dist/row/GeneralLedgerRowRow.js +3 -0
- package/dist/row/GeneralLedgerRowRow.js.map +1 -0
- package/dist/row/JournalEntryFullRow.d.ts +1 -0
- package/dist/row/JournalEntryRow.d.ts +1 -0
- package/package.json +1 -1
- package/src/NamirasoftErpServer.ts +4 -1
- package/src/NamirasoftErpServerReport.ts +39 -0
- package/src/command/ReportCommand.ts +32 -0
- package/src/command/ReportGeneralLedgerCommand.ts +45 -0
- package/src/command/cli.ts +2 -0
- package/src/index.ts +6 -0
- package/src/meta/JournalEntryMetaTable.ts +2 -0
- package/src/row/GeneralLedgerMoneyRow.ts +26 -0
- package/src/row/GeneralLedgerRow.ts +30 -0
- package/src/row/GeneralLedgerRowRow.ts +37 -0
- package/src/row/JournalEntryFullRow.ts +1 -0
- package/src/row/JournalEntryRow.ts +1 -0
|
@@ -13,6 +13,7 @@ import { NamirasoftErpServerJournalEntryLine } from "./NamirasoftErpServerJourna
|
|
|
13
13
|
import { NamirasoftErpServerMetrics } from "./NamirasoftErpServerMetrics";
|
|
14
14
|
import { NamirasoftErpServerParty } from "./NamirasoftErpServerParty";
|
|
15
15
|
import { NamirasoftErpServerPartyType } from "./NamirasoftErpServerPartyType";
|
|
16
|
+
import { NamirasoftErpServerReport } from "./NamirasoftErpServerReport";
|
|
16
17
|
import { NamirasoftErpServerValue } from "./NamirasoftErpServerValue";
|
|
17
18
|
import { TokenManager } from "namirasoft-account";
|
|
18
19
|
export declare class NamirasoftErpServer extends NSABaseServer {
|
|
@@ -31,5 +32,6 @@ export declare class NamirasoftErpServer extends NSABaseServer {
|
|
|
31
32
|
party: NamirasoftErpServerParty;
|
|
32
33
|
journal_entry: NamirasoftErpServerJournalEntry;
|
|
33
34
|
journal_entry_line: NamirasoftErpServerJournalEntryLine;
|
|
35
|
+
report: NamirasoftErpServerReport;
|
|
34
36
|
constructor(base_url: string, token_manager: TokenManager, onError: (error: Error) => void);
|
|
35
37
|
}
|
|
@@ -16,10 +16,11 @@ const NamirasoftErpServerJournalEntryLine_1 = require("./NamirasoftErpServerJour
|
|
|
16
16
|
const NamirasoftErpServerMetrics_1 = require("./NamirasoftErpServerMetrics");
|
|
17
17
|
const NamirasoftErpServerParty_1 = require("./NamirasoftErpServerParty");
|
|
18
18
|
const NamirasoftErpServerPartyType_1 = require("./NamirasoftErpServerPartyType");
|
|
19
|
+
const NamirasoftErpServerReport_1 = require("./NamirasoftErpServerReport");
|
|
19
20
|
const NamirasoftErpServerValue_1 = require("./NamirasoftErpServerValue");
|
|
20
21
|
class NamirasoftErpServer extends namirasoft_account_1.NSABaseServer {
|
|
21
22
|
constructor(base_url, token_manager, onError) {
|
|
22
|
-
super(base_url, `1.4.
|
|
23
|
+
super(base_url, `1.4.5`, token_manager, onError);
|
|
23
24
|
this.healthz = new NamirasoftErpServerHealthz_1.NamirasoftErpServerHealthz(this);
|
|
24
25
|
this.health = new NamirasoftErpServerHealth_1.NamirasoftErpServerHealth(this);
|
|
25
26
|
this.metrics = new NamirasoftErpServerMetrics_1.NamirasoftErpServerMetrics(this);
|
|
@@ -35,6 +36,7 @@ class NamirasoftErpServer extends namirasoft_account_1.NSABaseServer {
|
|
|
35
36
|
this.party = new NamirasoftErpServerParty_1.NamirasoftErpServerParty(this);
|
|
36
37
|
this.journal_entry = new NamirasoftErpServerJournalEntry_1.NamirasoftErpServerJournalEntry(this);
|
|
37
38
|
this.journal_entry_line = new NamirasoftErpServerJournalEntryLine_1.NamirasoftErpServerJournalEntryLine(this);
|
|
39
|
+
this.report = new NamirasoftErpServerReport_1.NamirasoftErpServerReport(this);
|
|
38
40
|
}
|
|
39
41
|
}
|
|
40
42
|
exports.NamirasoftErpServer = NamirasoftErpServer;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"NamirasoftErpServer.js","sourceRoot":"","sources":["../src/NamirasoftErpServer.ts"],"names":[],"mappings":";;;AAoBA,2DAAmD;AACnD,+FAA4F;AAC5F,2EAAwE;AACxE,6EAA0E;AAC1E,+EAA4E;AAC5E,+FAA4F;AAC5F,mFAAgF;AAChF,mFAAgF;AAChF,2EAAwE;AACxE,6EAA0E;AAC1E,uFAAoF;AACpF,+FAA4F;AAC5F,6EAA0E;AAC1E,yEAAsE;AACtE,iFAA8E;AAC9E,yEAAsE;AAGtE,MAAa,mBAAoB,SAAQ,kCAAa;
|
|
1
|
+
{"version":3,"file":"NamirasoftErpServer.js","sourceRoot":"","sources":["../src/NamirasoftErp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IAAI,yEAAmC,CAAC,IAAI,CAAC,CAAC;QACxE,IAAI,CAAC,KAAK,GAAG,IAAI,mDAAwB,CAAC,IAAI,CAAC,CAAC;QAChD,IAAI,CAAC,aAAa,GAAG,IAAI,iEAA+B,CAAC,IAAI,CAAC,CAAC;QAC/D,IAAI,CAAC,kBAAkB,GAAG,IAAI,yEAAmC,CAAC,IAAI,CAAC,CAAC;QACxE,IAAI,CAAC,MAAM,GAAG,IAAI,qDAAyB,CAAC,IAAI,CAAC,CAAC;IACtD,CAAC;CACJ;AAtCD,kDAsCC;AAAA,CAAC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { BaseServerConfig } from "namirasoft-core";
|
|
2
|
+
import { GeneralLedgerRow } from "./row/GeneralLedgerRow";
|
|
3
|
+
import { NamirasoftErpServer } from "./NamirasoftErpServer";
|
|
4
|
+
import { NamirasoftErpServerBase } from "./NamirasoftErpServerBase";
|
|
5
|
+
export declare class NamirasoftErpServerReport extends NamirasoftErpServerBase {
|
|
6
|
+
constructor(server: NamirasoftErpServer);
|
|
7
|
+
GeneralLedger(company_id: string, branch_id: string, fiscal_year_id: string, date_time_from: Date, date_time_to: Date, account_id: (string | null), party_type_id: (string | null), party_id: (string | null), currency_id: (string | null), config?: BaseServerConfig<any>): Promise<GeneralLedgerRow>;
|
|
8
|
+
}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
3
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
4
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
5
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
6
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
7
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
8
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
9
|
+
});
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.NamirasoftErpServerReport = void 0;
|
|
13
|
+
const NamirasoftErpServerBase_1 = require("./NamirasoftErpServerBase");
|
|
14
|
+
class NamirasoftErpServerReport extends NamirasoftErpServerBase_1.NamirasoftErpServerBase {
|
|
15
|
+
constructor(server) {
|
|
16
|
+
super(server);
|
|
17
|
+
this.GeneralLedger = this.GeneralLedger.bind(this);
|
|
18
|
+
}
|
|
19
|
+
GeneralLedger(company_id, branch_id, fiscal_year_id, date_time_from, date_time_to, account_id, party_type_id, party_id, currency_id, config) {
|
|
20
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
21
|
+
let path = `/report/general/ledger`;
|
|
22
|
+
let { data } = yield this.server._get(path, { company_id, branch_id, fiscal_year_id, date_time_from, date_time_to, account_id, party_type_id, party_id, currency_id }, config);
|
|
23
|
+
return data;
|
|
24
|
+
});
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
exports.NamirasoftErpServerReport = NamirasoftErpServerReport;
|
|
28
|
+
;
|
|
29
|
+
//# sourceMappingURL=NamirasoftErpServerReport.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"NamirasoftErpServerReport.js","sourceRoot":"","sources":["../src/NamirasoftErpServerReport.ts"],"names":[],"mappings":";;;;;;;;;;;;AAuBA,uEAAoE;AAEpE,MAAa,yBAA0B,SAAQ,iDAAuB;IAElE,YAAY,MAA2B;QAEnC,KAAK,CAAC,MAAM,CAAC,CAAC;QACd,IAAI,CAAC,aAAa,GAAG,IAAI,CAAC,aAAa,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;IACvD,CAAC;IACK,aAAa,CAAC,UAAkB,EAAE,SAAiB,EAAE,cAAsB,EAAE,cAAoB,EAAE,YAAkB,EAAE,UAA2B,EAAE,aAA8B,EAAE,QAAyB,EAAE,WAA4B,EAAE,MAA8B;;YAE7Q,IAAI,IAAI,GAAG,wBAAwB,CAAC;YACpC,IAAI,EAAE,IAAI,EAAE,GAAG,MAAM,IAAI,CAAC,MAAM,CAAC,IAAI,CAAmB,IAAI,EAAE,EAAE,UAAU,EAAE,SAAS,EAAE,cAAc,EAAE,cAAc,EAAE,YAAY,EAAE,UAAU,EAAE,aAAa,EAAE,QAAQ,EAAE,WAAW,EAAE,EAAE,MAAM,CAAC,CAAC;YACjM,OAAO,IAAI,CAAC;QAChB,CAAC;KAAA;CACJ;AAbD,8DAaC;AAAA,CAAC"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ReportCommand = void 0;
|
|
4
|
+
const namirasoft_node_cli_1 = require("namirasoft-node-cli");
|
|
5
|
+
const ReportGeneralLedgerCommand_1 = require("./ReportGeneralLedgerCommand");
|
|
6
|
+
class ReportCommand extends namirasoft_node_cli_1.BaseNavigatorCommand {
|
|
7
|
+
constructor(argv) {
|
|
8
|
+
super(argv, {
|
|
9
|
+
"generalledger": ReportGeneralLedgerCommand_1.ReportGeneralLedgerCommand,
|
|
10
|
+
});
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
exports.ReportCommand = ReportCommand;
|
|
14
|
+
;
|
|
15
|
+
//# sourceMappingURL=ReportCommand.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ReportCommand.js","sourceRoot":"","sources":["../../src/command/ReportCommand.ts"],"names":[],"mappings":";;;AAoBA,6DAA2D;AAC3D,6EAA0E;AAE1E,MAAa,aAAc,SAAQ,0CAAoB;IAEnD,YAAY,IAAc;QAEtB,KAAK,CAAC,IAAI,EAAE;YACR,eAAe,EAAE,uDAA0B;SAC9C,CAAC,CAAC;IACP,CAAC;CACJ;AARD,sCAQC;AAAA,CAAC"}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
3
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
4
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
5
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
6
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
7
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
8
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
9
|
+
});
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.ReportGeneralLedgerCommand = void 0;
|
|
13
|
+
const namirasoft_node_cli_1 = require("namirasoft-node-cli");
|
|
14
|
+
const namirasoft_core_1 = require("namirasoft-core");
|
|
15
|
+
const NamirasoftErpServer_1 = require("../NamirasoftErpServer");
|
|
16
|
+
const namirasoft_account_1 = require("namirasoft-account");
|
|
17
|
+
class ReportGeneralLedgerCommand extends namirasoft_node_cli_1.BaseFinalCommand {
|
|
18
|
+
constructor(argv) {
|
|
19
|
+
super(argv, ["company_id", "branch_id", "fiscal_year_id", "date_time_from", "date_time_to", "account_id", "party_type_id", "party_id", "currency_id"], []);
|
|
20
|
+
}
|
|
21
|
+
exec() {
|
|
22
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
23
|
+
let token = this.app.storage.getNSAToken();
|
|
24
|
+
if (token == null)
|
|
25
|
+
throw new Error("Token is not available. Please login first using:\nns-erp account config \nor \nns-erp account login.");
|
|
26
|
+
let storage = new namirasoft_core_1.IStorageMemoryDedicated();
|
|
27
|
+
let token_manager = new namirasoft_account_1.TokenManager(storage, () => { });
|
|
28
|
+
token_manager.setValue(token, false);
|
|
29
|
+
let url = this.app.storage.getItem("ns-erp-server-url");
|
|
30
|
+
let server = new NamirasoftErpServer_1.NamirasoftErpServer(url, token_manager, e => this.app.logger.error(e.message));
|
|
31
|
+
let ans = yield server.report.GeneralLedger(this.arg_values[0], this.arg_values[1], this.arg_values[2], this.arg_values[3], this.arg_values[4], this.arg_values[5], this.arg_values[6], this.arg_values[7], this.arg_values[8]);
|
|
32
|
+
this.app.logger.success(JSON.stringify(ans));
|
|
33
|
+
});
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
exports.ReportGeneralLedgerCommand = ReportGeneralLedgerCommand;
|
|
37
|
+
;
|
|
38
|
+
//# sourceMappingURL=ReportGeneralLedgerCommand.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ReportGeneralLedgerCommand.js","sourceRoot":"","sources":["../../src/command/ReportGeneralLedgerCommand.ts"],"names":[],"mappings":";;;;;;;;;;;;AAoBA,6DAAuD;AACvD,qDAA0D;AAC1D,gEAA6D;AAC7D,2DAAkD;AAElD,MAAa,0BAA2B,SAAQ,sCAAgB;IAE5D,YAAY,IAAc;QAEtB,KAAK,CAAC,IAAI,EAAE,CAAC,YAAY,EAAE,WAAW,EAAE,gBAAgB,EAAE,gBAAgB,EAAE,cAAc,EAAE,YAAY,EAAE,eAAe,EAAE,UAAU,EAAE,aAAa,CAAC,EAAE,EAAE,CAAC,CAAC;IAC/J,CAAC;IACc,IAAI;;YAEf,IAAI,KAAK,GAAG,IAAI,CAAC,GAAG,CAAC,OAAO,CAAC,WAAW,EAAE,CAAC;YAC3C,IAAI,KAAK,IAAI,IAAI;gBACb,MAAM,IAAI,KAAK,CAAC,uGAAuG,CAAC,CAAC;YAC7H,IAAI,OAAO,GAAG,IAAI,yCAAuB,EAAE,CAAC;YAC5C,IAAI,aAAa,GAAG,IAAI,iCAAY,CAAC,OAAO,EAAE,GAAG,EAAE,GAAG,CAAC,CAAC,CAAC;YACzD,aAAa,CAAC,QAAQ,CAAC,KAAK,EAAE,KAAK,CAAC,CAAC;YACrC,IAAI,GAAG,GAAG,IAAI,CAAC,GAAG,CAAC,OAAO,CAAC,OAAO,CAAC,mBAAmB,CAAC,CAAC;YACxD,IAAI,MAAM,GAAG,IAAI,yCAAmB,CAAC,GAAG,EAAE,aAAa,EAAE,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC;YAChG,IAAI,GAAG,GAAG,MAAM,MAAM,CAAC,MAAM,CAAC,aAAa,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC,CAAC,EAAE,IAAI,CAAC,UAAU,CAAC,CAAC,CAAC,EAAE,IAAI,CAAC,UAAU,CAAC,CAAC,CAAC,EAAE,IAAI,CAAC,UAAU,CAAC,CAAC,CAAC,EAAE,IAAI,CAAC,UAAU,CAAC,CAAC,CAAC,EAAE,IAAI,CAAC,UAAU,CAAC,CAAC,CAAC,EAAE,IAAI,CAAC,UAAU,CAAC,CAAC,CAAC,EAAE,IAAI,CAAC,UAAU,CAAC,CAAC,CAAC,EAAE,IAAI,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC,CAAC;YAChO,IAAI,CAAC,GAAG,CAAC,MAAM,CAAC,OAAO,CAAC,IAAI,CAAC,SAAS,CAAC,GAAG,CAAC,CAAC,CAAC;QACjD,CAAC;KAAA;CACJ;AAnBD,gEAmBC;AAAA,CAAC"}
|
package/dist/command/cli.js
CHANGED
|
@@ -18,6 +18,7 @@ const JournalEntryLineCommand_1 = require("./JournalEntryLineCommand");
|
|
|
18
18
|
const MetricsCommand_1 = require("./MetricsCommand");
|
|
19
19
|
const PartyCommand_1 = require("./PartyCommand");
|
|
20
20
|
const PartyTypeCommand_1 = require("./PartyTypeCommand");
|
|
21
|
+
const ReportCommand_1 = require("./ReportCommand");
|
|
21
22
|
const ValueCommand_1 = require("./ValueCommand");
|
|
22
23
|
let app = new namirasoft_node_cli_1.Application("ns-erp", new namirasoft_node_cli_1.BaseStorage(), {
|
|
23
24
|
"healthz": HealthzCommand_1.HealthzCommand,
|
|
@@ -35,6 +36,7 @@ let app = new namirasoft_node_cli_1.Application("ns-erp", new namirasoft_node_cl
|
|
|
35
36
|
"party": PartyCommand_1.PartyCommand,
|
|
36
37
|
"journalentry": JournalEntryCommand_1.JournalEntryCommand,
|
|
37
38
|
"journalentryline": JournalEntryLineCommand_1.JournalEntryLineCommand,
|
|
39
|
+
"report": ReportCommand_1.ReportCommand,
|
|
38
40
|
"account": namirasoft_account_1.AccountCommand,
|
|
39
41
|
"config": (argv) => new namirasoft_node_cli_2.ConfigCommand(argv, ["ns-erp-server-url"])
|
|
40
42
|
});
|
package/dist/command/cli.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cli.js","sourceRoot":"","sources":["../../src/command/cli.ts"],"names":[],"mappings":";;;AAqBA,2DAAoD;AACpD,uEAAoE;AACpE,6DAA+D;AAC/D,mDAAgD;AAChD,qDAAkD;AAClD,6DAAoD;AACpD,uDAAoD;AACpD,uEAAoE;AACpE,2DAAwD;AACxD,2DAAwD;AACxD,mDAAgD;AAChD,qDAAkD;AAClD,+DAA4D;AAC5D,uEAAoE;AACpE,qDAAkD;AAClD,iDAA8C;AAC9C,yDAAsD;AACtD,iDAA8C;AAE9C,IAAI,GAAG,GAAG,IAAI,iCAAW,CAAC,QAAQ,EAAE,IAAI,iCAAW,EAAE,EACjD;IACI,SAAS,EAAE,+BAAc;IACzB,QAAQ,EAAE,6BAAa;IACvB,SAAS,EAAE,+BAAc;IACzB,OAAO,EAAE,2BAAY;IACrB,UAAU,EAAE,iCAAe;IAC3B,kBAAkB,EAAE,iDAAuB;IAC3C,SAAS,EAAE,+BAAc;IACzB,QAAQ,EAAE,6BAAa;IACvB,YAAY,EAAE,qCAAiB;IAC/B,YAAY,EAAE,qCAAiB;IAC/B,WAAW,EAAE,mCAAgB;IAC7B,kBAAkB,EAAE,iDAAuB;IAC3C,OAAO,EAAE,2BAAY;IACrB,cAAc,EAAE,yCAAmB;IACnC,kBAAkB,EAAE,iDAAu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AAG,EAAE,CAAC"}
|
package/dist/index.d.ts
CHANGED
|
@@ -14,6 +14,7 @@ export * from "./NamirasoftErpServerJournalEntryLine";
|
|
|
14
14
|
export * from "./NamirasoftErpServerMetrics";
|
|
15
15
|
export * from "./NamirasoftErpServerParty";
|
|
16
16
|
export * from "./NamirasoftErpServerPartyType";
|
|
17
|
+
export * from "./NamirasoftErpServerReport";
|
|
17
18
|
export * from "./NamirasoftErpServerValue";
|
|
18
19
|
export * from "./command/AccountPartyTypeCommand";
|
|
19
20
|
export * from "./command/AccountPartyTypeGetCommand";
|
|
@@ -82,6 +83,8 @@ export * from "./command/PartyTypeGetCommand";
|
|
|
82
83
|
export * from "./command/PartyTypeListCommand";
|
|
83
84
|
export * from "./command/PartyTypeUpdateCommand";
|
|
84
85
|
export * from "./command/PartyUpdateCommand";
|
|
86
|
+
export * from "./command/ReportCommand";
|
|
87
|
+
export * from "./command/ReportGeneralLedgerCommand";
|
|
85
88
|
export * from "./command/ValueCommand";
|
|
86
89
|
export * from "./command/ValueListCommand";
|
|
87
90
|
export * from "./enum/AccountType";
|
|
@@ -111,6 +114,9 @@ export * from "./row/CurrencyInputRow";
|
|
|
111
114
|
export * from "./row/CurrencyRow";
|
|
112
115
|
export * from "./row/FiscalYearInputRow";
|
|
113
116
|
export * from "./row/FiscalYearRow";
|
|
117
|
+
export * from "./row/GeneralLedgerMoneyRow";
|
|
118
|
+
export * from "./row/GeneralLedgerRow";
|
|
119
|
+
export * from "./row/GeneralLedgerRowRow";
|
|
114
120
|
export * from "./row/JournalEntryFullRow";
|
|
115
121
|
export * from "./row/JournalEntryInputRow";
|
|
116
122
|
export * from "./row/JournalEntryLineInputRow";
|
package/dist/index.js
CHANGED
|
@@ -30,6 +30,7 @@ __exportStar(require("./NamirasoftErpServerJournalEntryLine"), exports);
|
|
|
30
30
|
__exportStar(require("./NamirasoftErpServerMetrics"), exports);
|
|
31
31
|
__exportStar(require("./NamirasoftErpServerParty"), exports);
|
|
32
32
|
__exportStar(require("./NamirasoftErpServerPartyType"), exports);
|
|
33
|
+
__exportStar(require("./NamirasoftErpServerReport"), exports);
|
|
33
34
|
__exportStar(require("./NamirasoftErpServerValue"), exports);
|
|
34
35
|
__exportStar(require("./command/AccountPartyTypeCommand"), exports);
|
|
35
36
|
__exportStar(require("./command/AccountPartyTypeGetCommand"), exports);
|
|
@@ -98,6 +99,8 @@ __exportStar(require("./command/PartyTypeGetCommand"), exports);
|
|
|
98
99
|
__exportStar(require("./command/PartyTypeListCommand"), exports);
|
|
99
100
|
__exportStar(require("./command/PartyTypeUpdateCommand"), exports);
|
|
100
101
|
__exportStar(require("./command/PartyUpdateCommand"), exports);
|
|
102
|
+
__exportStar(require("./command/ReportCommand"), exports);
|
|
103
|
+
__exportStar(require("./command/ReportGeneralLedgerCommand"), exports);
|
|
101
104
|
__exportStar(require("./command/ValueCommand"), exports);
|
|
102
105
|
__exportStar(require("./command/ValueListCommand"), exports);
|
|
103
106
|
__exportStar(require("./enum/AccountType"), exports);
|
|
@@ -127,6 +130,9 @@ __exportStar(require("./row/CurrencyInputRow"), exports);
|
|
|
127
130
|
__exportStar(require("./row/CurrencyRow"), exports);
|
|
128
131
|
__exportStar(require("./row/FiscalYearInputRow"), exports);
|
|
129
132
|
__exportStar(require("./row/FiscalYearRow"), exports);
|
|
133
|
+
__exportStar(require("./row/GeneralLedgerMoneyRow"), exports);
|
|
134
|
+
__exportStar(require("./row/GeneralLedgerRow"), exports);
|
|
135
|
+
__exportStar(require("./row/GeneralLedgerRowRow"), exports);
|
|
130
136
|
__exportStar(require("./row/JournalEntryFullRow"), exports);
|
|
131
137
|
__exportStar(require("./row/JournalEntryInputRow"), exports);
|
|
132
138
|
__exportStar(require("./row/JournalEntryLineInputRow"), exports);
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAoBA,wDAAsC;AACtC,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;AAC3C,iEAA+C;AAC/C,4DAA0C;AAC1C,wDAAsC;AACtC,sDAAoC;AACpC,iDAA+B;AAC/B,0DAAwC;AACxC,qDAAmC"}
|
|
@@ -10,6 +10,7 @@ export declare class JournalEntryMetaTable extends NSBaseMetaTable<NamirasoftErp
|
|
|
10
10
|
branch_id: BaseMetaColumn;
|
|
11
11
|
fiscal_year_id: BaseMetaColumn;
|
|
12
12
|
currency_id: BaseMetaColumn;
|
|
13
|
+
exchange_rate: BaseMetaColumn;
|
|
13
14
|
number: BaseMetaColumn;
|
|
14
15
|
date_time: BaseMetaColumn;
|
|
15
16
|
reference_number: BaseMetaColumn;
|
|
@@ -22,6 +22,7 @@ class JournalEntryMetaTable extends namirasoft_site_1.NSBaseMetaTable {
|
|
|
22
22
|
branch_id: new namirasoft_core_1.BaseMetaColumn(this, "branch_id", "Branch ID", "String", true),
|
|
23
23
|
fiscal_year_id: new namirasoft_core_1.BaseMetaColumn(this, "fiscal_year_id", "Fiscal Year ID", "String", true),
|
|
24
24
|
currency_id: new namirasoft_core_1.BaseMetaColumn(this, "currency_id", "Currency ID", "String", true),
|
|
25
|
+
exchange_rate: new namirasoft_core_1.BaseMetaColumn(this, "exchange_rate", "Exchange Rate", "Decimal", true),
|
|
25
26
|
number: new namirasoft_core_1.BaseMetaColumn(this, "number", "Number", "String", true),
|
|
26
27
|
date_time: new namirasoft_core_1.BaseMetaColumn(this, "date_time", "Date Time", "DateTime", true),
|
|
27
28
|
reference_number: new namirasoft_core_1.BaseMetaColumn(this, "reference_number", "Reference Number", "String", false),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"JournalEntryMetaTable.js","sourceRoot":"","sources":["../../src/meta/JournalEntryMetaTable.ts"],"names":[],"mappings":";;;;;;;;;;;;AAoBA,qDAA2D;AAG3D,qDAAsE;AAGtE,MAAa,qBAAsB,SAAQ,iCAAqD;
|
|
1
|
+
{"version":3,"file":"JournalEntryMetaTable.js","sourceRoot":"","sources":["../../src/meta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edgerMoneyRow.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { GeneralLedgerMoneyRow } from "./GeneralLedgerMoneyRow";
|
|
2
|
+
import { GeneralLedgerRowRow } from "./GeneralLedgerRowRow";
|
|
3
|
+
export type GeneralLedgerRow = {
|
|
4
|
+
opening: GeneralLedgerMoneyRow;
|
|
5
|
+
rows: GeneralLedgerRowRow[];
|
|
6
|
+
period: GeneralLedgerMoneyRow;
|
|
7
|
+
closing: GeneralLedgerMoneyRow;
|
|
8
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"GeneralLedgerRow.js","sourceRoot":"","sources":["../../src/row/GeneralLedgerRow.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
export type GeneralLedgerRowRow = {
|
|
2
|
+
journal_entry_id: string;
|
|
3
|
+
journal_entry_number: string;
|
|
4
|
+
journal_entry_date_time: Date;
|
|
5
|
+
journal_entry_description: (string | null);
|
|
6
|
+
currency_id: string;
|
|
7
|
+
company_id: string;
|
|
8
|
+
branch_id: string;
|
|
9
|
+
line_id: string;
|
|
10
|
+
account_id: string;
|
|
11
|
+
party_type_id: (string | null);
|
|
12
|
+
party_id: (string | null);
|
|
13
|
+
debit: number;
|
|
14
|
+
credit: number;
|
|
15
|
+
running_balance: number;
|
|
16
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"GeneralLedgerRowRow.js","sourceRoot":"","sources":["../../src/row/GeneralLedgerRowRow.ts"],"names":[],"mappings":""}
|
package/package.json
CHANGED
|
@@ -33,6 +33,7 @@ import { NamirasoftErpServerJournalEntryLine } from "./NamirasoftErpServerJourna
|
|
|
33
33
|
import { NamirasoftErpServerMetrics } from "./NamirasoftErpServerMetrics";
|
|
34
34
|
import { NamirasoftErpServerParty } from "./NamirasoftErpServerParty";
|
|
35
35
|
import { NamirasoftErpServerPartyType } from "./NamirasoftErpServerPartyType";
|
|
36
|
+
import { NamirasoftErpServerReport } from "./NamirasoftErpServerReport";
|
|
36
37
|
import { NamirasoftErpServerValue } from "./NamirasoftErpServerValue";
|
|
37
38
|
import { TokenManager } from "namirasoft-account";
|
|
38
39
|
|
|
@@ -53,9 +54,10 @@ export class NamirasoftErpServer extends NSABaseServer
|
|
|
53
54
|
party: NamirasoftErpServerParty;
|
|
54
55
|
journal_entry: NamirasoftErpServerJournalEntry;
|
|
55
56
|
journal_entry_line: NamirasoftErpServerJournalEntryLine;
|
|
57
|
+
report: NamirasoftErpServerReport;
|
|
56
58
|
constructor(base_url: string, token_manager: TokenManager, onError: (error: Error) => void)
|
|
57
59
|
{
|
|
58
|
-
super(base_url, `1.4.
|
|
60
|
+
super(base_url, `1.4.5`, token_manager, onError);
|
|
59
61
|
this.healthz = new NamirasoftErpServerHealthz(this);
|
|
60
62
|
this.health = new NamirasoftErpServerHealth(this);
|
|
61
63
|
this.metrics = new NamirasoftErpServerMetrics(this);
|
|
@@ -71,5 +73,6 @@ export class NamirasoftErpServer extends NSABaseServer
|
|
|
71
73
|
this.party = new NamirasoftErpServerParty(this);
|
|
72
74
|
this.journal_entry = new NamirasoftErpServerJournalEntry(this);
|
|
73
75
|
this.journal_entry_line = new NamirasoftErpServerJournalEntryLine(this);
|
|
76
|
+
this.report = new NamirasoftErpServerReport(this);
|
|
74
77
|
}
|
|
75
78
|
};
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
/****************************************************************/
|
|
2
|
+
/* */
|
|
3
|
+
/* This is an Auto-Generated File */
|
|
4
|
+
/* Made By */
|
|
5
|
+
/* Namirasoft SDK Generator NPM Package */
|
|
6
|
+
/* */
|
|
7
|
+
/****************************************************************/
|
|
8
|
+
/****************************************************************/
|
|
9
|
+
/* */
|
|
10
|
+
/* Please do not make any change to this file */
|
|
11
|
+
/* If any change is required, ns-sdkg command must be used */
|
|
12
|
+
/* */
|
|
13
|
+
/****************************************************************/
|
|
14
|
+
/****************************************************************/
|
|
15
|
+
/* */
|
|
16
|
+
/* Namira Software Corporation */
|
|
17
|
+
/* https://namirasoft.com */
|
|
18
|
+
/* */
|
|
19
|
+
/****************************************************************/
|
|
20
|
+
|
|
21
|
+
import { BaseServerConfig } from "namirasoft-core";
|
|
22
|
+
import { GeneralLedgerRow } from "./row/GeneralLedgerRow";
|
|
23
|
+
import { NamirasoftErpServer } from "./NamirasoftErpServer";
|
|
24
|
+
import { NamirasoftErpServerBase } from "./NamirasoftErpServerBase";
|
|
25
|
+
|
|
26
|
+
export class NamirasoftErpServerReport extends NamirasoftErpServerBase
|
|
27
|
+
{
|
|
28
|
+
constructor(server: NamirasoftErpServer)
|
|
29
|
+
{
|
|
30
|
+
super(server);
|
|
31
|
+
this.GeneralLedger = this.GeneralLedger.bind(this);
|
|
32
|
+
}
|
|
33
|
+
async GeneralLedger(company_id: string, branch_id: string, fiscal_year_id: string, date_time_from: Date, date_time_to: Date, account_id: (string | null), party_type_id: (string | null), party_id: (string | null), currency_id: (string | null), config?: BaseServerConfig<any>): Promise<GeneralLedgerRow>
|
|
34
|
+
{
|
|
35
|
+
let path = `/report/general/ledger`;
|
|
36
|
+
let { data } = await this.server._get<GeneralLedgerRow>(path, { company_id, branch_id, fiscal_year_id, date_time_from, date_time_to, account_id, party_type_id, party_id, currency_id }, config);
|
|
37
|
+
return data;
|
|
38
|
+
}
|
|
39
|
+
};
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
/****************************************************************/
|
|
2
|
+
/* */
|
|
3
|
+
/* This is an Auto-Generated File */
|
|
4
|
+
/* Made By */
|
|
5
|
+
/* Namirasoft SDK Generator NPM Package */
|
|
6
|
+
/* */
|
|
7
|
+
/****************************************************************/
|
|
8
|
+
/****************************************************************/
|
|
9
|
+
/* */
|
|
10
|
+
/* Please do not make any change to this file */
|
|
11
|
+
/* If any change is required, ns-sdkg command must be used */
|
|
12
|
+
/* */
|
|
13
|
+
/****************************************************************/
|
|
14
|
+
/****************************************************************/
|
|
15
|
+
/* */
|
|
16
|
+
/* Namira Software Corporation */
|
|
17
|
+
/* https://namirasoft.com */
|
|
18
|
+
/* */
|
|
19
|
+
/****************************************************************/
|
|
20
|
+
|
|
21
|
+
import { BaseNavigatorCommand } from "namirasoft-node-cli";
|
|
22
|
+
import { ReportGeneralLedgerCommand } from "./ReportGeneralLedgerCommand";
|
|
23
|
+
|
|
24
|
+
export class ReportCommand extends BaseNavigatorCommand
|
|
25
|
+
{
|
|
26
|
+
constructor(argv: string[])
|
|
27
|
+
{
|
|
28
|
+
super(argv, {
|
|
29
|
+
"generalledger": ReportGeneralLedgerCommand,
|
|
30
|
+
});
|
|
31
|
+
}
|
|
32
|
+
};
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
/****************************************************************/
|
|
2
|
+
/* */
|
|
3
|
+
/* This is an Auto-Generated File */
|
|
4
|
+
/* Made By */
|
|
5
|
+
/* Namirasoft SDK Generator NPM Package */
|
|
6
|
+
/* */
|
|
7
|
+
/****************************************************************/
|
|
8
|
+
/****************************************************************/
|
|
9
|
+
/* */
|
|
10
|
+
/* Please do not make any change to this file */
|
|
11
|
+
/* If any change is required, ns-sdkg command must be used */
|
|
12
|
+
/* */
|
|
13
|
+
/****************************************************************/
|
|
14
|
+
/****************************************************************/
|
|
15
|
+
/* */
|
|
16
|
+
/* Namira Software Corporation */
|
|
17
|
+
/* https://namirasoft.com */
|
|
18
|
+
/* */
|
|
19
|
+
/****************************************************************/
|
|
20
|
+
|
|
21
|
+
import { BaseFinalCommand } from "namirasoft-node-cli";
|
|
22
|
+
import { IStorageMemoryDedicated } from "namirasoft-core";
|
|
23
|
+
import { NamirasoftErpServer } from "../NamirasoftErpServer";
|
|
24
|
+
import { TokenManager } from "namirasoft-account";
|
|
25
|
+
|
|
26
|
+
export class ReportGeneralLedgerCommand extends BaseFinalCommand
|
|
27
|
+
{
|
|
28
|
+
constructor(argv: string[])
|
|
29
|
+
{
|
|
30
|
+
super(argv, ["company_id", "branch_id", "fiscal_year_id", "date_time_from", "date_time_to", "account_id", "party_type_id", "party_id", "currency_id"], []);
|
|
31
|
+
}
|
|
32
|
+
override async exec()
|
|
33
|
+
{
|
|
34
|
+
let token = this.app.storage.getNSAToken();
|
|
35
|
+
if (token == null)
|
|
36
|
+
throw new Error("Token is not available. Please login first using:\nns-erp account config \nor \nns-erp account login.");
|
|
37
|
+
let storage = new IStorageMemoryDedicated();
|
|
38
|
+
let token_manager = new TokenManager(storage, () => { });
|
|
39
|
+
token_manager.setValue(token, false);
|
|
40
|
+
let url = this.app.storage.getItem("ns-erp-server-url");
|
|
41
|
+
let server = new NamirasoftErpServer(url, token_manager, e => this.app.logger.error(e.message));
|
|
42
|
+
let ans = await server.report.GeneralLedger(this.arg_values[0], this.arg_values[1], this.arg_values[2], this.arg_values[3], this.arg_values[4], this.arg_values[5], this.arg_values[6], this.arg_values[7], this.arg_values[8]);
|
|
43
|
+
this.app.logger.success(JSON.stringify(ans));
|
|
44
|
+
}
|
|
45
|
+
};
|
package/src/command/cli.ts
CHANGED
|
@@ -36,6 +36,7 @@ import { JournalEntryLineCommand } from "./JournalEntryLineCommand";
|
|
|
36
36
|
import { MetricsCommand } from "./MetricsCommand";
|
|
37
37
|
import { PartyCommand } from "./PartyCommand";
|
|
38
38
|
import { PartyTypeCommand } from "./PartyTypeCommand";
|
|
39
|
+
import { ReportCommand } from "./ReportCommand";
|
|
39
40
|
import { ValueCommand } from "./ValueCommand";
|
|
40
41
|
|
|
41
42
|
let app = new Application("ns-erp", new BaseStorage(),
|
|
@@ -55,6 +56,7 @@ let app = new Application("ns-erp", new BaseStorage(),
|
|
|
55
56
|
"party": PartyCommand,
|
|
56
57
|
"journalentry": JournalEntryCommand,
|
|
57
58
|
"journalentryline": JournalEntryLineCommand,
|
|
59
|
+
"report": ReportCommand,
|
|
58
60
|
"account": AccountCommand,
|
|
59
61
|
"config": (argv: string[]) => new ConfigCommand(argv, ["ns-erp-server-url"])
|
|
60
62
|
});
|
package/src/index.ts
CHANGED
|
@@ -34,6 +34,7 @@ export * from "./NamirasoftErpServerJournalEntryLine";
|
|
|
34
34
|
export * from "./NamirasoftErpServerMetrics";
|
|
35
35
|
export * from "./NamirasoftErpServerParty";
|
|
36
36
|
export * from "./NamirasoftErpServerPartyType";
|
|
37
|
+
export * from "./NamirasoftErpServerReport";
|
|
37
38
|
export * from "./NamirasoftErpServerValue";
|
|
38
39
|
export * from "./command/AccountPartyTypeCommand";
|
|
39
40
|
export * from "./command/AccountPartyTypeGetCommand";
|
|
@@ -102,6 +103,8 @@ export * from "./command/PartyTypeGetCommand";
|
|
|
102
103
|
export * from "./command/PartyTypeListCommand";
|
|
103
104
|
export * from "./command/PartyTypeUpdateCommand";
|
|
104
105
|
export * from "./command/PartyUpdateCommand";
|
|
106
|
+
export * from "./command/ReportCommand";
|
|
107
|
+
export * from "./command/ReportGeneralLedgerCommand";
|
|
105
108
|
export * from "./command/ValueCommand";
|
|
106
109
|
export * from "./command/ValueListCommand";
|
|
107
110
|
export * from "./enum/AccountType";
|
|
@@ -131,6 +134,9 @@ export * from "./row/CurrencyInputRow";
|
|
|
131
134
|
export * from "./row/CurrencyRow";
|
|
132
135
|
export * from "./row/FiscalYearInputRow";
|
|
133
136
|
export * from "./row/FiscalYearRow";
|
|
137
|
+
export * from "./row/GeneralLedgerMoneyRow";
|
|
138
|
+
export * from "./row/GeneralLedgerRow";
|
|
139
|
+
export * from "./row/GeneralLedgerRowRow";
|
|
134
140
|
export * from "./row/JournalEntryFullRow";
|
|
135
141
|
export * from "./row/JournalEntryInputRow";
|
|
136
142
|
export * from "./row/JournalEntryLineInputRow";
|
|
@@ -33,6 +33,7 @@ export class JournalEntryMetaTable extends NSBaseMetaTable<NamirasoftErpServer,
|
|
|
33
33
|
branch_id: BaseMetaColumn;
|
|
34
34
|
fiscal_year_id: BaseMetaColumn;
|
|
35
35
|
currency_id: BaseMetaColumn;
|
|
36
|
+
exchange_rate: BaseMetaColumn;
|
|
36
37
|
number: BaseMetaColumn;
|
|
37
38
|
date_time: BaseMetaColumn;
|
|
38
39
|
reference_number: BaseMetaColumn;
|
|
@@ -52,6 +53,7 @@ export class JournalEntryMetaTable extends NSBaseMetaTable<NamirasoftErpServer,
|
|
|
52
53
|
branch_id: new BaseMetaColumn(this, "branch_id", "Branch ID", "String", true),
|
|
53
54
|
fiscal_year_id: new BaseMetaColumn(this, "fiscal_year_id", "Fiscal Year ID", "String", true),
|
|
54
55
|
currency_id: new BaseMetaColumn(this, "currency_id", "Currency ID", "String", true),
|
|
56
|
+
exchange_rate: new BaseMetaColumn(this, "exchange_rate", "Exchange Rate", "Decimal", true),
|
|
55
57
|
number: new BaseMetaColumn(this, "number", "Number", "String", true),
|
|
56
58
|
date_time: new BaseMetaColumn(this, "date_time", "Date Time", "DateTime", true),
|
|
57
59
|
reference_number: new BaseMetaColumn(this, "reference_number", "Reference Number", "String", false),
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
/****************************************************************/
|
|
2
|
+
/* */
|
|
3
|
+
/* This is an Auto-Generated File */
|
|
4
|
+
/* Made By */
|
|
5
|
+
/* Namirasoft SDK Generator NPM Package */
|
|
6
|
+
/* */
|
|
7
|
+
/****************************************************************/
|
|
8
|
+
/****************************************************************/
|
|
9
|
+
/* */
|
|
10
|
+
/* Please do not make any change to this file */
|
|
11
|
+
/* If any change is required, ns-sdkg command must be used */
|
|
12
|
+
/* */
|
|
13
|
+
/****************************************************************/
|
|
14
|
+
/****************************************************************/
|
|
15
|
+
/* */
|
|
16
|
+
/* Namira Software Corporation */
|
|
17
|
+
/* https://namirasoft.com */
|
|
18
|
+
/* */
|
|
19
|
+
/****************************************************************/
|
|
20
|
+
|
|
21
|
+
export type GeneralLedgerMoneyRow =
|
|
22
|
+
{
|
|
23
|
+
debit: number;
|
|
24
|
+
credit: number;
|
|
25
|
+
balance: number;
|
|
26
|
+
}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
/****************************************************************/
|
|
2
|
+
/* */
|
|
3
|
+
/* This is an Auto-Generated File */
|
|
4
|
+
/* Made By */
|
|
5
|
+
/* Namirasoft SDK Generator NPM Package */
|
|
6
|
+
/* */
|
|
7
|
+
/****************************************************************/
|
|
8
|
+
/****************************************************************/
|
|
9
|
+
/* */
|
|
10
|
+
/* Please do not make any change to this file */
|
|
11
|
+
/* If any change is required, ns-sdkg command must be used */
|
|
12
|
+
/* */
|
|
13
|
+
/****************************************************************/
|
|
14
|
+
/****************************************************************/
|
|
15
|
+
/* */
|
|
16
|
+
/* Namira Software Corporation */
|
|
17
|
+
/* https://namirasoft.com */
|
|
18
|
+
/* */
|
|
19
|
+
/****************************************************************/
|
|
20
|
+
|
|
21
|
+
import { GeneralLedgerMoneyRow } from "./GeneralLedgerMoneyRow";
|
|
22
|
+
import { GeneralLedgerRowRow } from "./GeneralLedgerRowRow";
|
|
23
|
+
|
|
24
|
+
export type GeneralLedgerRow =
|
|
25
|
+
{
|
|
26
|
+
opening: GeneralLedgerMoneyRow;
|
|
27
|
+
rows: GeneralLedgerRowRow[];
|
|
28
|
+
period: GeneralLedgerMoneyRow;
|
|
29
|
+
closing: GeneralLedgerMoneyRow;
|
|
30
|
+
}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
/****************************************************************/
|
|
2
|
+
/* */
|
|
3
|
+
/* This is an Auto-Generated File */
|
|
4
|
+
/* Made By */
|
|
5
|
+
/* Namirasoft SDK Generator NPM Package */
|
|
6
|
+
/* */
|
|
7
|
+
/****************************************************************/
|
|
8
|
+
/****************************************************************/
|
|
9
|
+
/* */
|
|
10
|
+
/* Please do not make any change to this file */
|
|
11
|
+
/* If any change is required, ns-sdkg command must be used */
|
|
12
|
+
/* */
|
|
13
|
+
/****************************************************************/
|
|
14
|
+
/****************************************************************/
|
|
15
|
+
/* */
|
|
16
|
+
/* Namira Software Corporation */
|
|
17
|
+
/* https://namirasoft.com */
|
|
18
|
+
/* */
|
|
19
|
+
/****************************************************************/
|
|
20
|
+
|
|
21
|
+
export type GeneralLedgerRowRow =
|
|
22
|
+
{
|
|
23
|
+
journal_entry_id: string;
|
|
24
|
+
journal_entry_number: string;
|
|
25
|
+
journal_entry_date_time: Date;
|
|
26
|
+
journal_entry_description: (string | null);
|
|
27
|
+
currency_id: string;
|
|
28
|
+
company_id: string;
|
|
29
|
+
branch_id: string;
|
|
30
|
+
line_id: string;
|
|
31
|
+
account_id: string;
|
|
32
|
+
party_type_id: (string | null);
|
|
33
|
+
party_id: (string | null);
|
|
34
|
+
debit: number;
|
|
35
|
+
credit: number;
|
|
36
|
+
running_balance: number;
|
|
37
|
+
}
|