diff --git a/app/Views/bagStockDetails.php b/app/Views/bagStockDetails.php
index a8a10082..ff8bd25c 100644
--- a/app/Views/bagStockDetails.php
+++ b/app/Views/bagStockDetails.php
@@ -271,10 +271,15 @@
+
+
$bagStock){ ?>
+ format('d-m-Y');
+ ?>
|
- = $bagStock['date'] ?>
+ = $startDate ?>
|
@@ -290,15 +295,19 @@
+ oninput="openingStockChange(this)"
contenteditable="true"
+
>= $bagStock['opening']?>
|
+ data-id="=$bagStock['date']?> =$bagStock['materialCode']?>"
+ oninput="receiptStockChange(this)"
+ contenteditable="true">
= $bagStock['receipt']?>
|
@@ -319,52 +328,83 @@
-
+
modify('first day of this month')->format('Y-m-d');
+ $endDate = $date->modify('last day of this month')->format('Y-m-d');
+
+ $datesInMonth = [];
+
+
+ $period = new DatePeriod(
+ new DateTime($startDate),
+ new DateInterval('P1D'),
+ (new DateTime($endDate))->modify('+1 day')
+ );
+
+ foreach ($period as $day) {
+ $datesInMonth[] = $day->format('Y-m-d');
+ }
+
+ ?>
+
+ $dateInMonth){ ?>
+
+ $bagMaterial){ ?>
+
+
+
+ format('d-m-Y');
+ ?>
+ |
+ = $startDate ?>
+ |
+
- $date = DateTime::createFromFormat('M-Y', $month);
- $month = $date->format('m-Y');
- $startDate = "01-$month";
+
+ = $dateInMonth?>
+ |
- ?>
- = $startDate?> |
+
+ = $bagMaterial['MaterialCode']?>
+ |
-
-
-
-
- = $startDate?>
- |
-
-
- = $bagMaterial['MaterialCode']?>
- |
+
+ = $bagMaterial['customers']?>
+ |
-
- = $bagMaterial['customers']?>
- |
+
+
+ oninput="openingStockChange(this)"
+ contenteditable="true"
- | 0 |
+
+ >0
- 0 | >0
+ 0 |
- 0 |
+ 0 |
- 0 |
-
+ 0 |
+
+
+
@@ -400,13 +440,13 @@
$(document).ready(function () {
-
-
+
$('#saveId').click(function () {
//table to json function
var updateBagStockDetails = tableToJson();
+
alert('Updation may take a while, And we appreciate your patience..!!');
@@ -441,7 +481,6 @@
});
-
});
@@ -476,39 +515,57 @@
return JSON.stringify(rows, null, 2);
}
-
-
-
-
+