-
-
Product: {itemData?.ProdName}
-
Variant: {itemData?.ProdVariantName}
-
Base Price: ₹{basePrice.toFixed(2)} per {itemData?.UomName || 'unit'}
+
+
{
+ setCalcMode(e.target.value);
+ setEnteredPrice('');
+ setEnteredQty('');
+ setCalculatedQty(0);
+ form.resetFields();
+ }}
+ >
+ AMT
+ KGS
+
+
+
+ Base Price: ₹{basePrice.toFixed(2)} per{' '}
+ {itemData?.UomName || 'unit'}
+
-
- {
- const cleanedValue = e.target.value.replace(/[^0-9.]/g, '');
- const parts = cleanedValue.split('.');
- e.target.value =
- parts.length > 2
- ? `${parts[0]}.${parts.slice(1).join('')}`
- : cleanedValue;
- }}
- />
-
+ {/* AMOUNT INPUT */}
+ {calcMode === 'amt' && (
+
+ {
+ e.target.value = e.target.value.replace(/[^0-9.]/g, '');
+ }}
+ />
+
+ )}
+ {/* QUANTITY INPUT */}
+ {calcMode === 'kgs' && (
+
+ {
+ e.target.value = e.target.value.replace(/[^0-9.]/g, '');
+ }}
+ />
+
+ )}
-
-
- {calculatedQty > 0 ? calculatedQty.toFixed(3) : '0.000'} {itemData?.UomName || 'units'}
+
+
+ {calculatedQty > 0 ? calculatedQty.toFixed(3) : '0.000'}{' '}
+ {itemData?.UomName || 'units'}
- {calculatedQty > 0 && (
+
+ {enteredPrice > 0 && (
- ₹{parseFloat(enteredPrice || 0).toFixed(2)}
+ ₹{parseFloat(enteredPrice).toFixed(2)}
)}
-
+
{
);
};
-export default WeightCalculatePrice;
\ No newline at end of file
+export default WeightCalculatePrice;
diff --git a/src/Pages/BookingScreen/Components/BSBillingTables/BSBillingEditQuantity/WeightCalculatePrice.scss b/src/Pages/BookingScreen/Components/BSBillingTables/BSBillingEditQuantity/WeightCalculatePrice.scss
new file mode 100644
index 0000000..5f7b2dd
--- /dev/null
+++ b/src/Pages/BookingScreen/Components/BSBillingTables/BSBillingEditQuantity/WeightCalculatePrice.scss
@@ -0,0 +1,9 @@
+.productils {
+ margin: 10px 0;
+}
+
+.weightCalBTN {
+ width: 100%;
+ display: flex;
+ justify-content: flex-end;
+}
\ No newline at end of file
diff --git a/src/Pages/BookingScreen/Components/UtillComponents/ShortcutKeyHelper.jsx b/src/Pages/BookingScreen/Components/UtillComponents/ShortcutKeyHelper.jsx
index 360ae3e..e22bab0 100644
--- a/src/Pages/BookingScreen/Components/UtillComponents/ShortcutKeyHelper.jsx
+++ b/src/Pages/BookingScreen/Components/UtillComponents/ShortcutKeyHelper.jsx
@@ -15,8 +15,10 @@ const ShortcutKeyHelper = ({ }) => {
{ key: 'F4', description: 'Quick Pay' },
{ key: 'Alt + W', description: 'Hold and Recall' },
{ key: 'Ctrl + Q', description: 'Qty Change' },
- { key: 'Alt + P', description: 'Change Total Amount' },
{ key: 'Ctrl + E', description: 'Price Change' },
+ { key: 'Ctrl + Y', description: 'Weight / Amount' },
+ { key: 'Ctrl + B', description: 'Packing' },
+ { key: 'Alt + P', description: 'Change Total Amount' },
{ key: 'Ctrl + I', description: 'Customer Rate History' },
];