feat(inventory): 盤點單列印格式加入批號欄位(位於品名之後)
This commit is contained in:
@@ -18,6 +18,7 @@ interface PrintProps {
|
||||
unit: string;
|
||||
quantity: number;
|
||||
counted_qty: number | null;
|
||||
batch_number: string | null;
|
||||
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-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 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-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 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 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 text-right">
|
||||
{item.counted_qty !== null ? Number(item.counted_qty).toFixed(2) : ''}
|
||||
|
||||
Reference in New Issue
Block a user