From 097a393b2bf170d69ba1cef16c5e70f204e2fe65 Mon Sep 17 00:00:00 2001 From: Vidhu Kant Sharma Date: Thu, 13 Oct 2022 14:28:29 +0530 Subject: added an invoice summary component --- src/views/invoice/new.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/views') diff --git a/src/views/invoice/new.js b/src/views/invoice/new.js index 1d162ad..429808f 100644 --- a/src/views/invoice/new.js +++ b/src/views/invoice/new.js @@ -18,6 +18,7 @@ import ClientPicker from '../../components/pickers/client-picker'; import ItemPicker from '../../components/pickers/item-picker'; import ItemTable from '../../components/tables/invoice-item-table'; +import InvoiceSummary from '../../components/tables/invoice-summary'; import { InvoiceClient } from '../../classes/client'; import { calcSum } from '../../classes/item'; @@ -28,7 +29,8 @@ const NewInvoicePage = () => { const [client, setClient] = useState(new InvoiceClient()); const [shippingAddressId, setShippingAddressId] = useState(-1); const [items, setItems] = useState([]); - const [isInterstate, setIsInterstate] = useState(false); + //const [isInterstate, setIsInterstate] = useState(false); + const isInterstate = false; // temporary const [sum, setSum] = useState({}); useEffect(() => setShippingAddressId(-1), [client]); @@ -50,6 +52,7 @@ const NewInvoicePage = () => { setItems={setItems} isInterstate={isInterstate} sum={sum} /> + ); } -- cgit v1.2.3