Perbaikan Collection Datetime dan Laporan Hasil
This commit is contained in:
parent
4fc51b8250
commit
670a3367a6
@ -775,7 +775,7 @@ class PrintResult extends BaseController {
|
|||||||
$i++;
|
$i++;
|
||||||
|
|
||||||
// Melebihi batas Kertas
|
// Melebihi batas Kertas
|
||||||
if($i % 21 == 0) {
|
if($i % 25 == 0) {
|
||||||
$resultTest .= "</table></div>";
|
$resultTest .= "</table></div>";
|
||||||
$fullPage .= $headPage.$resultTest.$footerPage.$lastDiv;
|
$fullPage .= $headPage.$resultTest.$footerPage.$lastDiv;
|
||||||
$i=0;
|
$i=0;
|
||||||
@ -815,7 +815,7 @@ class PrintResult extends BaseController {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Melebihi batas Kertas
|
// Melebihi batas Kertas
|
||||||
if($i % 21 == 0 && $i!=0) {
|
if($i % 25 == 0 && $i!=0) {
|
||||||
$resultTest .= "</table></div>";
|
$resultTest .= "</table></div>";
|
||||||
$fullPage .= $headPage.$resultTest.$footerPage.$lastDiv;
|
$fullPage .= $headPage.$resultTest.$footerPage.$lastDiv;
|
||||||
$i=0;
|
$i=0;
|
||||||
@ -924,7 +924,7 @@ class PrintResult extends BaseController {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Melebihi batas Kertas
|
// Melebihi batas Kertas
|
||||||
if($i % 21 == 0 && $i != 0) {
|
if($i % 25 == 0 && $i != 0) {
|
||||||
$resultTest .= "</table></div>";
|
$resultTest .= "</table></div>";
|
||||||
$fullPage .= $headPage.$resultTest.$footerPage.$lastDiv;
|
$fullPage .= $headPage.$resultTest.$footerPage.$lastDiv;
|
||||||
$i=0;
|
$i=0;
|
||||||
@ -996,18 +996,18 @@ class PrintResult extends BaseController {
|
|||||||
// Memisahkan Waktu yang ditampilkan pada laporan hasil
|
// Memisahkan Waktu yang ditampilkan pada laporan hasil
|
||||||
$filter_query_collection="";
|
$filter_query_collection="";
|
||||||
if ($cityid == 1) {
|
if ($cityid == 1) {
|
||||||
$filter_query_collection = " FORMAT(ct.COLLECTIONDATE, 'HH:mm') AS colltime ";
|
$filter_query_collection = " FORMAT(ct.COLLECTIONDATE, 'HH:mm') AS recvtime ";
|
||||||
} elseif ($cityid == 2) {
|
} elseif ($cityid == 2) {
|
||||||
$filter_query_collection = " FORMAT(DATEADD(HOUR, -1, ct.COLLECTIONDATE), 'HH:mm') AS colltime ";
|
$filter_query_collection = " FORMAT(DATEADD(HOUR, -1, ct.COLLECTIONDATE), 'HH:mm') AS recvtime ";
|
||||||
} else {
|
} else {
|
||||||
$filter_query_collection = " FORMAT(ct.COLLECTIONDATE, 'HH:mm') AS colltime ";
|
$filter_query_collection = " FORMAT(ct.COLLECTIONDATE, 'HH:mm') AS recvtime ";
|
||||||
}
|
}
|
||||||
// Untuk Collection
|
// Untuk Collection
|
||||||
$sql = "SELECT
|
$sql = "SELECT
|
||||||
ds.SHORTTEXT,
|
ds.SHORTTEXT,
|
||||||
FORMAT(tu.COLLECTIONDATE, 'dd-MM-yyyy') AS recvdate,
|
FORMAT(tu.COLLECTIONDATE, 'dd-MM-yyyy') AS colldate,
|
||||||
FORMAT(tu.COLLECTIONDATE, 'HH:mm') AS recvtime,
|
FORMAT(tu.COLLECTIONDATE, 'HH:mm') AS colltime,
|
||||||
FORMAT(ct.COLLECTIONDATE, 'dd-MM-yyyy') AS colldate,
|
FORMAT(ct.COLLECTIONDATE, 'dd-MM-yyyy') AS recvdate,
|
||||||
".$filter_query_collection."
|
".$filter_query_collection."
|
||||||
FROM
|
FROM
|
||||||
SP_TUBES tu
|
SP_TUBES tu
|
||||||
|
|||||||
@ -63,8 +63,8 @@ table {
|
|||||||
}
|
}
|
||||||
th,td {
|
th,td {
|
||||||
/* padding-left: 1rem; */
|
/* padding-left: 1rem; */
|
||||||
padding-top: 5px ;
|
padding-top: 4px;
|
||||||
padding-bottom: 5px ;
|
padding-bottom: 4px ;
|
||||||
line-height:1.5;
|
line-height:1.5;
|
||||||
border: 1px solid rgb(0, 0, 0);
|
border: 1px solid rgb(0, 0, 0);
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user