에스크로 및 세금계산서 상세 수정
This commit is contained in:
@@ -164,7 +164,7 @@ export const BillingListPage = () => {
|
||||
return (
|
||||
<>
|
||||
<main>
|
||||
<div className="tab-content">
|
||||
<div className="tab-content pb-86">
|
||||
<div className="tab-pane sub active">
|
||||
<div className="summary-section">
|
||||
<div className="credit-controls">
|
||||
|
||||
@@ -9,9 +9,7 @@ import {
|
||||
VatReturnBreakdownParams,
|
||||
VatReturnBreakdownResponse,
|
||||
VatReturnDetailParams,
|
||||
VatReturnDetailResponse,
|
||||
VatReturnTaxInvoiceParams,
|
||||
VatReturnTaxInvoiceResponse
|
||||
VatReturnDetailResponse
|
||||
} from '@/entities/vat-return/model/types';
|
||||
import {
|
||||
useSetOnBack,
|
||||
@@ -32,13 +30,13 @@ export const DetailPage = () => {
|
||||
const location = useLocation();
|
||||
|
||||
let taxInvoiceNumber = location?.state.taxInvoiceNumber;
|
||||
taxInvoiceNumber = 'TAX202506300001';
|
||||
// taxInvoiceNumber = 'TAX202506300001';
|
||||
|
||||
const [openAmount, setOpenAmount] = useState<boolean>(false);
|
||||
const [bottomSheetOn, setBottomSheetOn] = useState<boolean>(false);
|
||||
const [detail, setDetail] = useState<VatReturnTaxInvoiceResponse>({});
|
||||
const [detail, setDetail] = useState<VatReturnDetailResponse>({});
|
||||
const [breakdown, setBreakdown] = useState<Array<Breakdown>>([]);
|
||||
|
||||
|
||||
useSetHeaderTitle('세금계산서 상세');
|
||||
useSetHeaderType(HeaderType.RightClose);
|
||||
useSetOnBack(() => {
|
||||
@@ -56,24 +54,16 @@ export const DetailPage = () => {
|
||||
};
|
||||
vatReturnDetail(params).then((rs: VatReturnDetailResponse) => {
|
||||
setDetail(rs);
|
||||
|
||||
});
|
||||
};
|
||||
const callVatReturnBreakdown = async() => {
|
||||
let params: VatReturnBreakdownParams = {
|
||||
taxInvoiceNumber: taxInvoiceNumber,
|
||||
};
|
||||
try{
|
||||
let rs = await vatReturnBreakdown(params);
|
||||
}
|
||||
catch{
|
||||
console.log('error');
|
||||
return;
|
||||
}
|
||||
/*
|
||||
vatReturnBreakdown(params).then((rs: VatReturnBreakdownResponse) => {
|
||||
setBreakdown(rs.breakdown);
|
||||
});
|
||||
*/
|
||||
};
|
||||
|
||||
const onClickToOpenBottomSheet = () => {
|
||||
@@ -82,7 +72,7 @@ export const DetailPage = () => {
|
||||
|
||||
useEffect(() => {
|
||||
callTaxInvoice();
|
||||
// callVatReturnBreakdown();
|
||||
callVatReturnBreakdown();
|
||||
}, []);
|
||||
|
||||
return (
|
||||
@@ -123,6 +113,10 @@ export const DetailPage = () => {
|
||||
bottomSheetOn={ bottomSheetOn }
|
||||
setBottomSheetOn={ setBottomSheetOn }
|
||||
breakdown={ breakdown }
|
||||
transactionAmount={ detail?.transactionAmount }
|
||||
supplyAmount={ detail?.supplyAmount }
|
||||
vatAmount={ detail?.vatAmount }
|
||||
totalAmount={ detail?.totalAmount }
|
||||
></VatReturnListDetailBottomSheet>
|
||||
}
|
||||
</>
|
||||
|
||||
Reference in New Issue
Block a user