feat(inventory): 盤點單列印格式加入批號欄位(位於品名之後)
All checks were successful
Koori-ERP-Deploy-System / deploy-demo (push) Has been skipped
Koori-ERP-Deploy-System / deploy-production (push) Successful in 53s

This commit is contained in:
2026-02-05 13:05:50 +08:00
parent 0aa7fd1f75
commit b99e391cc6

View File

@@ -18,6 +18,7 @@ interface PrintProps {
unit: string; unit: string;
quantity: number; quantity: number;
counted_qty: number | null; counted_qty: number | null;
batch_number: string | null;
notes: string; notes: string;
}>; }>;
}; };
@@ -114,6 +115,7 @@ export default function Print({ doc }: PrintProps) {
<th className="border border-black px-2 py-1 w-12 text-center"></th> <th className="border border-black px-2 py-1 w-12 text-center"></th>
<th className="border border-black px-2 py-1 w-32 text-left"></th> <th className="border border-black px-2 py-1 w-32 text-left"></th>
<th className="border border-black px-2 py-1 text-left"></th> <th className="border border-black px-2 py-1 text-left"></th>
<th className="border border-black px-2 py-1 w-32 text-left"></th>
<th className="border border-black px-2 py-1 w-32 text-left"></th> <th className="border border-black px-2 py-1 w-32 text-left"></th>
<th className="border border-black px-2 py-1 w-20 text-right"></th> <th className="border border-black px-2 py-1 w-20 text-right"></th>
<th className="border border-black px-2 py-1 w-16 text-center"></th> <th className="border border-black px-2 py-1 w-16 text-center"></th>
@@ -126,6 +128,7 @@ export default function Print({ doc }: PrintProps) {
<td className="border border-black px-2 py-2 text-center">{index + 1}</td> <td className="border border-black px-2 py-2 text-center">{index + 1}</td>
<td className="border border-black px-2 py-2 font-mono">{item.product_code}</td> <td className="border border-black px-2 py-2 font-mono">{item.product_code}</td>
<td className="border border-black px-2 py-2">{item.product_name}</td> <td className="border border-black px-2 py-2">{item.product_name}</td>
<td className="border border-black px-2 py-2 font-mono text-xs">{item.batch_number || '-'}</td>
<td className="border border-black px-2 py-2">{item.specification || '-'}</td> <td className="border border-black px-2 py-2">{item.specification || '-'}</td>
<td className="border border-black px-2 py-2 text-right"> <td className="border border-black px-2 py-2 text-right">
{item.counted_qty !== null ? Number(item.counted_qty).toFixed(2) : ''} {item.counted_qty !== null ? Number(item.counted_qty).toFixed(2) : ''}