diff --git a/app/Controllers/StockController.php b/app/Controllers/StockController.php index 952f5bc0..aa61707d 100644 --- a/app/Controllers/StockController.php +++ b/app/Controllers/StockController.php @@ -413,7 +413,7 @@ class StockController extends BaseController '_140' => $postData['140Mm'], '_200' => $postData['200Mm'], '_300' => $postData['300Mm'], - 'pan' => $postData['pan'], + 'pan' => $postData['pan'], 'total' => $postData['total'], 'plus20loss' => $postData['plus20Loss'], 'plus30Loss' => $postData['plus30Loss'], @@ -1231,19 +1231,6 @@ class StockController extends BaseController ->orderBy('date','asc') ->findAll(); - if (!count($data['drierDetails'])) { - //insert empty data - $tempInsert = []; - foreach ($monthData as $key => $value) { - array_push($tempInsert, ['date' => $value['database']]); - } - $this->drierMachineDetails_model->insertBatch($tempInsert); - - $data['drierDetails'] = $this->drierMachineDetails_model->where('date >=', $data['startDate']) - ->where('date <=', $data['endDate']) - ->orderBy('date','asc') - ->findAll(); - } $data['datefordropdown'] = $currentMonth; diff --git a/app/Views/addSupplier.php b/app/Views/addSupplier.php index 4de6577b..077ebcf9 100755 --- a/app/Views/addSupplier.php +++ b/app/Views/addSupplier.php @@ -179,9 +179,10 @@
- Payable Terms - + - + + + + - + + + +

+
+

No Drier machine details present for this month..!!

+
+ + + +
+
@@ -779,9 +793,6 @@ $datefordropdown = format_date($datefordropdown, 0, 'M-Y'); if (qtyPerHrs && qtyPerHrs != NaN && qtyPerHrs != Infinity) tr.find('td:eq(11)').text(qtyPerHrs.toFixed(3)); - - - } } @@ -907,12 +918,12 @@ $datefordropdown = format_date($datefordropdown, 0, 'M-Y'); $('#drierTable').find('tbody tr').each(function() { const rowCells = $(this).find('td'); - let tableDate = rowCells.eq(0).text(); // prints every date in the month from 1 to 30 . + let tableDate = rowCells.eq(0).text(); let result = checkDateRange(fromDate,toDate,tableDate); if (result) { - $(this).show(); // Show the row if the date is within range + $(this).show(); } else { - $(this).hide(); // Hide the row if the date is out of range + $(this).hide(); } }); diff --git a/app/Views/editSupplier.php b/app/Views/editSupplier.php index 17ad6115..9d71f04b 100755 --- a/app/Views/editSupplier.php +++ b/app/Views/editSupplier.php @@ -502,9 +502,9 @@ if (!empty($supplier)) {
- +