changes in purchase module 11-03-2025
This commit is contained in:
parent
fdc07e8fe4
commit
976a77d344
@ -47,8 +47,7 @@
|
|||||||
<select class="form-control required " required id="PONO" required name="PONO">
|
<select class="form-control required " required id="PONO" required name="PONO">
|
||||||
<option value="">Select PO Number</option>
|
<option value="">Select PO Number</option>
|
||||||
<?php
|
<?php
|
||||||
echo "////***////";
|
|
||||||
print_r($po);
|
|
||||||
if (!empty($po)) {
|
if (!empty($po)) {
|
||||||
foreach ($po as $po) {
|
foreach ($po as $po) {
|
||||||
|
|
||||||
|
|||||||
@ -432,11 +432,22 @@ dateInput.addEventListener('change', function () {
|
|||||||
$('.modal-title').html('Add Expense');
|
$('.modal-title').html('Add Expense');
|
||||||
$('#transporterfile').val(''); // Clear the file input
|
$('#transporterfile').val(''); // Clear the file input
|
||||||
$('#currentFileName').text(''); // Clear the file name display
|
$('#currentFileName').text(''); // Clear the file name display
|
||||||
$('#supplierid').val('').trigger('change');
|
|
||||||
$('#remarks').val('');
|
$('#remarks').val('');
|
||||||
$('#cost').val('');
|
$('#cost').val('');
|
||||||
$('#gst').val('');
|
$('#gst').val('');
|
||||||
$('#total').val('');
|
$('#total').val('');
|
||||||
|
$('#transporterfile').val(''); // Clear the file input
|
||||||
|
$('#currentFileName').text(''); // Clear the file name display
|
||||||
|
$('#supplierid').val('').trigger('change');
|
||||||
|
$('#item_description').val('');
|
||||||
|
$('#cgst').val('');
|
||||||
|
$('#sgst').val('');
|
||||||
|
$('#igst').val('');
|
||||||
|
$('#total').val('');
|
||||||
|
$('#non_igr_status').val('');
|
||||||
|
$('#bill_no').val('');
|
||||||
|
$('#bill_date').val('');
|
||||||
|
|
||||||
// $('#status').val('');
|
// $('#status').val('');
|
||||||
var supplier_list = [<?php echo $supplier_list; ?>];
|
var supplier_list = [<?php echo $supplier_list; ?>];
|
||||||
$('#supplierid').empty(); // Clear the supplier dropdown
|
$('#supplierid').empty(); // Clear the supplier dropdown
|
||||||
@ -446,6 +457,9 @@ dateInput.addEventListener('change', function () {
|
|||||||
$('#supplierid').append('<option value="' + supplier.SupplierID + '">' + supplier.SupplierName + '</option>');
|
$('#supplierid').append('<option value="' + supplier.SupplierID + '">' + supplier.SupplierName + '</option>');
|
||||||
});
|
});
|
||||||
formActionUrl = '<?php echo base_url() . 'addExpense' ?>'; // Set action URL for adding
|
formActionUrl = '<?php echo base_url() . 'addExpense' ?>'; // Set action URL for adding
|
||||||
|
|
||||||
|
$('#addExpense').attr('href', formActionUrl);
|
||||||
|
|
||||||
|
|
||||||
});
|
});
|
||||||
|
|
||||||
@ -474,6 +488,7 @@ dateInput.addEventListener('change', function () {
|
|||||||
$('#loader').hide();
|
$('#loader').hide();
|
||||||
$('#expenseForm')[0].reset();
|
$('#expenseForm')[0].reset();
|
||||||
$('#file-name-display').text(''); // Clear the file name display
|
$('#file-name-display').text(''); // Clear the file name display
|
||||||
|
$('#expenseModal').modal('hide');
|
||||||
window.location.reload();
|
window.location.reload();
|
||||||
} else {
|
} else {
|
||||||
$('#loader').hide();
|
$('#loader').hide();
|
||||||
|
|||||||
@ -143,7 +143,7 @@ if (!empty($Emp)) {
|
|||||||
<th class="th">SNo</th>
|
<th class="th">SNo</th>
|
||||||
<th class="th">Material Code</th>
|
<th class="th">Material Code</th>
|
||||||
<th class="th" style="text-align:left !important;">Material Name</th>
|
<th class="th" style="text-align:left !important;">Material Name</th>
|
||||||
<th class="th">Material Category</th>
|
<th class="th" style="text-align:left !important;">Material Category</th>
|
||||||
<th class="th" style="text-align:left !important;">Uom</th>
|
<th class="th" style="text-align:left !important;">Uom</th>
|
||||||
<th class="th" style="text-align:right !important;">Quantity</th>
|
<th class="th" style="text-align:right !important;">Quantity</th>
|
||||||
<th class="th">Action</th>
|
<th class="th">Action</th>
|
||||||
@ -683,7 +683,7 @@ if (!empty($Emp)) {
|
|||||||
<td align="center">${temp}</td>
|
<td align="center">${temp}</td>
|
||||||
<td align="center">${materialCode}</td>
|
<td align="center">${materialCode}</td>
|
||||||
<td align="left">${materialName}</td>
|
<td align="left">${materialName}</td>
|
||||||
<td align="center">${categoryName}</td>
|
<td align="left">${categoryName}</td>
|
||||||
<td align="left">${uom}</td>
|
<td align="left">${uom}</td>
|
||||||
<td align="right">${quantity}</td>
|
<td align="right">${quantity}</td>
|
||||||
<td align="center">
|
<td align="center">
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user