filter with bill id
This commit is contained in:
@@ -55,7 +55,7 @@ const CreateBill: FC = () => {
|
||||
{
|
||||
onSuccess: () => {
|
||||
toast.success('قبض آب با موفقیت ثبت شد')
|
||||
navigate(Pages.company.list)
|
||||
navigate(Pages.bill.list)
|
||||
},
|
||||
onError: (error: ErrorType) => {
|
||||
toast.error(error.response?.data?.error?.message?.[0] ?? 'خطا در ثبت قبض')
|
||||
|
||||
@@ -36,7 +36,7 @@ const CreateCharge: FC = () => {
|
||||
await mutateAsync(payload, {
|
||||
onSuccess: () => {
|
||||
toast.success('قبض شارژ با موفقیت ثبت شد')
|
||||
navigate(Pages.bill.ListBillCharge)
|
||||
navigate(Pages.bill.list)
|
||||
},
|
||||
onError: (error: ErrorType) => {
|
||||
toast.error(
|
||||
|
||||
Reference in New Issue
Block a user