changes
This commit is contained in:
@ -174,6 +174,33 @@
|
||||
// newRow.find('.select2').select2();
|
||||
// calculateTotals();
|
||||
});
|
||||
|
||||
// $(document).on('change', '.select_item', function(){
|
||||
|
||||
// var selectedOption = $(this).find(':selected');
|
||||
// var selectedValue = selectedOption.val();
|
||||
// alert(selectedValue);
|
||||
// var unitInput = $(this).closest('.sales-detail-duplicator').find('.item_unit');
|
||||
// if (selectedValue) {
|
||||
// $.ajax({
|
||||
// url: '<?php //echo base_url(); ?>application/controllers/inventory/Sales/getUnitByItemId/' + selectedValue,
|
||||
// method: 'POST',
|
||||
// success: function(response) {
|
||||
// console.log(response);
|
||||
// unitInput.val(unitName);
|
||||
// alert("Selected Item Value: " + selectedValue + "\nUnit: " + unitName);
|
||||
// },
|
||||
// error: function() {
|
||||
// alert("Error retrieving unit data.");
|
||||
// }
|
||||
// });
|
||||
// } else {
|
||||
// unitInput.val('');
|
||||
// alert("No item selected.");
|
||||
// }
|
||||
// });
|
||||
|
||||
|
||||
// $(document).on("click", ".remove-sales-detail", function() {
|
||||
// $(this).closest(".sales-detail").remove();
|
||||
// calculateTotals();
|
||||
|
Reference in New Issue
Block a user