Commit d7e86b4a authored by Rais Aryaguna's avatar Rais Aryaguna

Merge branch 'develop'

parents 8090f029 fe2af0c4
...@@ -28,11 +28,8 @@ export function RHFNumeric({ ...@@ -28,11 +28,8 @@ export function RHFNumeric({
maxValue, maxValue,
minValue, minValue,
readOnly, readOnly,
<<<<<<< HEAD
displayOnly = false, displayOnly = false,
=======
negativeMask = 'prefix', negativeMask = 'prefix',
>>>>>>> c01b578371dc0ae1737eb9b12fc456e83b835b3f
...props ...props
}: RHFNumericProps) { }: RHFNumericProps) {
const { control } = useFormContext(); const { control } = useFormContext();
...@@ -112,13 +109,10 @@ export function RHFNumeric({ ...@@ -112,13 +109,10 @@ export function RHFNumeric({
fixedDecimalScale: false, fixedDecimalScale: false,
maxValue, maxValue,
minValue, minValue,
<<<<<<< HEAD
// format-component butuhkan ini agar tidak error // format-component butuhkan ini agar tidak error
valueIsNumericString: true, valueIsNumericString: true,
=======
negativeMask, negativeMask,
>>>>>>> c01b578371dc0ae1737eb9b12fc456e83b835b3f
}, },
style: displayOnly style: displayOnly
......
// import { useMutation } from '@tanstack/react-query';
// import fakturApi from '../utils/api';
// const useCetakPdfFakturPK = (options?: any) =>
// useMutation({
// mutationKey: ['faktur', 'pk', 'cetak-pdf'],
// mutationFn: async (params: any) => fakturApi.cetakPdfDetail(params),
// ...options,
// });
// export default useCetakPdfFakturPK;
import { useMutation } from '@tanstack/react-query'; import { useMutation } from '@tanstack/react-query';
import fakturApi from '../utils/api'; import fakturApi from '../utils/api';
......
...@@ -161,11 +161,6 @@ export function FakturPkListView() { ...@@ -161,11 +161,6 @@ export function FakturPkListView() {
const baseParams = { const baseParams = {
page, page,
limit: pageSize, limit: pageSize,
// noBupot: '',
// idDipotong: '',
// namaDipotong: '',
// msPajak: '',
// thnPajak: '',
sortingMode: sortModel[0]?.field ?? '', sortingMode: sortModel[0]?.field ?? '',
sortingMethod: sortModel[0]?.sort ?? '', sortingMethod: sortModel[0]?.sort ?? '',
}; };
...@@ -243,19 +238,6 @@ export function FakturPkListView() { ...@@ -243,19 +238,6 @@ export function FakturPkListView() {
), ),
}, },
{ field: 'nomorfaktur', headerName: 'Nomor Faktur Pajak', width: 200 }, { field: 'nomorfaktur', headerName: 'Nomor Faktur Pajak', width: 200 },
// {
// field: 'jenisInvoice',
// type: 'singleSelect',
// headerName: 'Jenis Invoice',
// hideable: true,
// width: 150,
// valueOptions: [
// { value: JENIS_INVOICE.UANG_MUKA, label: 'Uang Muka' },
// { value: JENIS_INVOICE.PELUNASAN, label: 'Pelunasan' },
// { value: JENIS_INVOICE.FULL_PAYMENT, label: 'Full Payment' },
// ],
// valueFormatter: (params) => JENIS_INVOICE_TEXT[params.value] ?? '-',
// },
{ {
field: 'jenisInvoice', field: 'jenisInvoice',
headerName: 'Jenis Invoice', headerName: 'Jenis Invoice',
......
...@@ -2,6 +2,7 @@ import { zodResolver } from '@hookform/resolvers/zod'; ...@@ -2,6 +2,7 @@ import { zodResolver } from '@hookform/resolvers/zod';
import { LoadingButton } from '@mui/lab'; import { LoadingButton } from '@mui/lab';
import Grid from '@mui/material/Grid'; import Grid from '@mui/material/Grid';
import { useEffect, useMemo, useRef, useState } from 'react'; import { useEffect, useMemo, useRef, useState } from 'react';
import type { Resolver } from 'react-hook-form';
import { FormProvider, useForm } from 'react-hook-form'; import { FormProvider, useForm } from 'react-hook-form';
import { CustomBreadcrumbs } from 'src/components/custom-breadcrumbs'; import { CustomBreadcrumbs } from 'src/components/custom-breadcrumbs';
import { DashboardContent } from 'src/layouts/dashboard'; import { DashboardContent } from 'src/layouts/dashboard';
...@@ -107,8 +108,9 @@ const FakturPkRekamView = () => { ...@@ -107,8 +108,9 @@ const FakturPkRekamView = () => {
const methods = useForm<TFakturPkSchema>({ const methods = useForm<TFakturPkSchema>({
mode: 'all', mode: 'all',
resolver: zodResolver(FakturPkSchema), // resolver: zodResolver(FakturPkSchema),
defaultValues: defaultValues as Partial<TFakturPkSchema>, resolver: zodResolver(FakturPkSchema) as Resolver<TFakturPkSchema, any>,
defaultValues,
shouldUnregister: false, shouldUnregister: false,
}); });
...@@ -489,7 +491,7 @@ const FakturPkRekamView = () => { ...@@ -489,7 +491,7 @@ const FakturPkRekamView = () => {
}; };
// onSubmit(final); // onSubmit(final);
onSubmit(final as TFakturPkSchema); onSubmit(final);
})} })}
> >
Save as Draft Save as Draft
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment