Changed logic for efficiency for production report and commented in mail report capacity quantity
Some checks failed
Scan for leaked secrets using Kingfisher / kingfisher-secrets-scan (push) Successful in 14s
Scan for leaked secrets using Kingfisher / kingfisher-secrets-scan (pull_request) Successful in 16s
Gemini PR Review / Gemini PR Review (pull_request) Failing after 24s
Laravel Pint / pint (pull_request) Successful in 3m47s
Laravel Larastan / larastan (pull_request) Failing after 4m26s

This commit is contained in:
dhanabalan
2026-09-25 10:45:08 +05:30
parent f0980a6396
commit 24c9077f30
2 changed files with 6 additions and 6 deletions

View File

@@ -74,7 +74,7 @@ class SendProductionReport extends Command
$tableData = [];
$no = 1;
// .
// ..
// foreach ($plants as $plant) {
// $lines = Line::where('plant_id', $plant->id)->get();
@@ -240,8 +240,8 @@ class SendProductionReport extends Command
->count();
}
if ($capacityQuan > 0) {
$efficiency = ($productionQuantity / $capacityQuan) * 100;
if ($totalTargetQuantity > 0) {
$efficiency = ($totalTargetQuantity / $productionQuantity) * 100;
} else {
$efficiency = 0;
}