From 653692b2a53638134be942281f68726a747b36c7 Mon Sep 17 00:00:00 2001 From: Patrick Fic <> Date: Thu, 26 May 2022 15:11:44 -0700 Subject: [PATCH 1/2] IO-1868 Prevent returns on invoiced RO. --- .../bills-list-table/bills-list-table.component.jsx | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/client/src/components/bills-list-table/bills-list-table.component.jsx b/client/src/components/bills-list-table/bills-list-table.component.jsx index 7b5173033..5c7553fd5 100644 --- a/client/src/components/bills-list-table/bills-list-table.component.jsx +++ b/client/src/components/bills-list-table/bills-list-table.component.jsx @@ -4,6 +4,7 @@ import React, { useState } from "react"; import { useTranslation } from "react-i18next"; import { connect } from "react-redux"; import { createStructuredSelector } from "reselect"; +import { selectJobReadOnly } from "../../redux/application/application.selectors"; import { setModalContext } from "../../redux/modals/modals.actions"; import { selectBodyshop } from "../../redux/user/user.selectors"; import CurrencyFormatter from "../../utils/CurrencyFormatter"; @@ -14,7 +15,7 @@ import BillDeleteButton from "../bill-delete-button/bill-delete-button.component import PrintWrapperComponent from "../print-wrapper/print-wrapper.component"; const mapStateToProps = createStructuredSelector({ - //jobRO: selectJobReadOnly, + jobRO: selectJobReadOnly, bodyshop: selectBodyshop, }); @@ -29,6 +30,7 @@ const mapDispatchToProps = (dispatch) => ({ export function BillsListTableComponent({ bodyshop, + jobRO, job, billsQuery, handleOnRowClick, @@ -58,7 +60,9 @@ export function BillsListTableComponent({