feat: 修正庫存與撥補單邏輯並整合文件
1. 修復倉庫統計數據加總與樣式。 2. 修正可用庫存計算邏輯(排除不可銷售倉庫)。 3. 撥補單商品列表加入批號與效期顯示。 4. 修正撥補單儲存邏輯以支援精確批號轉移。 5. 整合 FEATURES.md 至 README.md。
This commit is contained in:
@@ -26,7 +26,7 @@ interface VendorTableProps {
|
||||
vendors: Vendor[];
|
||||
onView: (vendor: Vendor) => void;
|
||||
onEdit: (vendor: Vendor) => void;
|
||||
onDelete: (id: number) => void;
|
||||
onDelete: (id: string) => void;
|
||||
sortField: string | null;
|
||||
sortDirection: "asc" | "desc" | null;
|
||||
onSort: (field: string) => void;
|
||||
@@ -107,11 +107,11 @@ export default function VendorTable({
|
||||
<TableCell>
|
||||
<div className="flex flex-col">
|
||||
<span className="font-medium">{vendor.name}</span>
|
||||
{vendor.short_name && <span className="text-xs text-gray-400">{vendor.short_name}</span>}
|
||||
{vendor.shortName && <span className="text-xs text-gray-400">{vendor.shortName}</span>}
|
||||
</div>
|
||||
</TableCell>
|
||||
<TableCell>{vendor.owner || '-'}</TableCell>
|
||||
<TableCell>{vendor.contact_name || '-'}</TableCell>
|
||||
<TableCell>{vendor.contactName || '-'}</TableCell>
|
||||
<TableCell>{vendor.phone || vendor.tel || '-'}</TableCell>
|
||||
<TableCell className="text-center">
|
||||
<div className="flex justify-center gap-2">
|
||||
|
||||
Reference in New Issue
Block a user