diff options
author | MikunoNaka <bokuwakanojogahoshii@yahoo.com> | 2021-07-02 17:06:26 +0530 |
---|---|---|
committer | MikunoNaka <bokuwakanojogahoshii@yahoo.com> | 2021-07-02 17:06:26 +0530 |
commit | e946f0e51cbe72cec6bdf599c8ee9c1be1f64e0b (patch) | |
tree | 54a2ee83a315a0d933bd303415249a3465ddc5c6 /src/components/Pages | |
parent | eedde57b9caff20e1e7d25b43fcb8785e23b3e11 (diff) |
working on the form info like date and stuff
Diffstat (limited to 'src/components/Pages')
-rw-r--r-- | src/components/Pages/BillingPage.tsx | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/components/Pages/BillingPage.tsx b/src/components/Pages/BillingPage.tsx index bf37bd3..c88435b 100644 --- a/src/components/Pages/BillingPage.tsx +++ b/src/components/Pages/BillingPage.tsx @@ -17,7 +17,7 @@ import RegisterItemForm from "./../Form/Items/RegisterItemForm"; import RegisterPersonForm from "./../Form/People/RegisterPersonForm"; import DocumentInfoForm from "./../Form/Document/DocumentInfoForm"; -import MetaInfoForm from "./../Form/Document/MetaInfoForm"; +import InvoiceInfoMenu from "./../Menu/InvoiceInfoMenu"; import ItemsDisplay from "./../Display/ItemsDisplay"; import SummaryDisplay from "./../Display/SummaryDisplay"; @@ -28,6 +28,7 @@ const BillingPage: React.FC = () => { const [registerItemFormVisibility, setRegisterItemFormVisibility] = useState<boolean>(false); const [registerPersonFormVisibility, setRegisterPersonFormVisibility] = useState<boolean>(false); const [items, setItems] = useState<Item[]>([]); + const [invoiceNumber, setInvoiceNumber] = useState<number>(1234); // get data from backend const getRegisteredItems = () => axios.get(`/api/items/get-all`) @@ -70,6 +71,8 @@ const BillingPage: React.FC = () => { <DocumentInfoForm savedPeople={savedPeople} + invoiceNumber={invoiceNumber} + setInvoiceNumber={setInvoiceNumber} /> <AddNewItemForm @@ -86,7 +89,7 @@ const BillingPage: React.FC = () => { /> <div className={"BillingPageFlex"}> - <MetaInfoForm/> + <InvoiceInfoMenu/> <SummaryDisplay items={items}/> </div> </> |