123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107 |
- 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 SPRL;
- (function (SPRL) {
- let Apps;
- (function (Apps) {
- let Sap;
- (function (Sap) {
- let Managers;
- (function (Managers) {
- class SapReportManager extends Unibase.Platform.Core.BaseManager {
- getSalesReport(sapcin, fromdate, todate) {
- return __awaiter(this, void 0, void 0, function* () {
- const url = "/apis/v4/sprl/integrations/sapreports/salesreport/sapcin/" + sapcin + "/fromdate/" + fromdate + "/todate/" + todate;
- return yield this.dataHelper().getAsync(url).then(function (response) {
- if (response.result != null && response.result != "") {
- }
- return response;
- });
- });
- }
- getCustomerOverDue(sapcin, date) {
- return __awaiter(this, void 0, void 0, function* () {
- const url = "/apis/v4/sprl/integrations/sapreports/customeroverdue/sapcin/" + sapcin + "/date/" + date;
- return yield this.dataHelper().getAsync(url).then(function (response) {
- if (response.result != null && response.result != "") {
- }
- return response;
- });
- });
- }
- getCustomerLimit(sapcin) {
- return __awaiter(this, void 0, void 0, function* () {
- const url = "/apis/v4/sprl/integrations/sapreports/customerlimit/sapcin/" + sapcin;
- return yield this.dataHelper().getAsync(url).then(function (response) {
- if (response.result != null && response.result != "") {
- }
- return response;
- });
- });
- }
- getDebitCreditNote(sapcin, fdate, tdate, blart) {
- return __awaiter(this, void 0, void 0, function* () {
- const url = "apis/v4/sprl/integrations/sapreports/debitcreditnote/sapcin/" + sapcin + "/fromdate/" + fdate + "/todate/" + tdate + "/blart/" + blart;
- return yield this.dataHelper().getAsync(url).then(function (response) {
- if (response.result != null && response.result != "") {
- }
- return response;
- });
- });
- }
- getStockReport(plantcode) {
- return __awaiter(this, void 0, void 0, function* () {
- const url = "/apis/v4/sprl/integrations/sapreports/itemstock/plantcode/" + plantcode;
- return yield this.dataHelper().getAsync(url).then(function (response) {
- if (response.result != null && response.result != "") {
- }
- return response;
- });
- });
- }
- getCustomerOutStanding(sapcin) {
- return __awaiter(this, void 0, void 0, function* () {
- const url = "/apis/v4/sprl/integrations/sapreports/customeroutstanding/sapcin/" + sapcin;
- return yield this.dataHelper().getAsync(url).then(function (response) {
- if (response.result != null && response.result != "" && response.result != "") {
- }
- return response;
- });
- });
- }
- getAccountStatement(sapcin, fromdate, todate) {
- return __awaiter(this, void 0, void 0, function* () {
- const url = "apis/v4/sprl/integrations/sapreports/accountstatement/sapcin/" + sapcin + "/fromdate/" + fromdate + "/todate/" + todate;
- return yield this.dataHelper().getAsync(url).then(function (response) {
- if (response.result != null && response.result != "") {
- }
- return response;
- });
- });
- }
- deleteSapReportData(obj) {
- return __awaiter(this, void 0, void 0, function* () {
- const url = "apis/v4/sprl/integrations/sap/deletereportdata";
- return yield this.dataHelper().getAsync(url).then(function (response) {
- if (response.result != null && response.result != "") {
- }
- return response;
- });
- });
- }
- static Instance() {
- return new SapReportManager();
- }
- }
- Managers.SapReportManager = SapReportManager;
- })(Managers = Sap.Managers || (Sap.Managers = {}));
- })(Sap = Apps.Sap || (Apps.Sap = {}));
- })(Apps = SPRL.Apps || (SPRL.Apps = {}));
- })(SPRL || (SPRL = {}));
|