summaryrefslogtreecommitdiff
path: root/lib/rfq-last/vendor-response/editor
diff options
context:
space:
mode:
Diffstat (limited to 'lib/rfq-last/vendor-response/editor')
-rw-r--r--lib/rfq-last/vendor-response/editor/quotation-items-table.tsx6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/rfq-last/vendor-response/editor/quotation-items-table.tsx b/lib/rfq-last/vendor-response/editor/quotation-items-table.tsx
index 4a8960ff..26c3808a 100644
--- a/lib/rfq-last/vendor-response/editor/quotation-items-table.tsx
+++ b/lib/rfq-last/vendor-response/editor/quotation-items-table.tsx
@@ -410,15 +410,15 @@ export default function QuotationItemsTable({ prItems }: QuotationItemsTableProp
<Input
type="number"
min="0"
- step="0.01"
+ step="1"
{...register(`quotationItems.${index}.unitPrice`, { valueAsNumber: true })}
onChange={(e) => {
- const value = Math.max(0, parseFloat(e.target.value) || 0)
+ const value = Math.max(0, Math.floor(parseFloat(e.target.value) || 0))
setValue(`quotationItems.${index}.unitPrice`, value)
calculateTotal(index)
}}
className="w-[120px]"
- placeholder="0.00"
+ placeholder="0"
/>
<span className="text-xs text-muted-foreground">
{currency}