Compare commits
No commits in common. "bd135c44ff10a88fda4bd1fe7f79b01fe6499d1d" and "a7160293afbfe56c7b5b8dd7af1f314b0d874231" have entirely different histories.
bd135c44ff
...
a7160293af
@ -179,7 +179,13 @@ const ManageExpense = ({ closeModal, expenseToEdit = null }) => {
|
|||||||
handleClose();
|
handleClose();
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
const onSubmit = (payload) => {
|
const onSubmit = (fromdata) => {
|
||||||
|
let payload = {
|
||||||
|
...fromdata,
|
||||||
|
transactionDate: moment
|
||||||
|
.utc(fromdata.transactionDate, "DD-MM-YYYY")
|
||||||
|
.toISOString(),
|
||||||
|
};
|
||||||
if (expenseToEdit) {
|
if (expenseToEdit) {
|
||||||
const editPayload = { ...payload, id: data.id };
|
const editPayload = { ...payload, id: data.id };
|
||||||
ExpenseUpdate({ id: data.id, payload: editPayload });
|
ExpenseUpdate({ id: data.id, payload: editPayload });
|
||||||
|
|||||||
@ -414,7 +414,6 @@ const ViewExpense = ({ ExpenseId }) => {
|
|||||||
target="_blank"
|
target="_blank"
|
||||||
rel="noopener noreferrer"
|
rel="noopener noreferrer"
|
||||||
className="bx bx-cloud-download cursor-pointer"
|
className="bx bx-cloud-download cursor-pointer"
|
||||||
title="View PDF"
|
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user