changes in purchase module 11-03-2025

This commit is contained in:
vadivelJ96 2025-03-11 11:39:23 +05:30
parent fdc07e8fe4
commit 976a77d344
3 changed files with 19 additions and 5 deletions

View File

@ -47,8 +47,7 @@
<select class="form-control required " required id="PONO" required name="PONO">
<option value="">Select PO Number</option>
<?php
echo "////***////";
print_r($po);
if (!empty($po)) {
foreach ($po as $po) {

View File

@ -432,11 +432,22 @@ dateInput.addEventListener('change', function () {
$('.modal-title').html('Add Expense');
$('#transporterfile').val(''); // Clear the file input
$('#currentFileName').text(''); // Clear the file name display
$('#supplierid').val('').trigger('change');
$('#remarks').val('');
$('#cost').val('');
$('#gst').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('');
var supplier_list = [<?php echo $supplier_list; ?>];
$('#supplierid').empty(); // Clear the supplier dropdown
@ -446,6 +457,9 @@ dateInput.addEventListener('change', function () {
$('#supplierid').append('<option value="' + supplier.SupplierID + '">' + supplier.SupplierName + '</option>');
});
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();
$('#expenseForm')[0].reset();
$('#file-name-display').text(''); // Clear the file name display
$('#expenseModal').modal('hide');
window.location.reload();
} else {
$('#loader').hide();

View File

@ -143,7 +143,7 @@ if (!empty($Emp)) {
<th class="th">SNo</th>
<th class="th">Material Code</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:right !important;">Quantity</th>
<th class="th">Action</th>
@ -683,7 +683,7 @@ if (!empty($Emp)) {
<td align="center">${temp}</td>
<td align="center">${materialCode}</td>
<td align="left">${materialName}</td>
<td align="center">${categoryName}</td>
<td align="left">${categoryName}</td>
<td align="left">${uom}</td>
<td align="right">${quantity}</td>
<td align="center">