| 32390 |
amit.gupta |
1 |
$(function () {
|
| 28300 |
tejbeer |
2 |
|
| 32390 |
amit.gupta |
3 |
$(document).on('click', ".submit-inactive", function () {
|
| 28300 |
tejbeer |
4 |
|
| 32390 |
amit.gupta |
5 |
var id = $(this).data('id');
|
|
|
6 |
if (confirm("Are you sure you want to In Active this Supplier") == true) {
|
| 28504 |
amit.gupta |
7 |
|
| 32390 |
amit.gupta |
8 |
doPostAjaxRequestHandler(context + "/setStatusInActive?id=" + id,
|
|
|
9 |
function (response) {
|
|
|
10 |
if (response == "true") {
|
| 28493 |
tejbeer |
11 |
|
| 32390 |
amit.gupta |
12 |
getAllSupplier("main-content");
|
|
|
13 |
}
|
|
|
14 |
});
|
|
|
15 |
}
|
| 28300 |
tejbeer |
16 |
|
| 32390 |
amit.gupta |
17 |
});
|
| 28300 |
tejbeer |
18 |
|
| 32390 |
amit.gupta |
19 |
$(document).on('click', ".myFile", function () {
|
| 28300 |
tejbeer |
20 |
|
| 32390 |
amit.gupta |
21 |
console.log("hello");
|
|
|
22 |
if (confirm('Confirm upload ?')) {
|
|
|
23 |
var fileSelector = $(this)[0];
|
|
|
24 |
if (fileSelector != undefined) {
|
|
|
25 |
var url = `${context}/csvFileUploader`;
|
|
|
26 |
console.log(url);
|
|
|
27 |
var file = $(".fileTaxation")[0].files[0];
|
|
|
28 |
let fileInput = $(this);
|
|
|
29 |
console.log("file" + file);
|
|
|
30 |
console.log("fileInput" + fileInput);
|
|
|
31 |
doAjaxUploadRequestHandler(
|
|
|
32 |
url,
|
|
|
33 |
'POST',
|
|
|
34 |
file, function (response) {
|
| 28300 |
tejbeer |
35 |
|
| 32390 |
amit.gupta |
36 |
console.log("reponse" + response);
|
|
|
37 |
});
|
| 28300 |
tejbeer |
38 |
|
| 32390 |
amit.gupta |
39 |
}
|
|
|
40 |
} else {
|
|
|
41 |
// Do nothing!
|
|
|
42 |
}
|
|
|
43 |
});
|
| 28300 |
tejbeer |
44 |
|
|
|
45 |
|
| 32390 |
amit.gupta |
46 |
$(document).on('click', ".submit-active", function () {
|
| 28300 |
tejbeer |
47 |
|
| 32390 |
amit.gupta |
48 |
var id = $(this).data('id');
|
|
|
49 |
if (confirm("Are you sure you want to Active this Supplier") == true) {
|
|
|
50 |
doPostAjaxRequestHandler(context + "/setStatusActive?id=" + id,
|
|
|
51 |
function (response) {
|
|
|
52 |
if (response == "true") {
|
|
|
53 |
getAllInActiveSupplier("main-content");
|
|
|
54 |
}
|
|
|
55 |
});
|
|
|
56 |
}
|
| 28300 |
tejbeer |
57 |
|
| 32390 |
amit.gupta |
58 |
});
|
|
|
59 |
$(document).on('click', ".taxation", function () {
|
|
|
60 |
loadTaxation("main-content");
|
|
|
61 |
});
|
| 28300 |
tejbeer |
62 |
|
|
|
63 |
|
| 32390 |
amit.gupta |
64 |
$(document).on('click', ".create-warehouse", function () {
|
|
|
65 |
loadCreateWarehouse("main-content");
|
|
|
66 |
});
|
| 28300 |
tejbeer |
67 |
|
| 32390 |
amit.gupta |
68 |
$(document).on('click', ".warehouses", function () {
|
|
|
69 |
loadWarehouses("main-content");
|
|
|
70 |
});
|
| 28300 |
tejbeer |
71 |
|
| 32390 |
amit.gupta |
72 |
$(document).on('click', ".instruction-items", function () {
|
|
|
73 |
getAuthorisedWarehouses(function (warehouseId) {
|
|
|
74 |
loadInstructionItems(warehouseId, "main-content");
|
|
|
75 |
});
|
|
|
76 |
});
|
|
|
77 |
$(document).on('click', ".supplier-inactive", function () {
|
|
|
78 |
getAllInActiveSupplier("main-content");
|
|
|
79 |
});
|
| 28300 |
tejbeer |
80 |
|
| 32390 |
amit.gupta |
81 |
$(document).on('click', ".supplier", function () {
|
|
|
82 |
getAllSupplier("main-content");
|
|
|
83 |
});
|
|
|
84 |
|
|
|
85 |
|
|
|
86 |
$(document).on('click', ".add-remove-warehouse", function () {
|
|
|
87 |
loadAddRemoveWarehouse("main-content");
|
|
|
88 |
});
|
|
|
89 |
|
|
|
90 |
$(document).on('click', "#warehouses-paginated .next", function () {
|
|
|
91 |
loadPaginatedNextItems('/getPaginatedWarehouses', null, 'warehouses-paginated', 'warehouses-table', null);
|
|
|
92 |
$(this).blur();
|
|
|
93 |
});
|
|
|
94 |
|
|
|
95 |
$(document).on('click', "#warehouses-paginated .previous", function () {
|
|
|
96 |
loadPaginatedPreviousItems('/getPaginatedWarehouses', null, 'warehouses-paginated', 'warehouses-table', null);
|
|
|
97 |
$(this).blur();
|
|
|
98 |
});
|
|
|
99 |
|
|
|
100 |
$(document).on('click', ".add-remove-warehouse-button", function () {
|
|
|
101 |
var emailIdOrMobileNumber = $('#emailIdOrMobileNumber').val();
|
|
|
102 |
var warehouseIds = $('#user-warehouses').val();
|
|
|
103 |
addRemoveWarehouses("main-content", emailIdOrMobileNumber, warehouseIds);
|
|
|
104 |
});
|
|
|
105 |
|
|
|
106 |
|
|
|
107 |
$(document).on('click', "#instructionItemButton", function () {
|
|
|
108 |
var warehouseId = $("#warehouseId").val();
|
|
|
109 |
var userId = $("#instructionItemModel .userId").val();
|
|
|
110 |
var itemIdQuantityMap = {};
|
|
|
111 |
$("#instructionItemsContainer .instruction-item-item-id-quantity").each(function () {
|
|
|
112 |
var $itemIdQuantity = $(this);
|
|
|
113 |
var itemId = $itemIdQuantity.find('.itemId').val();
|
|
|
114 |
console.log('itemId : ' + itemId);
|
|
|
115 |
var quantity = $itemIdQuantity.find('.quantity').val();
|
|
|
116 |
if (quantity == null || quantity <= 0) {
|
|
|
117 |
quantity = 1;
|
|
|
118 |
}
|
|
|
119 |
console.log('quantity : ' + quantity);
|
|
|
120 |
itemIdQuantityMap[itemId] = quantity;
|
|
|
121 |
});
|
|
|
122 |
submitInstructionItem(warehouseId, userId, itemIdQuantityMap);
|
|
|
123 |
return false;
|
|
|
124 |
});
|
|
|
125 |
|
| 23783 |
ashik.ali |
126 |
});
|
|
|
127 |
|
| 28300 |
tejbeer |
128 |
function configureUserWarehousesDropDown() {
|
| 32390 |
amit.gupta |
129 |
$(document).ready(function () {
|
|
|
130 |
$('#user-warehouses').multiselect({
|
|
|
131 |
includeSelectAllOption: true,
|
|
|
132 |
maxHeight: 200,
|
|
|
133 |
buttonWidth: '280px',
|
|
|
134 |
numberDisplayed: 1,
|
|
|
135 |
nonSelectedText: 'Warehouses',
|
|
|
136 |
nSelectedText: ' - Warehouses Selected',
|
|
|
137 |
allSelectedText: 'All Warehouses Selected',
|
|
|
138 |
enableFiltering: true
|
|
|
139 |
});
|
|
|
140 |
});
|
| 23882 |
ashik.ali |
141 |
}
|
|
|
142 |
|
| 28300 |
tejbeer |
143 |
function instructionItemDialog() {
|
| 32390 |
amit.gupta |
144 |
var warehouseId = $('#admin-warehouses').val();
|
|
|
145 |
var warehouseName = $('#admin-warehouses option:selected').text();
|
|
|
146 |
var itemIdItemDescriptionDiv = '<div>';
|
|
|
147 |
$("#warehouse-instruction-items option:selected").each(function () {
|
|
|
148 |
console.log(this);
|
|
|
149 |
itemIdItemDescriptionDiv = itemIdItemDescriptionDiv + '<div class="row instruction-item-item-id-quantity">';
|
|
|
150 |
itemIdItemDescriptionDiv = itemIdItemDescriptionDiv + '<div class="col-lg-6">';
|
|
|
151 |
itemIdItemDescriptionDiv = itemIdItemDescriptionDiv + '<input class="itemId" hidden value="' + this.value + '"/>';
|
|
|
152 |
itemIdItemDescriptionDiv = itemIdItemDescriptionDiv + '<p class="form-control">' + this.text + '</p>';
|
|
|
153 |
itemIdItemDescriptionDiv = itemIdItemDescriptionDiv + '</div>';
|
|
|
154 |
itemIdItemDescriptionDiv = itemIdItemDescriptionDiv + '<div class="col-lg-2">';
|
|
|
155 |
itemIdItemDescriptionDiv = itemIdItemDescriptionDiv + '<input type="text" class="form-control quantity" placeholder="Quantity" />';
|
|
|
156 |
itemIdItemDescriptionDiv = itemIdItemDescriptionDiv + '</div>';
|
|
|
157 |
itemIdItemDescriptionDiv = itemIdItemDescriptionDiv + '</div>';
|
|
|
158 |
});
|
|
|
159 |
itemIdItemDescriptionDiv = itemIdItemDescriptionDiv + '</div>';
|
| 23882 |
ashik.ali |
160 |
|
| 32390 |
amit.gupta |
161 |
var userId = $('#fofo-users').val();
|
|
|
162 |
var userEmailId = $('#fofo-users option:selected').text();
|
| 23882 |
ashik.ali |
163 |
|
| 32390 |
amit.gupta |
164 |
console.log("warehouseId : " + warehouseId);
|
|
|
165 |
console.log("warehouseName : " + warehouseName);
|
|
|
166 |
console.log("userId : " + userId);
|
|
|
167 |
console.log("userEmailId : " + userEmailId);
|
| 28300 |
tejbeer |
168 |
|
| 32390 |
amit.gupta |
169 |
$("#instructionItemModel .warehouseId").val(warehouseId);
|
|
|
170 |
$("#instructionItemModel .userId").val(userId);
|
| 28300 |
tejbeer |
171 |
|
| 32390 |
amit.gupta |
172 |
//$(".modal-body .warehouseInformation>span").text(warehouseName);
|
|
|
173 |
$(".modal-body .userInformation>span").text(userEmailId);
|
|
|
174 |
$("#instructionItemsContainer").empty();
|
|
|
175 |
$("#instructionItemsContainer").html(itemIdItemDescriptionDiv);
|
| 28300 |
tejbeer |
176 |
|
| 23882 |
ashik.ali |
177 |
}
|
|
|
178 |
|
| 28300 |
tejbeer |
179 |
function submitInstructionItem(warehouseId, userId, itemIdQuantityMap) {
|
| 32390 |
amit.gupta |
180 |
var postData = JSON.stringify({
|
|
|
181 |
"warehouseId": parseInt(warehouseId),
|
|
|
182 |
"userId": userId,
|
|
|
183 |
"itemIdQuantityMap": itemIdQuantityMap
|
|
|
184 |
});
|
|
|
185 |
doPostAjaxRequestWithJsonHandler(context + "/instructionItem", postData, function (response) {
|
|
|
186 |
$('#main-content').html(response);
|
|
|
187 |
alert("Instructoin created successfully");
|
|
|
188 |
});
|
| 23882 |
ashik.ali |
189 |
}
|
|
|
190 |
|
| 28300 |
tejbeer |
191 |
function configureWarehouseInstructionItemsDropDown() {
|
| 32390 |
amit.gupta |
192 |
$(document).ready(function () {
|
|
|
193 |
$('#warehouse-instruction-items').multiselect({
|
|
|
194 |
multiple: true,
|
|
|
195 |
includeSelectAllOption: true,
|
|
|
196 |
maxHeight: 200,
|
|
|
197 |
buttonWidth: '200px',
|
|
|
198 |
numberDisplayed: 1,
|
|
|
199 |
nonSelectedText: 'Items',
|
|
|
200 |
nSelectedText: ' - Items Selected',
|
|
|
201 |
allSelectedText: 'All Items Selected',
|
|
|
202 |
enableFiltering: true
|
|
|
203 |
});
|
|
|
204 |
});
|
| 23882 |
ashik.ali |
205 |
}
|
|
|
206 |
|
| 28300 |
tejbeer |
207 |
function configureWarehousesDropDown() {
|
| 32390 |
amit.gupta |
208 |
$(document).ready(function () {
|
|
|
209 |
$('#admin-warehouses').multiselect({
|
|
|
210 |
multiple: false,
|
|
|
211 |
includeSelectAllOption: true,
|
|
|
212 |
maxHeight: 200,
|
|
|
213 |
buttonWidth: '200px',
|
|
|
214 |
numberDisplayed: 1,
|
|
|
215 |
nonSelectedText: 'Warehouses',
|
|
|
216 |
nSelectedText: ' - Warehouses Selected',
|
|
|
217 |
allSelectedText: 'All Warehouses Selected',
|
|
|
218 |
enableFiltering: true
|
|
|
219 |
});
|
|
|
220 |
});
|
| 23882 |
ashik.ali |
221 |
}
|
|
|
222 |
|
| 28300 |
tejbeer |
223 |
function loadCreateWarehouse(domId) {
|
| 32390 |
amit.gupta |
224 |
doGetAjaxRequestHandler(context + "/createWarehouse", function (response) {
|
|
|
225 |
$('#' + domId).html(response);
|
|
|
226 |
});
|
| 23783 |
ashik.ali |
227 |
}
|
|
|
228 |
|
| 28493 |
tejbeer |
229 |
function loadTaxation(domId) {
|
| 32390 |
amit.gupta |
230 |
doGetAjaxRequestHandler(context + "/createTaxation", function (response) {
|
|
|
231 |
$('#' + domId).html(response);
|
|
|
232 |
});
|
| 28493 |
tejbeer |
233 |
}
|
|
|
234 |
|
| 28300 |
tejbeer |
235 |
function loadWarehouses(domId) {
|
| 32390 |
amit.gupta |
236 |
doGetAjaxRequestHandler(context + "/getWarehouses", function (response) {
|
|
|
237 |
$('#' + domId).html(response);
|
|
|
238 |
});
|
| 23783 |
ashik.ali |
239 |
}
|
|
|
240 |
|
| 28300 |
tejbeer |
241 |
function loadWarehouseInstructionItemsByWarehouseId(domId, warehouseId) {
|
| 32390 |
amit.gupta |
242 |
doGetAjaxRequestHandler(context + "/getInstructionItemsByWarehouseId?warehouseId=" + warehouseId, function (response) {
|
|
|
243 |
$('#' + domId).html(response);
|
|
|
244 |
configureWarehouseInstructionItemsDropDown();
|
|
|
245 |
});
|
| 23882 |
ashik.ali |
246 |
}
|
|
|
247 |
|
| 28300 |
tejbeer |
248 |
function loadInstructionItems(warehouseId, domId) {
|
| 32390 |
amit.gupta |
249 |
doGetAjaxRequestHandler(context + "/getInstructionItems/" + warehouseId, function (response) {
|
|
|
250 |
$('#' + domId).html(response);
|
|
|
251 |
});
|
| 23882 |
ashik.ali |
252 |
}
|
|
|
253 |
|
| 28300 |
tejbeer |
254 |
function loadAddRemoveWarehouse(domId) {
|
| 32390 |
amit.gupta |
255 |
doGetAjaxRequestHandler(context + "/getAddRemoveWarehouse", function (response) {
|
|
|
256 |
$('#' + domId).html(response);
|
|
|
257 |
});
|
| 23882 |
ashik.ali |
258 |
}
|
|
|
259 |
|
| 28300 |
tejbeer |
260 |
function getAllSupplier(domId) {
|
| 32390 |
amit.gupta |
261 |
doGetAjaxRequestHandler(context + "/getAllSupplier", function (response) {
|
|
|
262 |
$('#' + domId).html(response);
|
|
|
263 |
});
|
| 28300 |
tejbeer |
264 |
}
|
|
|
265 |
|
|
|
266 |
function getAllInActiveSupplier(domId) {
|
| 32390 |
amit.gupta |
267 |
doGetAjaxRequestHandler(context + "/getAllInActiveSupplier", function (response) {
|
|
|
268 |
$('#' + domId).html(response);
|
|
|
269 |
});
|
| 28300 |
tejbeer |
270 |
}
|
|
|
271 |
|
|
|
272 |
|
|
|
273 |
function addRemoveWarehouses(domId, emailIdOrMobileNumber, warehouseIds) {
|
| 32390 |
amit.gupta |
274 |
if (confirm("Are you sure you want to add or remove warehouses!") == true) {
|
|
|
275 |
doPostAjaxRequestWithJsonHandler(context + "/addRemoveWarehouses?emailIdOrMobileNumber=" + emailIdOrMobileNumber, JSON.stringify(warehouseIds), function (response) {
|
|
|
276 |
$('#' + domId).html(response);
|
|
|
277 |
$('#emailIdOrMobileNumber').val(emailIdOrMobileNumber);
|
|
|
278 |
getWarehousesByEmailIdOrMobileNumber();
|
|
|
279 |
});
|
|
|
280 |
}
|
| 23882 |
ashik.ali |
281 |
}
|
|
|
282 |
|
| 28300 |
tejbeer |
283 |
function getWarehousesByEmailIdOrMobileNumber() {
|
| 32390 |
amit.gupta |
284 |
var emailIdOrMobileNumber = $('#emailIdOrMobileNumber').val();
|
|
|
285 |
console.log("emailIdOrMobileNumber = " + emailIdOrMobileNumber);
|
|
|
286 |
if (emailIdOrMobileNumber != "") {
|
|
|
287 |
loadWarehousesByEmailIdOrMobileNumber("warehouses-container", emailIdOrMobileNumber);
|
|
|
288 |
}
|
| 23882 |
ashik.ali |
289 |
}
|
|
|
290 |
|
| 28300 |
tejbeer |
291 |
function loadWarehousesByEmailIdOrMobileNumber(domId, emailIdOrMobileNumber) {
|
| 32390 |
amit.gupta |
292 |
doGetAjaxRequestHandler(context + "/userWarehouses?emailIdOrMobileNumber=" + emailIdOrMobileNumber, function (response) {
|
|
|
293 |
$('#' + domId).html(response);
|
|
|
294 |
configureUserWarehousesDropDown();
|
|
|
295 |
});
|
| 23882 |
ashik.ali |
296 |
}
|
|
|
297 |
|
| 32390 |
amit.gupta |
298 |
$(document).on('click', "#new-supplier", function () {
|
| 28493 |
tejbeer |
299 |
|
| 32390 |
amit.gupta |
300 |
doGetAjaxRequestHandler(context + "/getCreateNewSupplier", function (response) {
|
|
|
301 |
$("#main-content").html(response);
|
| 28493 |
tejbeer |
302 |
|
| 32390 |
amit.gupta |
303 |
});
|
| 28493 |
tejbeer |
304 |
|
|
|
305 |
|
| 32390 |
amit.gupta |
306 |
});
|
| 28493 |
tejbeer |
307 |
|
| 32390 |
amit.gupta |
308 |
|
|
|
309 |
$(document).on('click', ".create-supplier-submit", function () {
|
|
|
310 |
console.log("hello");
|
|
|
311 |
var name = $("form#new-supplier-create-form input[name=inputName]").val();
|
|
|
312 |
if (name === "") {
|
|
|
313 |
alert("Name is required");
|
|
|
314 |
return false;
|
|
|
315 |
}
|
|
|
316 |
var phone = $("form#new-supplier-create-form input[name=inputPhone]").val();
|
|
|
317 |
if (phone === "") {
|
|
|
318 |
alert("phone is required");
|
|
|
319 |
return false;
|
|
|
320 |
}
|
|
|
321 |
var gst = $("form#new-supplier-create-form input[name=inputGst]").val();
|
|
|
322 |
if (gst === "") {
|
|
|
323 |
alert("gst is required");
|
|
|
324 |
return false;
|
|
|
325 |
}
|
|
|
326 |
var pan = $("form#new-supplier-create-form input[name=inputPan]").val();
|
|
|
327 |
if (pan === "") {
|
|
|
328 |
alert("Pan is required");
|
|
|
329 |
return false;
|
|
|
330 |
}
|
|
|
331 |
var headName = $("form#new-supplier-create-form input[name=inputHeadName]").val();
|
|
|
332 |
if (headName === "") {
|
|
|
333 |
alert("Head Name is required");
|
|
|
334 |
return false;
|
|
|
335 |
}
|
|
|
336 |
var headDesign = $("form#new-supplier-create-form input[name=inputHeadDesig]").val();
|
|
|
337 |
if (headDesign === "") {
|
|
|
338 |
alert("Head Designation is required");
|
|
|
339 |
return false;
|
|
|
340 |
}
|
|
|
341 |
|
|
|
342 |
var headEmail = $("form#new-supplier-create-form input[name=inputHeadEmail]").val();
|
|
|
343 |
if (headEmail === "") {
|
|
|
344 |
alert("Head Email is required");
|
|
|
345 |
return false;
|
|
|
346 |
}
|
|
|
347 |
var contactPerson = $("form#new-supplier-create-form input[name=inputContactPerson]").val();
|
|
|
348 |
if (contactPerson === "") {
|
|
|
349 |
alert("Contact Person is required");
|
|
|
350 |
return false;
|
|
|
351 |
}
|
|
|
352 |
var registeredAddress = $("form#new-supplier-create-form input[name=inputRegisteredAddress]").val();
|
|
|
353 |
if (registeredAddress === "") {
|
|
|
354 |
alert("Registered Address is required");
|
|
|
355 |
return false;
|
|
|
356 |
}
|
|
|
357 |
var communicationAddress = $("form#new-supplier-create-form input[name=inputCommunicationAddress]").val();
|
|
|
358 |
|
|
|
359 |
if (communicationAddress === "") {
|
|
|
360 |
alert("Communication Address is required");
|
|
|
361 |
return false;
|
|
|
362 |
}
|
|
|
363 |
var warehouseId = $("#warehouseLocation").val();
|
|
|
364 |
if (warehouseId === "") {
|
|
|
365 |
alert("Warehouse Location is required");
|
|
|
366 |
return false;
|
|
|
367 |
}
|
|
|
368 |
|
|
|
369 |
var state = $("#stateId").val();
|
|
|
370 |
if (state === "") {
|
|
|
371 |
alert("state is required");
|
|
|
372 |
return false;
|
|
|
373 |
}
|
|
|
374 |
var pOValidityLimit = $("form#new-supplier-create-form input[name=inputPOValidityLimit]").val();
|
|
|
375 |
if (pOValidityLimit === "") {
|
|
|
376 |
alert("pOValidityLimit is required");
|
|
|
377 |
return false;
|
|
|
378 |
}
|
|
|
379 |
var termConditions = $("form#new-supplier-create-form input[name=inputTermConditions]").val();
|
|
|
380 |
if (termConditions === "") {
|
|
|
381 |
alert("termConditions is required");
|
|
|
382 |
return false;
|
|
|
383 |
}
|
|
|
384 |
|
|
|
385 |
var json = newSuppilerObjectJson();
|
|
|
386 |
|
|
|
387 |
|
|
|
388 |
if (confirm("Are you sure you want to create supplier") == true) {
|
|
|
389 |
doAjaxRequestWithJsonHandler(context + "/submitNewSupplier", "POST", json, function (response) {
|
|
|
390 |
if (response == "true") {
|
|
|
391 |
if (confirm("Are you sure you want to create New Supplier") == true) {
|
|
|
392 |
|
|
|
393 |
$("#main-content").html(response);
|
|
|
394 |
}
|
|
|
395 |
}
|
|
|
396 |
});
|
|
|
397 |
}
|
|
|
398 |
});
|
|
|
399 |
|
| 28493 |
tejbeer |
400 |
function newSuppilerObjectJson() {
|
| 32390 |
amit.gupta |
401 |
var newSupplierCreateObject = {};
|
| 28493 |
tejbeer |
402 |
|
| 32390 |
amit.gupta |
403 |
newSupplierCreateObject['name'] = $("form#new-supplier-create-form input[name=inputName]").val();
|
|
|
404 |
|
| 28493 |
tejbeer |
405 |
newSupplierCreateObject['phone'] = $("form#new-supplier-create-form input[name=inputPhone]").val();
|
|
|
406 |
newSupplierCreateObject['gst'] = $("form#new-supplier-create-form input[name=inputGst]").val();
|
|
|
407 |
newSupplierCreateObject['pan'] = $("form#new-supplier-create-form input[name=inputPan]").val();
|
|
|
408 |
newSupplierCreateObject['fax'] = $("form#new-supplier-create-form input[name=inputFax]").val();
|
|
|
409 |
newSupplierCreateObject['headName'] = $("form#new-supplier-create-form input[name=inputHeadName]").val();
|
|
|
410 |
newSupplierCreateObject['headDesign'] = $("form#new-supplier-create-form input[name=inputHeadDesig]").val();
|
|
|
411 |
newSupplierCreateObject['headEmail'] = $("form#new-supplier-create-form input[name=inputHeadEmail]").val();
|
|
|
412 |
newSupplierCreateObject['contactPerson'] = $("form#new-supplier-create-form input[name=inputContactPerson]").val();
|
|
|
413 |
newSupplierCreateObject['contactEmail'] = $("form#new-supplier-create-form input[name=inputContactEmail]").val();
|
|
|
414 |
newSupplierCreateObject['contactFax'] = $("form#new-supplier-create-form input[name=inputContactFax]").val();
|
|
|
415 |
newSupplierCreateObject['registeredAddress'] = $("form#new-supplier-create-form input[name=inputRegisteredAddress]").val();
|
|
|
416 |
newSupplierCreateObject['communicationAddress'] = $("form#new-supplier-create-form input[name=inputCommunicationAddress]").val();
|
|
|
417 |
newSupplierCreateObject['termConditions'] = $("form#new-supplier-create-form input[name=inputTermConditions]").val();
|
|
|
418 |
newSupplierCreateObject['warehouseId'] = $("#warehouseLocation").val();
|
|
|
419 |
newSupplierCreateObject['state'] = $("#stateId").val();
|
|
|
420 |
newSupplierCreateObject['pOValidityLimit'] = $("form#new-supplier-create-form input[name=inputPOValidityLimit]").val();
|
|
|
421 |
|
|
|
422 |
|
| 32390 |
amit.gupta |
423 |
return JSON.stringify(newSupplierCreateObject);
|
| 28493 |
tejbeer |
424 |
}
|
|
|
425 |
|
|
|
426 |
|
|
|
427 |
|
|
|
428 |
|
|
|
429 |
|
|
|
430 |
|
|
|
431 |
|