본문 바로가기

전체 글471

세무 상식 정리중. #### # 건강보험공단 - 2024년부터는 해촉증명서 효력이 상실 될 수 있음. - 해촉증명으로 소득을 상쇄해 지역가입자 전환을 하지 않도록 하지만, - 내년에 소득이 발생하면, 이전에 유예해주었던 보험료를 내야한다고 함. #### # 임대사업자 등록 - 국세청 - 임대사업자 등록은 임대차 계약 후 20일 이내에 해야함. - 상가의 경우 임대사업자등록을 하지 않으면 부가세 법상 가산세 발생함. - 임대사업자 간이과세자 : 4800미만 - 부과세신고는 해야하고, 부과세는 안내도 된다. - 부가세 포함해서 받을 필요 없음. ( 10% 추가 아님 ) - 세금계산서를 발급할 수 없다. - 내소유의 상가를 내가쓰면 임대사업자 등록을 안해도 된다. - 임차인이 사업자 등록 신청시 임대차 계약서를 제출함 - 임대료.. 2022. 10. 6.
Axios in Typescript 원본 : https://bobbyhadz.com/blog/typescript-http-request-axios 2022. 9. 4.
Fetch in TypeScript 원본 : https://www.delftstack.com/howto/typescript/typescript-fetch/ Fetch in TypeScript The fetch is a globally available native browser function that can be used to fetch resource over an HTTP connection. In TypeScript, we can use the fetch function to consume typed response data. www.delftstack.com // Todo type interface interface Todo { userId: number; id: number; title: string; completed: boo.. 2022. 9. 4.
화면 활성화 비활성화 active deactive , visibilitychange document.addEventListener('visibilitychange', function() { if (document.hidden) { if ( handleInterval > 0 ) clearInterval(handleInterval); } else { if ( handleInterval > 0 ) clearInterval(handleInterval); console.log("============== ACTIVE ============="); handleInterval = setInterval(()=>{ },intervalTime); } }, false); 2022. 8. 19.
antd useRef current.focus // const inputRef = useRef({}); // const inputRef = useRef({}); type RefType = { [key : string] : HTMLElement} const inputRef = useRef({}); const register = ((elem: any) => { const key = elem?.input?.id || elem?.props?.id || elem?.resizableTextArea?.props?.id; console.log('register', elem, key); return inputRef.current[key] = elem; }); const msgAlert = (msg: string, id: string) => { // a.. 2022. 6. 14.
typescript onchange moment const handleChange = ({ target }: { target: HTMLInputElement | { name: string, value: moment.Moment | string | null } }) => { const { name, value } = target; // if (target instanceof HTMLInputElement) { // } else { // } // moment.isMoment(value); console.log(name, value); setData({ ...data, [name]: value }); }; 2022. 6. 12.