IO-942 Save date on save and new payment
This commit is contained in:
@@ -153,8 +153,10 @@ function BillEnterModalContainer({
|
||||
|
||||
if (actions.refetch) actions.refetch();
|
||||
if (enterAgain) {
|
||||
const prev = form.getFieldsValue(["date"]);
|
||||
|
||||
form.resetFields();
|
||||
form.setFieldsValue({ billlines: [] });
|
||||
form.setFieldsValue(prev);
|
||||
} else {
|
||||
toggleModalVisible();
|
||||
}
|
||||
|
||||
@@ -93,10 +93,6 @@ export function TimeTicketModalContainer({
|
||||
//Capture the existing information and repopulate it.
|
||||
|
||||
const prev = form.getFieldsValue(["date", "employeeid"]);
|
||||
console.log(
|
||||
"🚀 ~ file: time-ticket-modal.container.jsx ~ line 96 ~ prev",
|
||||
prev
|
||||
);
|
||||
|
||||
form.resetFields();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user