SlideShare a Scribd company logo
1 of 17
Download to read offline
確定申告lojure
Ikuru K
確定申告lojure
Ikuru K
About me
- Freelance Clojure Developer
- ClojureScript
- Clojure
- Re-natal
- Web
- https://scrapbox.io/iku000888-notes/
- https://twitter.com/iku000888
- https://github.com/iku000888
今回の話
- 個人事業主
- 確定申告しなきゃ...
- 青色申告やってみよう
- 決算書...??
- Clojureで倒そう
- 部分的に倒した
青色決算書の構成要素
- 提出する物
- 損益計算書
- 貸借対象表
- 提出しないけど作る物
- 総勘定元帳
- 仕訳帳
仕訳帳(Journal)
- Source of Truth
- 取引を「勘定科目」を使って「借方(左側)」と「貸方
(右側)」に分ける
- をひたすら繰り返す
- E.g.
日付 借方 金額 貸方 適用
2/15 現金 35000 売上 会社x 10月
ednで仕訳
[{:貸方 :売上 :借方 :売掛金
:comment "L社10月分(税込)"
:date #inst "2017-10-31"
:amount 259200}
...]
総勘定元帳(General Ledger)
- 勘定科目別に取引を記載する
- 勘定口座毎の日々の増減がわかる
- 仕訳帳から出力できる
残高試算表(trial balance)
- 各科目の残高を並べる
- 仕訳の借方貸方、元帳の借方貸方と一
致しているかを検証できる
- ~名目勘定を抽出→損益計算書
- ~実在勘定を抽出→貸借対照表
実装した
- https://github.com/iku000888/kakuteishinko-clojure
- 仕訳はedn
- [x]総勘定元帳
- [x]残高試算表
- [x]損益計算書
- [ ]貸借対照表
- [ ]自分が使ってない勘定科目
実装した
● boot financial-statement
● clara-rules
○ インメモリデータの集計
● Hiccup
○ 出力
こんなんが
こうなって
こうなる
とある会話
某フリーランス友人:Ikuru確定申告何で
やってる?僕free使ってるんだけど
Ikuru: ん?Clojure
某フリーランス友人:wwww!?!?
参考にしたpdfの紹介
岡部 洋一氏著「複式簿記」
http://www.moge.org/okabe/temp/balance.pdf
● コンセプトについて具体例でざっくりわかる
● 平易なことばで読みやすい
● 無料
まとめ
- 確定申告駆動開発
- これであなたも確定申告lojurian
- あの決算書類がClojureで書かれてい
ることを税務署職員はまだしらない

More Related Content

More from Ikuru Kanuma

Web forms made easy (with formative)
Web forms made easy (with formative)Web forms made easy (with formative)
Web forms made easy (with formative)Ikuru Kanuma
 
サムネイルを作る話
サムネイルを作る話サムネイルを作る話
サムネイルを作る話Ikuru Kanuma
 
Review June2015 Dec2015
Review June2015 Dec2015Review June2015 Dec2015
Review June2015 Dec2015Ikuru Kanuma
 
Redmine on amazon ec2
Redmine on amazon ec2Redmine on amazon ec2
Redmine on amazon ec2Ikuru Kanuma
 
Engineering Ethics (In Japanese)
Engineering Ethics (In Japanese)Engineering Ethics (In Japanese)
Engineering Ethics (In Japanese)Ikuru Kanuma
 
First Real Pull Request Ever
First Real Pull Request EverFirst Real Pull Request Ever
First Real Pull Request EverIkuru Kanuma
 
Review june2014 june2015
Review june2014 june2015Review june2014 june2015
Review june2014 june2015Ikuru Kanuma
 
Elementary vim tricks
Elementary vim tricksElementary vim tricks
Elementary vim tricksIkuru Kanuma
 
Processors in a nutshell
Processors in a nutshellProcessors in a nutshell
Processors in a nutshellIkuru Kanuma
 
Computer hardware, and network
Computer hardware, and networkComputer hardware, and network
Computer hardware, and networkIkuru Kanuma
 
Installing Japanese environment(mozc) on Debian 8 + Mate
Installing Japanese environment(mozc) on Debian 8 + Mate Installing Japanese environment(mozc) on Debian 8 + Mate
Installing Japanese environment(mozc) on Debian 8 + Mate Ikuru Kanuma
 
Git for standalone use
Git for standalone useGit for standalone use
Git for standalone useIkuru Kanuma
 
Soap ui introduction
Soap ui introductionSoap ui introduction
Soap ui introductionIkuru Kanuma
 

More from Ikuru Kanuma (14)

Web forms made easy (with formative)
Web forms made easy (with formative)Web forms made easy (with formative)
Web forms made easy (with formative)
 
サムネイルを作る話
サムネイルを作る話サムネイルを作る話
サムネイルを作る話
 
Review June2015 Dec2015
Review June2015 Dec2015Review June2015 Dec2015
Review June2015 Dec2015
 
Redmine on amazon ec2
Redmine on amazon ec2Redmine on amazon ec2
Redmine on amazon ec2
 
Engineering Ethics (In Japanese)
Engineering Ethics (In Japanese)Engineering Ethics (In Japanese)
Engineering Ethics (In Japanese)
 
First Real Pull Request Ever
First Real Pull Request EverFirst Real Pull Request Ever
First Real Pull Request Ever
 
Pyunit
PyunitPyunit
Pyunit
 
Review june2014 june2015
Review june2014 june2015Review june2014 june2015
Review june2014 june2015
 
Elementary vim tricks
Elementary vim tricksElementary vim tricks
Elementary vim tricks
 
Processors in a nutshell
Processors in a nutshellProcessors in a nutshell
Processors in a nutshell
 
Computer hardware, and network
Computer hardware, and networkComputer hardware, and network
Computer hardware, and network
 
Installing Japanese environment(mozc) on Debian 8 + Mate
Installing Japanese environment(mozc) on Debian 8 + Mate Installing Japanese environment(mozc) on Debian 8 + Mate
Installing Japanese environment(mozc) on Debian 8 + Mate
 
Git for standalone use
Git for standalone useGit for standalone use
Git for standalone use
 
Soap ui introduction
Soap ui introductionSoap ui introduction
Soap ui introduction
 

Kukutei shinkoku with Clojure