view expense with document (image), not yet PDF
This commit is contained in:
parent
a2db8865be
commit
31dec5402a
@ -16,6 +16,8 @@ export const useExpenseList = (pageSize, pageNumber, filter) => {
|
|||||||
};
|
};
|
||||||
|
|
||||||
export const useExpense = (ExpenseId) => {
|
export const useExpense = (ExpenseId) => {
|
||||||
|
|
||||||
|
console.log("ExpenseId:", ExpenseId, "Enabled:", ExpenseId !== undefined && ExpenseId !== null);
|
||||||
return useQuery({
|
return useQuery({
|
||||||
queryKey: ["Expense", ExpenseId],
|
queryKey: ["Expense", ExpenseId],
|
||||||
queryFn: async () =>
|
queryFn: async () =>
|
||||||
@ -26,6 +28,7 @@ export const useExpense = (ExpenseId) => {
|
|||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
// ---------------------------Mutation---------------------------------------------
|
// ---------------------------Mutation---------------------------------------------
|
||||||
|
|
||||||
export const useCreateExpnse = (onSuccessCallBack) => {
|
export const useCreateExpnse = (onSuccessCallBack) => {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user