ImEX and App Improvements.
This commit is contained in:
@@ -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}
|
||||
|
||||
Reference in New Issue
Block a user