Lint all the things
This commit is contained in:
@@ -1,6 +1,5 @@
|
||||
import { Button, Dropdown } from "antd";
|
||||
import _ from "lodash";
|
||||
import React from "react";
|
||||
import { useTranslation } from "react-i18next";
|
||||
import { connect } from "react-redux";
|
||||
import { createStructuredSelector } from "reselect";
|
||||
@@ -21,7 +20,6 @@ export function JobsCloseAutoAllocate({ bodyshop, joblines, form, disabled }) {
|
||||
const ret = _.cloneDeep(jl);
|
||||
if (jl.part_type) {
|
||||
ret.profitcenter_part = defaults.profits[jl.part_type.toUpperCase()];
|
||||
} else {
|
||||
}
|
||||
if (jl.mod_lbr_ty) {
|
||||
ret.profitcenter_labor = defaults.profits[jl.mod_lbr_ty.toUpperCase()];
|
||||
@@ -32,7 +30,7 @@ export function JobsCloseAutoAllocate({ bodyshop, joblines, form, disabled }) {
|
||||
if (
|
||||
InstanceRenderManager({
|
||||
imex: !jl.part_type && !jl.mod_lbr_ty,
|
||||
rome: !ret.profitcenter_part,
|
||||
rome: !ret.profitcenter_part
|
||||
})
|
||||
) {
|
||||
const lineDesc = jl.line_desc ? jl.line_desc.toLowerCase() : "";
|
||||
@@ -60,7 +58,7 @@ export function JobsCloseAutoAllocate({ bodyshop, joblines, form, disabled }) {
|
||||
handleAllocate(defaults);
|
||||
};
|
||||
|
||||
const handleMenuClick = ({ item, key, keyPath, domEvent }) => {
|
||||
const handleMenuClick = ({ key }) => {
|
||||
logImEXEvent("jobs_close_allocate_auto_dms");
|
||||
form.setFieldsValue({ dms_allocation: key });
|
||||
handleAllocate(bodyshop.md_responsibility_centers.dms_defaults.find((x) => x.name === key));
|
||||
|
||||
Reference in New Issue
Block a user