update form barang
This commit is contained in:
@@ -8,7 +8,7 @@ class PDF_BarangBawaan extends FPDF
|
||||
private $tanggal;
|
||||
private $teknisi;
|
||||
|
||||
private $colWidths = [10, 28, 48, 30, 12, 62];
|
||||
private $colWidths = [8, 18, 27, 44, 26, 10, 57];
|
||||
|
||||
public function __construct($orientation = 'L', $unit = 'mm', $size = 'A5')
|
||||
{
|
||||
@@ -57,7 +57,7 @@ class PDF_BarangBawaan extends FPDF
|
||||
$this->SetTextColor(255, 255, 255);
|
||||
$this->SetFont('Arial', 'B', 7);
|
||||
|
||||
$headers = ['No', 'Barcode', 'Nama Barang', 'Serial Number', 'Jumlah', 'Keterangan'];
|
||||
$headers = ['No', 'Tanggal', 'Barcode', 'Nama Barang', 'Serial Number', 'Jumlah', 'Keterangan'];
|
||||
foreach ($headers as $i => $h) {
|
||||
$this->Cell($this->colWidths[$i], 7, $h, 1, 0, 'C', true);
|
||||
}
|
||||
@@ -73,8 +73,8 @@ class PDF_BarangBawaan extends FPDF
|
||||
$minRowH = 8;
|
||||
$no = 1;
|
||||
|
||||
$colsMultiCell = [false, false, true, true, false, true];
|
||||
$cellAligns = ['C', 'L', 'L', 'L', 'C', 'L'];
|
||||
$colsMultiCell = [false, false, true, true, true, false, true];
|
||||
$cellAligns = ['C', 'C', 'L', 'L', 'L', 'C', 'L'];
|
||||
|
||||
foreach ($items as $item) {
|
||||
$keterangan = isset($item->keterangan) ? $item->keterangan : '';
|
||||
@@ -85,6 +85,7 @@ class PDF_BarangBawaan extends FPDF
|
||||
|
||||
$cellValues = [
|
||||
(string)$no,
|
||||
$item->tanggal ?? '-',
|
||||
$barcode,
|
||||
$namaBarang,
|
||||
$serial,
|
||||
|
||||
Reference in New Issue
Block a user