aboutsummaryrefslogtreecommitdiff
path: root/src/components/Form/Items
diff options
context:
space:
mode:
authorMikunoNaka <bokuwakanojogahoshii@yahoo.com>2021-05-02 19:51:35 +0530
committerMikunoNaka <bokuwakanojogahoshii@yahoo.com>2021-05-02 19:51:35 +0530
commit060d935a47b244656e53c880cc9e792fd5841982 (patch)
treee5b6e106c89c9858e2e385c7a1ed37cb94cb1d0a /src/components/Form/Items
parentc7768652ed63e408e19c7e68d2ab8e78c70da94f (diff)
fixed errors and added new incomplete form to register a new client
Diffstat (limited to 'src/components/Form/Items')
-rw-r--r--src/components/Form/Items/AddNewItemForm.js12
1 files changed, 10 insertions, 2 deletions
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) => {
<div className={"formContainer"}>
<form className={"threePaneForm"} onSubmit={
(event) => {
+ alert("submit")
event.preventDefault();
const newInvoiceItem = {
"Model": itemNameValue,
@@ -103,7 +106,7 @@ const AddNewItemForm = (props) => {
</label>
<label>
- Description:
+ Description:
<input className={"wideInputBox"} type="text" value={itemDescValue}
onChange={
(event) => {
@@ -179,7 +182,12 @@ const AddNewItemForm = (props) => {
<div className={"smallPane"}>
<input type="button"
value="Register New Item"
- onClick={() => props.registerFormVisibility(true)}
+ onClick={() => props.registerItemFormVisibility(true)}
+ />
+
+ <input type="button"
+ value="Register New Person"
+ onClick={() => props.registerPersonFormVisibility(true)}
/>
<input type="button" value="Placeholder1" />