PageSourceSearch

https://shuraba-app.web.app/assets/FinancialNotesPage-BXLHdL8S.js

js shuraba-app.web.app collected 2026-10-03 12:36:06 UTC 5,151 bytes, 24 lines download raw bytes

1import{r as l,v as y,j as t,G as b,aa as f,a9 as k}from"./index-DUpygkxg.js";import{c as j,d as N}from"./financialStatements-BtiKByHh.js";import{A as v}from"./AccountingTabBar-BNeW0zw8.js";import"./firebase-eOymXQZD.js";const u={accountingPolicies:"",plByProject:"",restrictedDonations:"",fixedAssetChanges:"",otherNotes:""},w=[{key:"accountingPolicies",number:1,title:"重要な会計方針の注記",placeholder:`1. 固定資産の減価償却の方法
2  有形固定資産…定額法によっている。
3
42. 消費税等の会計処理
5  消費税等の会計処理は、税込方式によっている。`},{key:"plByProject",number:2,title:"事業別損益の状況",placeholder:`当法人は主たる事業として以下の事業を実施している。
6
7(1) 子ども自然体験事業
8  収益: ○○円  費用: ○○円
9
10(2) 里山整備事業
11  収益: ○○円  費用: ○○円`},{key:"restrictedDonations",number:3,title:"使途制約のある寄付等の内訳",placeholder:`使途等が制約された寄付金等の内訳は以下のとおりである。
12
13(該当なし)
14
15または:
16寄付者: ○○財団  金額: ○○円  使途制約の内容: ○○事業に使用すること`},{key:"fixedAssetChanges",number:4,title:"固定資産の増減内訳",placeholder:`                  前期末残高  当期増加額  当期減少額  当期末残高
17什器備品        ○○円      ○○円      ○○円      ○○円
18ソフトウェア    ○○円      ○○円      ○○円      ○○円
19合計              ○○円      ○○円      ○○円      ○○円`},{key:"otherNotes",number:5,title:"その他特記事項",placeholder:`その他、財務諸表を理解するために必要な事項を記載してください。
20
21例:
22・関連当事者との取引はない。
23・重要な後発事象はない。
24・○○についての補足説明`}];function T(){const[n,x]=l.useState(y()),[i,o]=l.useState({...u}),[g,c]=l.useState(!0),[m,d]=l.useState(!1),a=l.useRef(null);l.useEffect(()=>{let e=!1;return a.current&&(clearTimeout(a.current),a.current=null),(async()=>{c(!0);try{const r=await N(n);if(e)return;o(r?{accountingPolicies:r.accountingPolicies??"",plByProject:r.plByProject??"",restrictedDonations:r.restrictedDonations??"",fixedAssetChanges:r.fixedAssetChanges??"",otherNotes:r.otherNotes??""}:{...u})}catch(r){console.error("注記データ読み込みエラー:",r)}finally{e||c(!1)}})(),()=>{e=!0,a.current&&(clearTimeout(a.current),a.current=null)}},[n]);const p=l.useCallback(e=>{a.current&&clearTimeout(a.current),a.current=setTimeout(async()=>{d(!0);try{const s={...e,fiscalYear:n,updatedAt:new Date().toISOString()};await j(s)}catch(s){console.error("注記保存エラー:",s)}finally{d(!1)}},500)},[n]),h=(e,s)=>{const r={...i,[e]:s};o(r),p(r)};return g?t.jsx(b,{}):t.jsxs("div",{className:"p-6",children:[t.jsxs("div",{className:"flex items-center justify-between mb-4 print:hidden",children:[t.jsxs("h2",{className:"text-xl font-bold dark:text-gray-100",children:["会計処理",m&&t.jsx("span",{className:"ml-2 text-xs text-gray-400 dark:text-gray-500 font-normal animate-pulse",children:"保存中..."})]}),t.jsxs("div",{className:"flex items-center gap-3",children:[t.jsx("select",{value:n,onChange:e=>x(Number(e.target.value)),className:"px-3 py-1.5 border border-gray-300 dark:border-gray-600 rounded-lg text-sm dark:bg-gray-800 dark:text-gray-100",children:f(5).map(e=>t.jsxs("option",{value:e,children:[e,"年度"]},e))}),t.jsx("button",{onClick:()=>window.print(),className:"px-4 py-2 bg-teal-600 text-white text-sm rounded-lg hover:bg-teal-700 transition-colors",children:"印刷"})]})]}),t.jsx(v,{activeTab:"notes"}),t.jsxs("div",{className:"bg-white dark:bg-gray-900 rounded-xl shadow-sm dark:shadow-black/20 overflow-hidden print:shadow-none",children:[t.jsxs("div",{className:"px-8 py-6 border-b dark:border-gray-700 text-center",children:[t.jsx("h1",{className:"text-lg font-bold dark:text-gray-100 mb-1",children:"財務諸表の注記"}),t.jsxs("p",{className:"text-sm text-gray-600 dark:text-gray-400",children:["自 ",n,"å¹´4月1日 至 ",n+1,"å¹´3月31日"]}),t.jsx("p",{className:"text-sm text-gray-500 dark:text-gray-400 mt-1",children:k.name})]}),t.jsx("div",{className:"px-8 py-6 space-y-6",children:w.map(e=>t.jsxs("div",{children:[t.jsxs("h2",{className:"font-bold text-sm mb-2 border-b dark:border-gray-700 pb-1 dark:text-gray-100",children:[e.number,". ",e.title]}),t.jsx("textarea",{value:i[e.key],onChange:s=>h(e.key,s.target.value),placeholder:e.placeholder,className:"w-full border border-gray-200 dark:border-gray-700 rounded-lg p-4 min-h-[140px] text-sm focus:outline-none focus:ring-2 focus:ring-teal-500 focus:border-transparent resize-y placeholder:text-gray-400 dark:placeholder:text-gray-600 dark:bg-gray-800 dark:text-gray-100 print:border-none print:p-0 print:min-h-0 print:resize-none"})]},e.key))}),t.jsx("div",{className:"p-3 text-xs text-gray-400 dark:text-gray-500 text-center border-t dark:border-gray-700 print:hidden",children:"入力内容はFirestoreに自動保存さã
24‚Œã¾ã™ï¼ˆ500ms遅延)"})]})]})}export{T as default};

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.