diff options
| author | Vidhu Kant Sharma <vidhukant@vidhukant.xyz> | 2022-10-13 14:28:29 +0530 | 
|---|---|---|
| committer | Vidhu Kant Sharma <vidhukant@vidhukant.xyz> | 2022-10-13 14:28:29 +0530 | 
| commit | 097a393b2bf170d69ba1cef16c5e70f204e2fe65 (patch) | |
| tree | 91254e3de332506be13cff7bea74cca170fe3efc /src/views | |
| parent | 300a4eb39ccea56da416d83400cddc97118e1649 (diff) | |
added an invoice summary component
Diffstat (limited to 'src/views')
| -rw-r--r-- | src/views/invoice/new.js | 5 | 
1 files changed, 4 insertions, 1 deletions
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} /> +      <InvoiceSummary sum={sum} />      </>    );  }  |