Resolve allocations disappearing after save. IO-577
This commit is contained in:
@@ -16,7 +16,7 @@ const mapDispatchToProps = (dispatch) => ({
|
||||
//setUserLanguage: language => dispatch(setUserLanguage(language))
|
||||
});
|
||||
|
||||
export function JobsCloseLines({ bodyshop, joblines }) {
|
||||
export function JobsCloseLines({ bodyshop, job }) {
|
||||
const { t } = useTranslation();
|
||||
return (
|
||||
<div>
|
||||
@@ -105,7 +105,7 @@ export function JobsCloseLines({ bodyshop, joblines }) {
|
||||
name={[field.name, "profitcenter_part"]}
|
||||
rules={[
|
||||
{
|
||||
required: !!joblines[index].act_price,
|
||||
required: !!job.joblines[index].act_price,
|
||||
message: t("general.validation.required"),
|
||||
},
|
||||
]}
|
||||
@@ -137,7 +137,7 @@ export function JobsCloseLines({ bodyshop, joblines }) {
|
||||
name={[field.name, "profitcenter_labor"]}
|
||||
rules={[
|
||||
{
|
||||
required: !!joblines[index].mod_lbr_ty,
|
||||
required: !!job.joblines[index].mod_lbr_ty,
|
||||
message: t("general.validation.required"),
|
||||
},
|
||||
]}
|
||||
|
||||
Reference in New Issue
Block a user