BREAKING - Package upgrades + some WIP on invoice enter.

This commit is contained in:
Patrick Fic
2020-02-28 09:29:44 -08:00
parent 6785ff8aad
commit e2dfd6b60d
5 changed files with 908 additions and 1050 deletions

View File

@@ -6,7 +6,8 @@ export default function InvoiceAddLineButton({
jobLine,
invoiceLineState,
form,
discount
discount,
disabled
}) {
const [visibility, setVisibility] = useState(false);
const { t } = useTranslation();
@@ -41,7 +42,7 @@ export default function InvoiceAddLineButton({
return (
<Popover content={popContent} visible={visibility}>
<Button onClick={() => setVisibility(true)}>
<Button onClick={() => setVisibility(true)} disabled={!disabled}>
<Icon type="select" />
</Button>
</Popover>