ImEX and App Improvements.

This commit is contained in:
Patrick Fic
2024-03-15 09:29:49 -07:00
parent 7e01f667b3
commit f279fc1e81
16 changed files with 141 additions and 88 deletions

View File

@@ -57,7 +57,7 @@ export function JobLineDispatchButton({
parts_dispatch_lines: {
data: selectedLines.map((l) => ({
joblineid: l.id,
quantity: l.part_qty,
quantity: l.part_qty,
})),
},
},
@@ -65,6 +65,7 @@ export function JobLineDispatchButton({
},
});
if (result.errors) {
console.log("🚀 ~ handleConvert ~ result.errors:", result.errors)
notification.open({
type: "error",
message: t("parts_dispatch.errors.creating", {
@@ -86,6 +87,7 @@ export function JobLineDispatchButton({
}
setVisible(false);
} catch (error) {
console.log("🚀 ~ handleConvert ~ error:", error)
notification.open({
type: "error",
message: t("parts_dispatch.errors.creating", {
@@ -136,7 +138,7 @@ export function JobLineDispatchButton({
<Space wrap>
<Button
type="danger"
danger
onClick={() => form.submit()}
loading={loading}
disabled={selectedLines.length === 0}