IO-1978 Updated parts return logic and removed extra button.

This commit is contained in:
Patrick Fic
2022-07-20 15:18:13 -07:00
parent 9ddcb1f27d
commit b30192c6d5
2 changed files with 15 additions and 34 deletions

View File

@@ -94,7 +94,20 @@ export function BillDetailEditReturn({
<table style={{ tableLayout: "auto", width: "100%" }}>
<thead>
<tr>
<td></td>
<td>
<Checkbox
onChange={(e) => {
form.setFieldsValue({
billlines: form
.getFieldsValue()
.billlines.map((b) => ({
...b,
selected: e.target.checked,
})),
});
}}
/>
</td>
<td>{t("billlines.fields.line_desc")}</td>
<td>{t("billlines.fields.quantity")}</td>
<td>{t("billlines.fields.actual_price")}</td>