fix report fpdf
This commit is contained in:
@@ -211,10 +211,9 @@ class Rpt_surat_jalan extends MY_Controller
|
||||
$pdf->SetY($startY);
|
||||
|
||||
$leftItems = array(
|
||||
array('Nomor SJ', $header['SuratJalanNumber'], true),
|
||||
array('Tanggal SJ', $this->_fmt_date($header['SuratJalanDate']), false),
|
||||
array('Nomor', $header['SuratJalanNumber'], true),
|
||||
array('Tanggal', $this->_fmt_date($header['SuratJalanDate']), false),
|
||||
array('No. Transfer', $header['SuratJalanT_GoodsTransferNum'] ?: '-', false),
|
||||
array('Status', $header['SuratJalanStatus'], false),
|
||||
);
|
||||
|
||||
foreach ($leftItems as $item) {
|
||||
@@ -283,13 +282,12 @@ class Rpt_surat_jalan extends MY_Controller
|
||||
|
||||
// ── Definisi kolom: [label, lebar, align] ─────────────────────────────
|
||||
// Total lebar = 180mm (A4 portrait: 210 - margin 15 kiri - 15 kanan)
|
||||
// 8 + 62 + 20 + 20 + 42 + 28 = 180
|
||||
// 8 + 104 + 20 + 20 + 28 = 180
|
||||
$cols = array(
|
||||
array('No', 8, 'C'),
|
||||
array('Nama', 62, 'L'),
|
||||
array('Nama', 104, 'L'),
|
||||
array('Unit', 20, 'C'),
|
||||
array('Qty Kirim', 20, 'R'),
|
||||
array('No. PR / Ref', 42, 'L'),
|
||||
array('Qty Diterima', 28, 'R'),
|
||||
);
|
||||
|
||||
@@ -314,8 +312,7 @@ class Rpt_surat_jalan extends MY_Controller
|
||||
$pdf->Cell($cols[1][1], 6, $d['M_ItemDesc'] ?: ($d['M_ItemCode'] ?: '-'), 1, 0, 'L');
|
||||
$pdf->Cell($cols[2][1], 6, $d['ItemUnitName'] ?: ($d['ItemUnitCode'] ?: '-'), 1, 0, 'C');
|
||||
$pdf->Cell($cols[3][1], 6, $this->_fmt_qty($d['SuratJalanDetailQty']), 1, 0, 'C');
|
||||
$pdf->Cell($cols[4][1], 6, $d['PurchaseRequestNumber'] ?: '-', 1, 0, 'L');
|
||||
$pdf->Cell($cols[5][1], 6, $this->_fmt_qty($d['SuratJalanDetailQtyReceived']), 1, 0, 'C');
|
||||
$pdf->Cell($cols[4][1], 6, $this->_fmt_qty($d['SuratJalanDetailQtyReceived']), 1, 0, 'C');
|
||||
$pdf->Ln();
|
||||
|
||||
$no++;
|
||||
|
||||
Reference in New Issue
Block a user