From 4df29e877a3c363ab9d3247d949d7e4d30e7696a Mon Sep 17 00:00:00 2001
From: mahdahar <89adham@gmail.com>
Date: Wed, 4 Mar 2026 13:59:51 +0700
Subject: [PATCH] Update traditional QC report: bold uppercase testname, change
to 2SD range, red/blue chart colors
---
app/Views/report/custom1.php | 12 ++++++------
1 file changed, 6 insertions(+), 6 deletions(-)
diff --git a/app/Views/report/custom1.php b/app/Views/report/custom1.php
index f8df03c..307c703 100644
--- a/app/Views/report/custom1.php
+++ b/app/Views/report/custom1.php
@@ -88,7 +88,7 @@
| Test |
- |
+ |
Unit / Method |
|
@@ -101,9 +101,9 @@
-
+
-
+
@@ -695,7 +695,7 @@
month: '',
chart: null,
lastRequestId: 0,
- controlColors: ['#c85a9e', '#d2691e', '#228b22', '#4169e1', '#ff6347', '#9370db'],
+ controlColors: ['#ff0000', '#0000ff', '#228b22', '#4169e1', '#ff6347', '#9370db'],
init() {
const now = new Date();
@@ -1003,12 +1003,12 @@
getMinus3SD(control) {
if (!control.mean || !control.sd) return '-';
- return parseFloat(control.mean) - 3 * parseFloat(control.sd);
+ return parseFloat(control.mean) - 2 * parseFloat(control.sd);
},
getPlus3SD(control) {
if (!control.mean || !control.sd) return '-';
- return parseFloat(control.mean) + 3 * parseFloat(control.sd);
+ return parseFloat(control.mean) + 2 * parseFloat(control.sd);
},
getControlColor(index) {