urut no_tagihan desc, supervisi row-click, laporan manual do tidak dibatasi baris per halaman.
This commit is contained in:
+5
-15
@@ -7,9 +7,9 @@
|
||||
Desc. : PHP - Cetak Nota
|
||||
Created By : Siau Pheng ([email protected]).
|
||||
Created Date : April 12th, 2011.
|
||||
Last Modified : July 5th, 2025.
|
||||
Last Modified : January 25th, 2026.
|
||||
|
||||
(c) 2011 - 2025, 3FONIA Software; WWW.3FONIA.COM.
|
||||
(c) 2011 - 2026, 3FONIA Software; WWW.3FONIA.COM.
|
||||
|
||||
*******************************************************************/
|
||||
|
||||
@@ -388,7 +388,7 @@ function nota_biaya($db, $nota = "") {
|
||||
|
||||
function nota_mdo($db, $nota="") {
|
||||
if (trim($nota)=="") return;
|
||||
$asatuan = []; $ainfo = []; $baris_faktur = 25;
|
||||
$asatuan = []; $ainfo = [];
|
||||
$db->Query("SELECT Kode_Satuan FROM para_satuan ORDER BY Urut");//todo: hilangkan nomor urut
|
||||
while ($db->Next()) $asatuan[$db->Row("Kode_Satuan")] = 0;
|
||||
|
||||
@@ -396,7 +396,6 @@ function nota_mdo($db, $nota="") {
|
||||
if ($db->Next()) $ainfo = $db->AllRow();
|
||||
|
||||
$db->Query("SELECT P.Kode_Produk,R.Kode_Rasa,S.Kode_Satuan,D.Muat,D.Kembali,D.Terantar FROM (SELECT *,(Muat-Kembali) Terantar FROM manual_do_detail WHERE No_MDO='".$nota."') D LEFT JOIN inv_produk P ON (D.InvID=P.InvID) LEFT JOIN para_rasa R ON (D.RasaID=R.RasaID) LEFT JOIN para_satuan S ON (D.SatuanID=S.SatuanID) ORDER BY D.ID");
|
||||
$jml_hal = ceil($db->RecordCount() / $baris_faktur);
|
||||
|
||||
// menampilkan judul dibagian atas laporan
|
||||
$kop = '<div class="text-center"><span class="fs-6 fw-bold">'.$_SESSION['__WEB_APP']['REG_NAME'].'</span><br>DELIVERY ORDER (DO)</div>';
|
||||
@@ -410,17 +409,8 @@ function nota_mdo($db, $nota="") {
|
||||
$_line = '<tr><td class="c">%s</td><td>%s</td><td>%s</td><td class="r">%s</td><td class="r">%s</td><td class="r">%s</td></tr>';
|
||||
$_bline = '<tr><td class="b c" colspan="4">%s</td><td class="b r">%s</td><td class="b r">%s</td></tr>';
|
||||
|
||||
$body = '<p id="autopage"> </p>';
|
||||
$body .= $kop.$header; $no_urut = 1; $hal = 1; $sub_jenis = 0;
|
||||
$body = $kop.$header; $no_urut = 1; $sub_jenis = 0;
|
||||
while ($db->Next()) {
|
||||
if (fmod(($no_urut-1), $baris_faktur) == 0 && $no_urut > $baris_faktur) {
|
||||
//footer
|
||||
$body .= '</tbody></table><table class="notaFooter"><tr height="80"><td colspan="2"> </td></tr><tr><td width="50%" class="stamp">Halaman : '.$hal."/".$jml_hal.'</td><td class="r stamp">'.Report_Stamp(1,true).'</td></tr></table>';
|
||||
$body .= '<p id="linebreak">................ page break ................</p><p id="pagebreak"> </p>';
|
||||
//header
|
||||
$body .= $kop.$header;
|
||||
$hal++;
|
||||
}
|
||||
//if ($db->Row("Grup")<>$_SESSION['__APP_IAS']['GRUP_PRODUK_KEMASAN'] && $db->Row("Grup")<>$_SESSION['__APP_IAS']['GRUP_PRODUK_HADIAH']) {
|
||||
$asatuan[$db->Row("Kode_Satuan")] += $db->RowFloat("Terantar");
|
||||
$sub_jenis++;
|
||||
@@ -434,7 +424,7 @@ function nota_mdo($db, $nota="") {
|
||||
$ket_produk = substr($ket_produk, 3);
|
||||
$body .= sprintf($_bline, $sub_jenis." ITEM PRODUK (".$ket_produk.")", "", "");
|
||||
|
||||
$body .= '</tbody></table><table class="notaFooter"><tr height="80"><td colspan="2"> </td></tr><tr><td width="50%" class="stamp">Halaman : '.$hal."/".$jml_hal.'</td><td class="r stamp">'.Report_Stamp(1,true).'</td></tr></table>';
|
||||
$body .= '</tbody></table><table class="notaFooter"><tr height="80"><td colspan="2"> </td></tr><tr><td width="50%" class="stamp"> </td><td class="r stamp">'.Report_Stamp(1,true).'</td></tr></table>';
|
||||
|
||||
echo '<div>' . $body . '</div>';
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user