Iniit
This commit is contained in:
@@ -0,0 +1,463 @@
|
||||
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 DCManager extends Unibase.Platform.Core.BaseManager {
|
||||
getDcItems(url) {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
const url1 = url;
|
||||
return yield this.dataHelper().getAsync(url1).then(function (response) {
|
||||
if (response.result !== null)
|
||||
response.result = JSON.parse(response.result);
|
||||
return response;
|
||||
});
|
||||
});
|
||||
}
|
||||
getDetails(url) {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
const url1 = url;
|
||||
return yield this.dataHelper().getAsync(url1).then(function (response) {
|
||||
if (response.result !== null && response.result !== "")
|
||||
response.result = JSON.parse(response.result);
|
||||
return response;
|
||||
});
|
||||
});
|
||||
}
|
||||
getOrderDetails(OrderId, DcTypeId) {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
const url = 'apis/v4/bizgaze/transact/dc/getorderdetails/orderid/' + OrderId + '/dctypeid/' + DcTypeId;
|
||||
return yield this.dataHelper().getAsync(url).then(function (response) {
|
||||
if (response.result !== null)
|
||||
response.result = JSON.parse(response.result);
|
||||
return response;
|
||||
});
|
||||
});
|
||||
}
|
||||
getItemDetails(ItemId, OrderItemId, OrderId, BranchId, IsClaim, dctypeid) {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
const url1 = 'apis/v4/bizgaze/transact/dc/getitemdetails/itemid/' + ItemId + '/orderitemid/' + OrderItemId + '/orderid/' + OrderId + '/branchid/' + BranchId + '/isclaim/' + IsClaim + '/dctypeid/' + dctypeid;
|
||||
return yield this.dataHelper().getAsync(url1).then(function (response) {
|
||||
if (response.result !== null)
|
||||
response.result = JSON.parse(response.result);
|
||||
return response;
|
||||
});
|
||||
});
|
||||
}
|
||||
getLobSettings(LobId, BranchId, DcTypeId) {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
const url1 = 'apis/v4/bizgaze/transact/dc/getlobsettings/lobid/' + LobId + '/branchid/' + BranchId + '/dctypeid/' + DcTypeId;
|
||||
return yield this.dataHelper().getAsync(url1).then(function (response) {
|
||||
if (response.result !== null)
|
||||
response.result = JSON.parse(response.result);
|
||||
return response;
|
||||
});
|
||||
});
|
||||
}
|
||||
savedcItemList(obj) {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
const url = 'apis/v4/bizgaze/transact/dc/savedcitemlist/List';
|
||||
return yield this.dataHelper().postAsync(url, obj).then(function (response) {
|
||||
return response;
|
||||
});
|
||||
});
|
||||
}
|
||||
savedcItem(obj) {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
const url = 'apis/v4/bizgaze/transact/dc/savedcitem';
|
||||
return yield this.dataHelper().postAsync(url, obj).then(function (response) {
|
||||
return response;
|
||||
});
|
||||
});
|
||||
}
|
||||
getdcsbyorderid(orderid) {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
const url = 'apis/v4/bizgaze/transact/dc/getdcbyorderid/orderid/' + orderid;
|
||||
return yield this.dataHelper().getAsync(url).then(function (response) {
|
||||
if (response.result !== null)
|
||||
response.result = JSON.parse(response.result);
|
||||
return response;
|
||||
});
|
||||
});
|
||||
}
|
||||
getDcItemsbyItemId(itemid, dcid) {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
const url = 'apis/v4/bizgaze/transact/Dc/getdcitemsbyitemid/dcid/' + dcid + '/itemid/' + itemid;
|
||||
return yield this.dataHelper().getAsync(url).then(function (response) {
|
||||
if (response.result !== null)
|
||||
response.result = JSON.parse(response.result);
|
||||
return response;
|
||||
});
|
||||
});
|
||||
}
|
||||
getDcItemsbyItemIdanddcid(itemid, dcid) {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
const url = 'apis/v4/bizgaze/transact/Dc/getdcitemsbyitemidanddcid/itemid/' + itemid + '/dcid/' + dcid;
|
||||
return yield this.dataHelper().getAsync(url).then(function (response) {
|
||||
if (response.result !== null)
|
||||
response.result = JSON.parse(response.result);
|
||||
return response;
|
||||
});
|
||||
});
|
||||
}
|
||||
getdc(dcid) {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
const url = 'apis/v4/bizgaze/transact/dcs/getdc/dcid/' + dcid;
|
||||
return yield this.dataHelper().getAsync(url).then(function (response) {
|
||||
if (response.result !== null)
|
||||
response.result = JSON.parse(response.result);
|
||||
return response;
|
||||
});
|
||||
});
|
||||
}
|
||||
getDcItemsbyId(DcItemId) {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
const url = 'apis/v4/bizgaze/transact/dc/getdcitembydcitemid/dcitemid/' + DcItemId;
|
||||
return yield this.dataHelper().getAsync(url).then(function (response) {
|
||||
if (response.result !== null)
|
||||
response.result = JSON.parse(response.result);
|
||||
return response;
|
||||
});
|
||||
});
|
||||
}
|
||||
dcPrint(DcId) {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
const url = 'apis/v4/bizgaze/transact/dc/getdchtml/dcid/' + DcId + '/templateid/0';
|
||||
return yield this.dataHelper().getAsync(url).then(function (response) {
|
||||
if (response.result !== null && response.result != "")
|
||||
response.result = JSON.parse(response.result);
|
||||
return response;
|
||||
});
|
||||
});
|
||||
}
|
||||
getMrpDcQty(itemid, BranchId, MrpId, isdcty) {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
const url = 'apis/v4/bizgaze/transact/items/getavailablemrpqty/itemid/' + itemid + '/branchid/' + BranchId + '/mrpid/' + MrpId + '/isdcqty/' + isdcty;
|
||||
return yield this.dataHelper().getAsync(url).then(function (response) {
|
||||
if (response.result !== null)
|
||||
response.result = JSON.parse(response.result);
|
||||
return response;
|
||||
});
|
||||
});
|
||||
}
|
||||
getInventoryApplyType(LobId, Type, BranchId) {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
const url = 'apis/v4/bizgaze/transact/settings/getinventoryapplytype/lobid/' + LobId + '/type/' + Type + '/branchid/' + BranchId;
|
||||
return yield this.dataHelper().getAsync(url).then(function (response) {
|
||||
if (response.result !== null)
|
||||
response.result = JSON.parse(response.result);
|
||||
return response;
|
||||
});
|
||||
});
|
||||
}
|
||||
getDcStock(ItemId, BranchId, isdcqty) {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
const url = 'apis/v4/bizgaze/transact/items/getavailableqty/itemid/' + ItemId + '/branchid/' + BranchId + '/isclaim/false/isdcqty/' + isdcqty;
|
||||
return yield this.dataHelper().getAsync(url).then(function (response) {
|
||||
if (response.result !== null)
|
||||
response.result = JSON.parse(response.result);
|
||||
return response;
|
||||
});
|
||||
});
|
||||
}
|
||||
getDcItemsbyOrderItemId(Orderitemid) {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
const url = 'apis/v4/bizgaze/transact/dc/getdcitembyorderitemid/' + Orderitemid;
|
||||
return yield this.dataHelper().getAsync(url).then(function (response) {
|
||||
if (response.result !== null && response.result != "")
|
||||
response.result = JSON.parse(response.result);
|
||||
return response;
|
||||
});
|
||||
});
|
||||
}
|
||||
deleteDcItem(obj) {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
const url = 'apis/v4/bizgaze/transact/dc/deletedcitem';
|
||||
return yield this.dataHelper().postAsync(url, obj).then(function (response) {
|
||||
return response;
|
||||
});
|
||||
});
|
||||
}
|
||||
GetBatchandMRPQty(url) {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
return yield this.dataHelper().getAsync(url).then(function (response) {
|
||||
if (response.result !== null)
|
||||
response.result = JSON.parse(response.result);
|
||||
return response;
|
||||
});
|
||||
});
|
||||
}
|
||||
getserialNo(StockId) {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
const url = 'apis/v4/bizgaze/transact/dcs/getstockbystockid/stockid/' + StockId;
|
||||
return yield this.dataHelper().getAsync(url).then(function (response) {
|
||||
if (response.result !== null)
|
||||
response.result = JSON.parse(response.result);
|
||||
return response;
|
||||
});
|
||||
});
|
||||
}
|
||||
getserialNobySerialNo(url) {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
return yield this.dataHelper().getAsync(url).then(function (response) {
|
||||
if (response.result !== null && response.result !== "")
|
||||
response.result = JSON.parse(response.result);
|
||||
return response;
|
||||
});
|
||||
});
|
||||
}
|
||||
getAllocatedStocks(url) {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
return yield this.dataHelper().getAsync(url).then(function (response) {
|
||||
if (response.result !== null)
|
||||
response.result = JSON.parse(response.result);
|
||||
return response;
|
||||
});
|
||||
});
|
||||
}
|
||||
getScannedSerialNos(DcItemId) {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
const url = 'apis/v4/bizgaze/transact/dcs/getscannedserialnosbydcitemid/dcitemid/' + DcItemId;
|
||||
return yield this.dataHelper().getAsync(url).then(function (response) {
|
||||
if (response.result !== null)
|
||||
response.result = JSON.parse(response.result);
|
||||
return response;
|
||||
});
|
||||
});
|
||||
}
|
||||
getItemScannedSerialNos(DcItemId, StockId) {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
const url = 'apis/v4/bizgaze/transact/dcs/getitemscannedserialnos/dcitemid/' + DcItemId + '/parentstockid/' + StockId;
|
||||
return yield this.dataHelper().getAsync(url).then(function (response) {
|
||||
if (response.result !== null)
|
||||
response.result = JSON.parse(response.result);
|
||||
return response;
|
||||
});
|
||||
});
|
||||
}
|
||||
getActiveStocks(DcItemId, StockStatusId) {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
const url = 'apis/v4/bizgaze/transact/dcs/getactivestocks/dcitemid/' + DcItemId + '/StockStatusId/' + StockStatusId;
|
||||
return yield this.dataHelper().getAsync(url).then(function (response) {
|
||||
if (response.result !== null)
|
||||
response.result = JSON.parse(response.result);
|
||||
return response;
|
||||
});
|
||||
});
|
||||
}
|
||||
deleteSerialNo(obj) {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
const url = 'apis/v4/bizgaze/transact/dc/deleteserialno';
|
||||
return yield this.dataHelper().postAsync(url, obj).then(function (response) {
|
||||
return response;
|
||||
});
|
||||
});
|
||||
}
|
||||
deleteSerialNobyDcItemId(postdata) {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
const url = 'apis/v4/bizgaze/transact/dc/ChangeSerialNoStage';
|
||||
return yield this.dataHelper().postAsync(url, postdata).then(function (response) {
|
||||
return response;
|
||||
});
|
||||
});
|
||||
}
|
||||
getItemSerialNos(DcItemId, ParentStockId) {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
const url = 'apis/v4/bizgaze/transact/dcs/getstocksbyparentstockid/parentstockid/' + ParentStockId + '/dcitemid/' + DcItemId;
|
||||
return yield this.dataHelper().getAsync(url).then(function (response) {
|
||||
if (response.result !== null)
|
||||
response.result = JSON.parse(response.result);
|
||||
return response;
|
||||
});
|
||||
});
|
||||
}
|
||||
getdcSerialNos(DcId) {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
const url = 'apis/v4/bizgaze/transact/dcs/getstocksbydcid/dcid/' + DcId;
|
||||
return yield this.dataHelper().getAsync(url).then(function (response) {
|
||||
if (response.result !== null)
|
||||
response.result = JSON.parse(response.result);
|
||||
return response;
|
||||
});
|
||||
});
|
||||
}
|
||||
getActivedcSerialNos(DcId) {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
const url = 'apis/v4/bizgaze/transact/dcs/getactivestocksbydcid/dcid/' + DcId;
|
||||
return yield this.dataHelper().getAsync(url).then(function (response) {
|
||||
if (response.result !== null)
|
||||
response.result = JSON.parse(response.result);
|
||||
return response;
|
||||
});
|
||||
});
|
||||
}
|
||||
generateCouponforSNo(obj) {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
const url = 'apis/v4/bizgaze/transact/dc/generatecouponforsno';
|
||||
return yield this.dataHelper().postAsync(url, obj).then(function (response) {
|
||||
return response;
|
||||
});
|
||||
});
|
||||
}
|
||||
GetSerialNosCount(DcItemId, DcType, IsTransfer) {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
const url = 'apis/v4/bizgaze/transact/dcs/getdcserialnoscountbydcitemid/dcitemid/' + DcItemId + '/DcType/' + DcType + '/istransfer/' + IsTransfer;
|
||||
return yield this.dataHelper().getAsync(url).then(function (response) {
|
||||
if (response.result !== null)
|
||||
response.result = JSON.parse(response.result);
|
||||
return response;
|
||||
});
|
||||
});
|
||||
}
|
||||
generateMasterSerialNo(obj) {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
const url = 'apis/v4/bizgaze/transact/dc/generatemasterserialno';
|
||||
return yield this.dataHelper().postAsync(url, obj).then(function (response) {
|
||||
return response;
|
||||
});
|
||||
});
|
||||
}
|
||||
scanSerialNo(url) {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
return yield this.dataHelper().getAsync(url).then(function (response) {
|
||||
if (response.result !== null && response.result !== "")
|
||||
response.result = JSON.parse(response.result);
|
||||
return response;
|
||||
});
|
||||
});
|
||||
}
|
||||
scanMasterSerialNo(url) {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
return yield this.dataHelper().getAsync(url).then(function (response) {
|
||||
if (response.result !== null && response.result !== "")
|
||||
response.result = JSON.parse(response.result);
|
||||
return response;
|
||||
});
|
||||
});
|
||||
}
|
||||
scrappedSNo(obj) {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
const url = 'apis/v4/bizgaze/transact/generatemastercode/scrappedsno';
|
||||
return yield this.dataHelper().postAsync(url, obj).then(function (response) {
|
||||
return response;
|
||||
});
|
||||
});
|
||||
}
|
||||
scanDCAndGrn(DcId, StockId, DcItemId) {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
const url = 'apis/v4/bizgaze/transact/dcs/ScanDCandGRN/dcid/' + DcId + '/stockid/' + StockId + '/dcitemid/' + DcItemId;
|
||||
return yield this.dataHelper().getAsync(url).then(function (response) {
|
||||
if (response.result !== null)
|
||||
response.result = JSON.parse(response.result);
|
||||
return response;
|
||||
});
|
||||
});
|
||||
}
|
||||
getAvailQty(ItemId, BranchId) {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
const url1 = 'apis/v4/bizgaze/transact/items/getitemavailability_rec/itemid/' + ItemId + '/branchid/' + BranchId;
|
||||
return yield this.dataHelper().getAsync(url1).then(function (response) {
|
||||
if (response.result !== null)
|
||||
response.result = JSON.parse(response.result);
|
||||
return response;
|
||||
});
|
||||
});
|
||||
}
|
||||
getItemRecDetails(ItemRecId, ItemId) {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
const url1 = 'apis/v4/bizgaze/transact/items/GetItemReconcilationDetails/itemrecid/' + ItemRecId + '/itemid/' + ItemId;
|
||||
return yield this.dataHelper().getAsync(url1).then(function (response) {
|
||||
if (response.result !== null)
|
||||
response.result = JSON.parse(response.result);
|
||||
return response;
|
||||
});
|
||||
});
|
||||
}
|
||||
savegrn(obj) {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
const url = 'apis/v4/bizgaze/transact/dc/savegrn';
|
||||
return yield this.dataHelper().postAsync(url, obj).then(function (response) {
|
||||
return response;
|
||||
});
|
||||
});
|
||||
}
|
||||
getDcByRefDcId(DcId) {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
const url1 = 'apis/v4/bizgaze/transact/dc/Getdcbyrefdcid/refdcid/' + DcId;
|
||||
return yield this.dataHelper().getAsync(url1).then(function (response) {
|
||||
if (response.result !== null && response.result !== "")
|
||||
response.result = JSON.parse(response.result);
|
||||
return response;
|
||||
});
|
||||
});
|
||||
}
|
||||
getLogisticDetails(LogisticId) {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
const url1 = 'apis/v4/bizgaze/transact/logistics/getlogisticsbyid/logisticid/' + LogisticId;
|
||||
return yield this.dataHelper().getAsync(url1).then(function (response) {
|
||||
if (response.result !== null && response.result !== "")
|
||||
response.result = JSON.parse(response.result);
|
||||
return response;
|
||||
});
|
||||
});
|
||||
}
|
||||
getPickerDetails(frompincode, topincode, weight, height, breadth, length) {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
const url1 = 'apis/v4/bizgaze/integrations/pickrr/pricecalculator/pickup_pincode/' + frompincode + '/drop_pincode/' + topincode
|
||||
+ '/weight/' + weight + '/height/' + height + '/breadth/' + breadth + '/length/' + length;
|
||||
return yield this.dataHelper().getAsync(url1).then(function (response) {
|
||||
if (response.result !== null && response.result !== "")
|
||||
response.result = JSON.parse(response.result);
|
||||
return response;
|
||||
});
|
||||
});
|
||||
}
|
||||
cancelPicker(TrackingdId) {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
const url1 = 'apis/v4/bizgaze/integrations/pickrr/cancelorder/' + TrackingdId;
|
||||
return yield this.dataHelper().getAsync(url1).then(function (response) {
|
||||
if (response.result !== null && response.result !== "")
|
||||
response.result = JSON.parse(response.result);
|
||||
return response;
|
||||
});
|
||||
});
|
||||
}
|
||||
UpdateCancelOrder(obj) {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
const url = 'apis/v4/bizgaze/transact/logistics/updatecancelorder';
|
||||
return yield this.dataHelper().postAsync(url, obj).then(function (response) {
|
||||
return response;
|
||||
});
|
||||
});
|
||||
}
|
||||
updateIsReconcil(obj) {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
const url = 'apis/v4/bizgaze/transact/itemrecon/updateisreconcil';
|
||||
return yield this.dataHelper().postAsync(url, obj).then(function (response) {
|
||||
return response;
|
||||
});
|
||||
});
|
||||
}
|
||||
static Instance() {
|
||||
if (this._instance === undefined)
|
||||
this._instance = new DCManager();
|
||||
return this._instance;
|
||||
}
|
||||
}
|
||||
Managers.DCManager = DCManager;
|
||||
})(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
File diff suppressed because one or more lines are too long
@@ -0,0 +1,212 @@
|
||||
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 ItemManager extends Unibase.Platform.Core.BaseManager {
|
||||
getVariantsForOrder(postdata) {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
const url = 'apis/v4/bizgaze/transact/items/getvariantsfororder';
|
||||
return yield this.dataHelper().postAsync(url, postdata).then(function (response) {
|
||||
if (response.result !== null) {
|
||||
response.result = JSON.parse(response.result);
|
||||
}
|
||||
return response;
|
||||
});
|
||||
});
|
||||
}
|
||||
getItemsForOrder(postdata) {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
const url = 'apis/v4/bizgaze/transact/items/getitemsfororder';
|
||||
return yield this.dataHelper().postAsync(url, postdata).then(function (response) {
|
||||
if (response.result !== null) {
|
||||
response.result = JSON.parse(response.result);
|
||||
}
|
||||
return response;
|
||||
});
|
||||
});
|
||||
}
|
||||
getitemsfororder(PriceCodeId, ContactId, ItemId, LobId, OrderType, OfferOnly, IsExcise, Query) {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
const url = 'apis/v4/bizgaze/transact/items/getitemsfororder/pricecodeid/' + PriceCodeId + '/contactid/' + ContactId + '/itemid/' + ItemId + '/lobid/' + LobId + '/ordertype/' + OrderType + '/offeronly/' + OfferOnly + '/isexcise/' + IsExcise + '/query/' + Query;
|
||||
return yield this.dataHelper().getAsync(url).then(function (response) {
|
||||
if (response.result !== null) {
|
||||
response.result = JSON.parse(response.result);
|
||||
}
|
||||
return response;
|
||||
});
|
||||
});
|
||||
}
|
||||
getdefitemsbom(PriceCodeId, ContactId, ItemId, OrderType, IsExcise, WareHouseId) {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
const url = 'apis/v4/bizgaze/transact/items/getitemdefinitionbyitemidasync/itemid/' + ItemId + '/pricecodeid/' + PriceCodeId
|
||||
+ '/contactid/' + ContactId + '/ordertype/' + OrderType + '/isexcise/' + IsExcise + '/warehouseid/' + WareHouseId;
|
||||
return yield this.dataHelper().getAsync(url).then(function (response) {
|
||||
if (response.result !== null) {
|
||||
response.result = JSON.parse(response.result);
|
||||
}
|
||||
return response;
|
||||
});
|
||||
});
|
||||
}
|
||||
getVariantsDetailsWithAvailability(ItemId, PriceCodeId, ContactId, OrderType, IsExcise, WarehouseId) {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
const url = 'apis/v4/bizgaze/transact/items/getvariantsdetailswithavailability/itemids/' + ItemId + '/pricecodeid/' + PriceCodeId + '/contactid/' + ContactId + '/ordertype/' + OrderType + '/isexcise/' + IsExcise + '/warehouseid/' + WarehouseId;
|
||||
return yield this.dataHelper().getAsync(url).then(function (response) {
|
||||
if (response.result !== null)
|
||||
response.result = JSON.parse(response.result);
|
||||
return response;
|
||||
});
|
||||
});
|
||||
}
|
||||
getItemAvailableQty(itemid, BranchId, IsClaim) {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
const url = 'apis/v4/bizgaze/transact/items/getitemavailability/ItemId/' + itemid + '/BranchId/' + BranchId + '/IsClaim/' + IsClaim;
|
||||
return yield this.dataHelper().getAsync(url).then(function (response) {
|
||||
if (response.result !== null)
|
||||
response.result = JSON.parse(response.result);
|
||||
return response;
|
||||
});
|
||||
});
|
||||
}
|
||||
getItemsAvailableQty(ItemIds, BranchIds, IsClaim) {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
const url = 'apis/v4/bizgaze/transact/items/getitemsavailability/ItemIds/' + ItemIds + '/BranchIds/' + BranchIds + '/IsClaim/' + IsClaim;
|
||||
return yield this.dataHelper().getAsync(url).then(function (response) {
|
||||
if (response.result !== null && response.result != "")
|
||||
response.result = JSON.parse(response.result);
|
||||
return response;
|
||||
});
|
||||
});
|
||||
}
|
||||
getItemSettings(itemid) {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
const url = 'apis/v4/unibase/transact/items/getgeneralSetting/' + itemid;
|
||||
return yield this.dataHelper().getAsync(url).then(function (response) {
|
||||
if (response.result !== null)
|
||||
response.result = JSON.parse(response.result);
|
||||
return response;
|
||||
});
|
||||
});
|
||||
}
|
||||
getDefaultItems(postdata) {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
const url = 'apis/v4/bizgaze/transact/items/getdefaultitems';
|
||||
return yield this.dataHelper().postAsync(url, postdata).then(function (response) {
|
||||
if (response.result !== null && response.result != "")
|
||||
response.result = JSON.parse(response.result);
|
||||
return response;
|
||||
});
|
||||
});
|
||||
}
|
||||
getItem(itemid) {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
const url = 'apis/v4/unibase/transact/items/getitem/itemid/' + itemid;
|
||||
return yield this.dataHelper().getAsync(url).then(function (response) {
|
||||
if (response.result !== null)
|
||||
response.result = JSON.parse(response.result);
|
||||
return response;
|
||||
});
|
||||
});
|
||||
}
|
||||
getProduct(productid) {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
var id = Number(productid);
|
||||
const url = 'apis/v4/bizgaze/transact/items/getproduct/productid/' + id;
|
||||
return yield this.dataHelper().getAsync(url).then(function (response) {
|
||||
if (response.result !== null)
|
||||
response.result = JSON.parse(response.result);
|
||||
return response;
|
||||
});
|
||||
});
|
||||
}
|
||||
getItemWarranty(itemid) {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
const url = 'apis/v4/bizgaze/transact/items/getitemwarranty/itemid/' + itemid;
|
||||
return yield this.dataHelper().getAsync(url).then(function (response) {
|
||||
if (response.result !== null)
|
||||
response.result = JSON.parse(response.result);
|
||||
return response;
|
||||
});
|
||||
});
|
||||
}
|
||||
refreshInventoryType() {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
const url = 'apis/v4/bizgaze/transact/items/refreshinventorytype/np';
|
||||
return yield this.dataHelper().postAsync(url, null).then(function (response) {
|
||||
if (response.result !== null)
|
||||
response.result = JSON.parse(response);
|
||||
MessageHelper.Instance().showSuccess(response.message, '');
|
||||
return response;
|
||||
});
|
||||
});
|
||||
}
|
||||
saveWaranty(obj) {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
const url = 'apis/v4/bizgaze/transact/items/saveitemwarranty';
|
||||
return yield this.dataHelper().postAsync(url, obj).then(function (response) {
|
||||
return response;
|
||||
});
|
||||
});
|
||||
}
|
||||
saveMileage(obj) {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
const url = 'apis/v4/bizgaze/transact/items/savemileage';
|
||||
return yield this.dataHelper().postAsync(url, obj).then(function (response) {
|
||||
return response;
|
||||
});
|
||||
});
|
||||
}
|
||||
getItemRecDetails(ItemRecid, ItemId) {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
const url = 'apis/v4/bizgaze/transact/items/GetItemRecDetails/itemrecid/' + ItemRecid + '/itemid/' + ItemId;
|
||||
return yield this.dataHelper().getAsync(url).then(function (response) {
|
||||
if (response.result !== null)
|
||||
response.result = JSON.parse(response.result);
|
||||
return response;
|
||||
});
|
||||
});
|
||||
}
|
||||
getItemBOMs(ParentItemId) {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
const url = 'apis/v4/bizgaze/transact/items/GetItemBOMs/parentitemid/' + ParentItemId;
|
||||
return yield this.dataHelper().getAsync(url).then(function (response) {
|
||||
if (response.result !== null)
|
||||
response.result = JSON.parse(response.result);
|
||||
return response;
|
||||
});
|
||||
});
|
||||
}
|
||||
getSuperAdmin() {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
const url = 'apis/v4/bizgaze/crm/employees/getadminforsubscription';
|
||||
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 ItemManager();
|
||||
return this._instance;
|
||||
}
|
||||
}
|
||||
Managers.ItemManager = ItemManager;
|
||||
})(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
File diff suppressed because one or more lines are too long
@@ -0,0 +1,39 @@
|
||||
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 TransactSettingManager extends Unibase.Platform.Core.BaseManager {
|
||||
getBranchSettingByInstalledApp(InstalledAppId) {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
const url = 'apis/v4/bizgaze/transact/settings/getbranchsettingbyinstalledappid/installedappid/' + InstalledAppId;
|
||||
return yield this.dataHelper().getAsync(url).then(function (response) {
|
||||
if (response.result != "" && response.result !== null)
|
||||
response.result = JSON.parse(response.result);
|
||||
return response;
|
||||
});
|
||||
});
|
||||
}
|
||||
static Instance() {
|
||||
if (this._instance === undefined)
|
||||
this._instance = new TransactSettingManager();
|
||||
return this._instance;
|
||||
}
|
||||
}
|
||||
Managers.TransactSettingManager = TransactSettingManager;
|
||||
})(Managers = Transact.Managers || (Transact.Managers = {}));
|
||||
})(Transact = Apps.Transact || (Apps.Transact = {}));
|
||||
})(Apps = Bizgaze.Apps || (Bizgaze.Apps = {}));
|
||||
})(Bizgaze || (Bizgaze = {}));
|
||||
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"transactsettingmanager.js","sourceRoot":"","sources":["transactsettingmanager.ts"],"names":[],"mappings":";;;;;;;;;AAAA,IAAU,OAAO,CAwBhB;AAxBD,WAAU,OAAO;IACb,IAAiB,IAAI,CAsBpB;IAtBD,WAAiB,IAAI;QACjB,IAAiB,QAAQ,CAoBxB;QApBD,WAAiB,QAAQ;YACrB,IAAiB,QAAQ,CAkBxB;YAlBD,WAAiB,QAAQ;gBACrB,MAAa,sBAAuB,SAAQ,OAAO,CAAC,QAAQ,CAAC,IAAI,CAAC,WAAW;oBAEnE,8BAA8B,CAAC,cAAsB;;4BACvD,MAAM,GAAG,GAAG,oFAAoF,GAAG,cAAc,CAAC;4BAClH,OAAO,MAAM,IAAI,CAAC,UAAU,EAAE,CAAC,QAAQ,CAAC,GAAG,CAAC,CAAC,IAAI,CAAC,UAAU,QAAQ;gCAChE,IAAI,QAAQ,CAAC,MAAM,IAAI,EAAE,IAAI,QAAQ,CAAC,MAAM,KAAK,IAAI;oCACjD,QAAQ,CAAC,MAAM,GAAG,IAAI,CAAC,KAAK,CAAC,QAAQ,CAAC,MAAM,CAAC,CAAC;gCAClD,OAAO,QAAQ,CAAC;4BACpB,CAAC,CAAC,CAAC;wBACP,CAAC;qBAAA;oBAED,MAAM,CAAC,QAAQ;wBACX,IAAI,IAAI,CAAC,SAAS,KAAK,SAAS;4BAC5B,IAAI,CAAC,SAAS,GAAG,IAAI,sBAAsB,EAAE,CAAC;wBAClD,OAAO,IAAI,CAAC,SAAS,CAAC;oBAC1B,CAAC;iBACJ;gBAhBY,+BAAsB,yBAgBlC,CAAA;YACL,CAAC,EAlBgB,QAAQ,GAAR,iBAAQ,KAAR,iBAAQ,QAkBxB;QACL,CAAC,EApBgB,QAAQ,GAAR,aAAQ,KAAR,aAAQ,QAoBxB;IACL,CAAC,EAtBgB,IAAI,GAAJ,YAAI,KAAJ,YAAI,QAsBpB;AACL,CAAC,EAxBS,OAAO,KAAP,OAAO,QAwBhB"}
|
||||
Reference in New Issue
Block a user