Iniit
This commit is contained in:
@@ -0,0 +1,159 @@
|
||||
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
||||
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
||||
return new (P || (P = Promise))(function (resolve, reject) {
|
||||
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
||||
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
||||
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
||||
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
||||
});
|
||||
};
|
||||
var Bizgaze;
|
||||
(function (Bizgaze) {
|
||||
let Apps;
|
||||
(function (Apps) {
|
||||
let Transact;
|
||||
(function (Transact) {
|
||||
let Managers;
|
||||
(function (Managers) {
|
||||
class LedgerManager extends Unibase.Platform.Core.BaseManager {
|
||||
getFiscalYearByPartitionId(PartitionId) {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
const url = 'apis/v4/bizgaze/transact/ledgers/getfiscalyearbypartitionid/partitionid/' + PartitionId;
|
||||
return yield this.dataHelper().getAsync(url).then(function (response) {
|
||||
if (response.result !== null)
|
||||
response.result = JSON.parse(response.result);
|
||||
return response;
|
||||
});
|
||||
});
|
||||
}
|
||||
refreshFiscalYear(PartitionId) {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
const url = 'apis/v4/bizgaze/transact/ledgers/refreshfiscalyear/partitionid/' + PartitionId;
|
||||
return yield this.dataHelper().postAsync(url, PartitionId).then(function (response) {
|
||||
if (response.result !== null)
|
||||
response.result = JSON.parse(response.result);
|
||||
return response;
|
||||
});
|
||||
});
|
||||
}
|
||||
refreshAllFiscalYears() {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
const url = 'apis/v4/bizgaze/transact/ledgers/refreshallfiscalyears/np';
|
||||
return yield this.dataHelper().postAsync(url, "{}").then(function (response) {
|
||||
if (response.result !== null)
|
||||
response.result = JSON.parse(response.result);
|
||||
return response;
|
||||
});
|
||||
});
|
||||
}
|
||||
AllBalanceSheetIndexes(Reporttypeid) {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
const url = 'apis/v4/bizgaze/transact/ledgers/AllBalanceSheets/Reporttypeid/' + Reporttypeid;
|
||||
return yield this.dataHelper().postAsync(url, "{}").then(function (response) {
|
||||
if (response.result !== null)
|
||||
response.result = JSON.parse(response.result);
|
||||
return response;
|
||||
});
|
||||
});
|
||||
}
|
||||
UpdateBalanceSheetIndexes(postdata) {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
const url = 'apis/v4/bizgaze/transact/ledgers/UpdateBalSheetIndexes';
|
||||
return yield this.dataHelper().postAsync(url, postdata).then(function (response) {
|
||||
if (response.result !== null)
|
||||
response.result = JSON.parse(response.result);
|
||||
return response;
|
||||
});
|
||||
});
|
||||
}
|
||||
SaveBalSheetIndex(obj) {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
const url = 'apis/v4/bizgaze/transact/ledgers/savebalsheetindex/List';
|
||||
return yield this.dataHelper().postAsync(url, obj).then(function (response) {
|
||||
if (response.result !== null)
|
||||
response.result = JSON.parse(response.result);
|
||||
return response;
|
||||
});
|
||||
});
|
||||
}
|
||||
getLobLedgerSetting(lobid, branchid) {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
const url = 'apis/v4/bizgaze/transact/ledgers/getlobledgersetting/lobid/' + lobid + '/settingname/Bizgaze_Extension_Transact_Ledger_LedgerSettingName_Adjustment/branchid/' + branchid;
|
||||
return yield this.dataHelper().getAsync(url).then(function (response) {
|
||||
if (response.result !== null && response.result !== "")
|
||||
response.result = JSON.parse(response.result);
|
||||
return response;
|
||||
});
|
||||
});
|
||||
}
|
||||
getReconciliationData(Ledgerid, fromdate, todate, portalgroupwise, page, term, row) {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
const url = 'apis/v4/bizgaze/transact/ledgers/getledgerjournalentrylist/ledgerid/' + Ledgerid + '/fromdate/' + fromdate + '/todate/' + todate + '/portalgroupwise/' + portalgroupwise + '/page/' + page + '/rows/' + row + '/term/' + term;
|
||||
return yield this.dataHelper().getAsync(url).then(function (response) {
|
||||
if (response.result !== null)
|
||||
response.result = JSON.parse(response.result);
|
||||
return response;
|
||||
});
|
||||
});
|
||||
}
|
||||
saveReconcile(obj) {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
const url = 'apis/v4/bizgaze/transact/ledgers/savereconcile/List';
|
||||
return yield this.dataHelper().postAsync(url, obj).then(function (response) {
|
||||
if (response.result !== null)
|
||||
response.result = response.result;
|
||||
return response;
|
||||
});
|
||||
});
|
||||
}
|
||||
saveLedgerReconcile(obj) {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
const url = 'apis/v4/bizgaze/transact/ledgers/saveledgerreconcile/List';
|
||||
return yield this.dataHelper().postAsync(url, obj).then(function (response) {
|
||||
if (response.result !== null)
|
||||
response.result = response.result;
|
||||
return response;
|
||||
});
|
||||
});
|
||||
}
|
||||
SaveClosingbalance(fiscalyearid, fromdate, todate) {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
const url = 'apis/v4/bizgaze/transact/ledgers/savefiscalyearclosingbalance/fiscalyearid/' + fiscalyearid + '/fromdate/' + fromdate + '/todate/' + todate;
|
||||
return yield this.dataHelper().postAsync(url, "{}").then(function (response) {
|
||||
if (response.result !== null)
|
||||
response.result = JSON.parse(response.result);
|
||||
return response;
|
||||
});
|
||||
});
|
||||
}
|
||||
getLedgerById(ledgerid) {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
const url = 'apis/v4/bizgaze/transact/ledgers/getledgerbyledgerid/ledgerid/' + ledgerid;
|
||||
return yield this.dataHelper().getAsync(url).then(function (response) {
|
||||
if (response.result !== null)
|
||||
response.result = JSON.parse(response.result);
|
||||
return response;
|
||||
});
|
||||
});
|
||||
}
|
||||
getBankReconcileById(bankreconcileid) {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
const url = 'apis/v4/bizgaze/transact/ledgers/getbankreconcile/bankreconcileid/' + bankreconcileid;
|
||||
return yield this.dataHelper().getAsync(url).then(function (response) {
|
||||
if (response.result !== null)
|
||||
response.result = JSON.parse(response.result);
|
||||
return response;
|
||||
});
|
||||
});
|
||||
}
|
||||
static Instance() {
|
||||
if (this._instance === undefined)
|
||||
this._instance = new LedgerManager();
|
||||
return this._instance;
|
||||
}
|
||||
}
|
||||
Managers.LedgerManager = LedgerManager;
|
||||
})(Managers = Transact.Managers || (Transact.Managers = {}));
|
||||
})(Transact = Apps.Transact || (Apps.Transact = {}));
|
||||
})(Apps = Bizgaze.Apps || (Bizgaze.Apps = {}));
|
||||
})(Bizgaze || (Bizgaze = {}));
|
||||
File diff suppressed because one or more lines are too long
+1
@@ -0,0 +1 @@
|
||||
var __awaiter=this&&this.__awaiter||function(n,t,i,r){function u(n){return n instanceof i?n:new i(function(t){t(n)})}return new(i||(i=Promise))(function(i,f){function o(n){try{e(r.next(n))}catch(t){f(t)}}function s(n){try{e(r["throw"](n))}catch(t){f(t)}}function e(n){n.done?i(n.value):u(n.value).then(o,s)}e((r=r.apply(n,t||[])).next())})},Bizgaze;(function(n){let t;(function(n){let t;(function(n){let t;(function(n){class t extends Unibase.Platform.Core.BaseManager{getFiscalYearByPartitionId(n){return __awaiter(this,void 0,void 0,function*(){const t="apis/v4/bizgaze/transact/ledgers/getfiscalyearbypartitionid/partitionid/"+n;return yield this.dataHelper().getAsync(t).then(function(n){return n.result!==null&&(n.result=JSON.parse(n.result)),n})})}refreshFiscalYear(n){return __awaiter(this,void 0,void 0,function*(){const t="apis/v4/bizgaze/transact/ledgers/refreshfiscalyear/partitionid/"+n;return yield this.dataHelper().postAsync(t,n).then(function(n){return n.result!==null&&(n.result=JSON.parse(n.result)),n})})}refreshAllFiscalYears(){return __awaiter(this,void 0,void 0,function*(){return yield this.dataHelper().postAsync("apis/v4/bizgaze/transact/ledgers/refreshallfiscalyears/np","{}").then(function(n){return n.result!==null&&(n.result=JSON.parse(n.result)),n})})}AllBalanceSheetIndexes(n){return __awaiter(this,void 0,void 0,function*(){const t="apis/v4/bizgaze/transact/ledgers/AllBalanceSheets/Reporttypeid/"+n;return yield this.dataHelper().postAsync(t,"{}").then(function(n){return n.result!==null&&(n.result=JSON.parse(n.result)),n})})}UpdateBalanceSheetIndexes(n){return __awaiter(this,void 0,void 0,function*(){return yield this.dataHelper().postAsync("apis/v4/bizgaze/transact/ledgers/UpdateBalSheetIndexes",n).then(function(n){return n.result!==null&&(n.result=JSON.parse(n.result)),n})})}SaveBalSheetIndex(n){return __awaiter(this,void 0,void 0,function*(){return yield this.dataHelper().postAsync("apis/v4/bizgaze/transact/ledgers/savebalsheetindex/List",n).then(function(n){return n.result!==null&&(n.result=JSON.parse(n.result)),n})})}getLobLedgerSetting(n,t){return __awaiter(this,void 0,void 0,function*(){const i="apis/v4/bizgaze/transact/ledgers/getlobledgersetting/lobid/"+n+"/settingname/Bizgaze_Extension_Transact_Ledger_LedgerSettingName_Adjustment/branchid/"+t;return yield this.dataHelper().getAsync(i).then(function(n){return n.result!==null&&n.result!==""&&(n.result=JSON.parse(n.result)),n})})}getReconciliationData(n,t,i,r,u,f,e){return __awaiter(this,void 0,void 0,function*(){const o="apis/v4/bizgaze/transact/ledgers/getledgerjournalentrylist/ledgerid/"+n+"/fromdate/"+t+"/todate/"+i+"/portalgroupwise/"+r+"/page/"+u+"/rows/"+e+"/term/"+f;return yield this.dataHelper().getAsync(o).then(function(n){return n.result!==null&&(n.result=JSON.parse(n.result)),n})})}saveReconcile(n){return __awaiter(this,void 0,void 0,function*(){return yield this.dataHelper().postAsync("apis/v4/bizgaze/transact/ledgers/savereconcile/List",n).then(function(n){return n.result!==null&&(n.result=n.result),n})})}saveLedgerReconcile(n){return __awaiter(this,void 0,void 0,function*(){return yield this.dataHelper().postAsync("apis/v4/bizgaze/transact/ledgers/saveledgerreconcile/List",n).then(function(n){return n.result!==null&&(n.result=n.result),n})})}SaveClosingbalance(n,t,i){return __awaiter(this,void 0,void 0,function*(){const r="apis/v4/bizgaze/transact/ledgers/savefiscalyearclosingbalance/fiscalyearid/"+n+"/fromdate/"+t+"/todate/"+i;return yield this.dataHelper().postAsync(r,"{}").then(function(n){return n.result!==null&&(n.result=JSON.parse(n.result)),n})})}getLedgerById(n){return __awaiter(this,void 0,void 0,function*(){const t="apis/v4/bizgaze/transact/ledgers/getledgerbyledgerid/ledgerid/"+n;return yield this.dataHelper().getAsync(t).then(function(n){return n.result!==null&&(n.result=JSON.parse(n.result)),n})})}getBankReconcileById(n){return __awaiter(this,void 0,void 0,function*(){const t="apis/v4/bizgaze/transact/ledgers/getbankreconcile/bankreconcileid/"+n;return yield this.dataHelper().getAsync(t).then(function(n){return n.result!==null&&(n.result=JSON.parse(n.result)),n})})}static Instance(){return this._instance===undefined&&(this._instance=new t),this._instance}}n.LedgerManager=t})(t=n.Managers||(n.Managers={}))})(t=n.Transact||(n.Transact={}))})(t=n.Apps||(n.Apps={}))})(Bizgaze||(Bizgaze={}));
|
||||
Reference in New Issue
Block a user