Resolve allocations disappearing after save. IO-577

This commit is contained in:
Patrick Fic
2021-01-19 08:22:09 -08:00
parent 018a2365bc
commit 56cb193460
5 changed files with 66 additions and 221 deletions

View File

@@ -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"),
},
]}