IO-1029 IO-1019 Bills, PO, an CC Fixes.

This commit is contained in:
Patrick Fic
2021-05-06 18:22:04 -07:00
parent c8a42b0a9f
commit 3543bfac16
7 changed files with 65 additions and 23 deletions

View File

@@ -24,7 +24,7 @@ export default function PartsOrderModalComponent({
<Form.Item name="returnfrombill" style={{ display: "none" }}>
<Input />
</Form.Item>
<LayoutFormRow noDivider>
<LayoutFormRow grow noDivider>
<Form.Item
name="vendorid"
label={t("vendors.fields.name")}
@@ -149,6 +149,7 @@ export default function PartsOrderModalComponent({
defaultValue={sendType}
onChange={(e) => setSendType(e.target.value)}
>
<Radio value={"none"}>{t("general.labels.none")}</Radio>
<Radio value={"e"}>{t("parts_orders.labels.email")}</Radio>
<Radio value={"p"}>{t("parts_orders.labels.print")}</Radio>
</Radio.Group>

View File

@@ -88,6 +88,7 @@ export function PartsOrderModalContainer({
},
],
},
refetchQueries: ["QUERY_PARTS_BILLS_BY_JOBID"],
});
if (!!insertResult.error) {
notification["error"]({
@@ -180,7 +181,7 @@ export function PartsOrderModalContainer({
},
"e"
);
} else {
} else if (sendType === "p") {
GenerateDocument(
{
name: isReturn