IO-808 Add claim and balance to payment modal

This commit is contained in:
Patrick Fic
2021-03-24 17:03:49 -07:00
parent a15ea4c38b
commit 4db5df2bf7
5 changed files with 83 additions and 11 deletions

View File

@@ -9,6 +9,7 @@ import Alert from "../alert/alert.component";
import DatePickerFormItem from "../form-date-picker/form-date-picker.component";
import CurrencyInput from "../form-items-formatted/currency-form-item.component";
import JobSearchSelect from "../job-search-select/job-search-select.component";
import PaymentFormTotalPayments from "./payment-form.totalpayments.component";
const mapStateToProps = createStructuredSelector({
bodyshop: selectBodyshop,
@@ -39,8 +40,18 @@ export function PaymentFormComponent({
},
]}
>
<JobSearchSelect disabled={disabled} notExported={false} />
<JobSearchSelect disabled={disabled} notExported={false} clm_no />
</Form.Item>
<Form.Item
shouldUpdate={(prev, cur) => cur.jobid && prev.jobid !== cur.jobid}
>
{() => {
return (
<PaymentFormTotalPayments jobid={form.getFieldValue("jobid")} />
);
}}
</Form.Item>
<Form.Item
label={t("payments.fields.amount")}
name="amount"