add btn
This commit is contained in:
@@ -80,6 +80,7 @@ const DetailPerfomaInvoice: FC = () => {
|
||||
<th className="pb-3 font-normal">مبلغ واحد</th>
|
||||
<th className="pb-3 font-normal">تخفیف</th>
|
||||
<th className="pb-3 font-normal">مبلغ کل</th>
|
||||
<th className="pb-3 font-normal">عملیات</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
@@ -103,6 +104,20 @@ const DetailPerfomaInvoice: FC = () => {
|
||||
: '-'}
|
||||
</td>
|
||||
<td className="py-3">{formatAmount(lineTotal)}</td>
|
||||
<td className="py-3">
|
||||
{item.id && (
|
||||
<Link
|
||||
to={Paths.convertToOrder + '?invoiceItemId=' + item.id}
|
||||
>
|
||||
<button
|
||||
type="button"
|
||||
className="h-10 flex-shrink-0 rounded-xl border border-primary px-4 text-sm text-primary transition-colors hover:bg-primary/5"
|
||||
>
|
||||
تبدیل به سفارش
|
||||
</button>
|
||||
</Link>
|
||||
)}
|
||||
</td>
|
||||
</tr>
|
||||
);
|
||||
})}
|
||||
|
||||
Reference in New Issue
Block a user