IO-2261 Add Delete function, Correct Payment edit, add Totals to Bills handler

This commit is contained in:
Allan Carr
2023-05-05 13:10:07 -07:00
parent 49a61e1564
commit a3557bbc86
6 changed files with 64 additions and 4 deletions

View File

@@ -177,7 +177,15 @@ export function BillsListPage({
// {t("bills.actions.return")}
// </Button>
}
<BillDeleteButton bill={record} />
<BillDeleteButton
bill={record}
callback={(deletedBillid) => {
//Filter out the state and set it again.
setOpenSearchResults((currentResults) =>
currentResults.filter((bill) => bill.id !== deletedBillid)
);
}}
/>
{record.isinhouse && (
<PrintWrapperComponent
templateObject={{