From 060d935a47b244656e53c880cc9e792fd5841982 Mon Sep 17 00:00:00 2001 From: MikunoNaka Date: Sun, 2 May 2021 19:51:35 +0530 Subject: fixed errors and added new incomplete form to register a new client --- src/components/Form/Items/AddNewItemForm.js | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) (limited to 'src/components/Form/Items') diff --git a/src/components/Form/Items/AddNewItemForm.js b/src/components/Form/Items/AddNewItemForm.js index 6bce2ab..4eaea7d 100644 --- a/src/components/Form/Items/AddNewItemForm.js +++ b/src/components/Form/Items/AddNewItemForm.js @@ -47,6 +47,8 @@ const AddNewItemForm = (props) => { setItemHSNValue(hsn); setItemGSTValue(gst); break; + } else if (itemName === registerItemPrompt) { + props.registerItemFormVisibility(true); } } } @@ -65,6 +67,7 @@ const AddNewItemForm = (props) => {
{ + alert("submit") event.preventDefault(); const newInvoiceItem = { "Model": itemNameValue, @@ -103,7 +106,7 @@ const AddNewItemForm = (props) => {