Просмотр исходного кода

Move serial number in PDFs to own column

Alan Lam 3 лет назад
Родитель
Сommit
5011fee257
1 измененных файлов с 7 добавлено и 11 удалено
  1. 7 11
      views/document_pdf.php

+ 7 - 11
views/document_pdf.php

@@ -258,6 +258,7 @@ $is_part_of_aru = $document->isPartOfAru();
 		<table class="table table-bordered">
 			<colgroup>
 				<col style="width: 60%"/>
+				<col style="width: 20%"/>
 				<col style="width: 10%"/>
 				<?php
 				if($document->isInvoice()) {
@@ -271,6 +272,7 @@ $is_part_of_aru = $document->isPartOfAru();
 			<thead>
 			<tr class="bg-document">
 				<th>Description</th>
+				<th>S/N</th>
 				<th>Qty</th>
 				<?php
 				if($document->isInvoice()) {
@@ -291,15 +293,9 @@ $is_part_of_aru = $document->isPartOfAru();
 				<tr>
 					<td>
 						<?=htmlspecialchars($item->description)?>
-						<?php
-						if($item->serial_number) {
-							?>
-							<div class="text-muted small">
-								S/N: <?=htmlspecialchars($item->serial_number)?>
-							</div>
-							<?php
-						}
-						?>
+					</td>
+					<td class="font-monospace">
+						<?=htmlspecialchars($item->serial_number)?>
 					</td>
 					<td class="text-end font-monospace">
 						<?=$item->quantity?>
@@ -332,7 +328,7 @@ $is_part_of_aru = $document->isPartOfAru();
 
 				?>
 				<tr>
-					<th class="bg-document">
+					<th class="bg-document" colspan="2">
 						Payment Details
 					</th>
 					<td></td>
@@ -340,7 +336,7 @@ $is_part_of_aru = $document->isPartOfAru();
 					<td></td>
 				</tr>
 				<tr>
-					<td rowspan="5">
+					<td colspan="2" rowspan="5">
 						<div class="mb-2">
 							<strong>Account Name:</strong> <?=htmlspecialchars($bank_details->bank_account_name ?? "")?>
 						</div>