Subversion Repositories SmartDukaan

Rev

Rev 7410 | Rev 9416 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 7410 Rev 7676
Line 17... Line 17...
17
        url       : '/inventory/purchase-order!getModelNameXferPrice',
17
        url       : '/inventory/purchase-order!getModelNameXferPrice',
18
        data      : 'itemId=' + itemId + '&supplierId=' + supplierId,
18
        data      : 'itemId=' + itemId + '&supplierId=' + supplierId,
19
        success   : function(response) {
19
        success   : function(response) {
20
            $(trElement).find('div#modelName').html(response.split('~')[0]);
20
            $(trElement).find('div#modelName').html(response.split('~')[0]);
21
            $(trElement).find('input[name="unitPrice"]').val(response.split('~')[1]);
21
            $(trElement).find('input[name="unitPrice"]').val(response.split('~')[1]);
-
 
22
            $(trElement).find('input[name="nlc"]').val(response.split('~')[2]);
22
        }
23
        }
23
    });
24
    });
24
}
25
}
25
 
26
 
26
function closePO(id){
27
function closePO(id){