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