Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix serial number of basic pension number sjis bytesize #37

Conversation

wakasa51
Copy link
Member

@wakasa51 wakasa51 commented Jun 24, 2019

基礎年金番号の一連番号のバイトサイズは6が正解だが、8になっていたので直しました。

参考

スクリーンショット 2019-06-24 11 19 25

https://www.nenkin.go.jp/denshibenri/setsumei/20180305.files/01.pdf

@wakasa51 wakasa51 force-pushed the fix-serial-number-of-basic-pension-number-sjis-bytesize branch from c5c85c6 to 8defcca Compare June 24, 2019 02:18
@@ -74,7 +74,7 @@ class DataRecord2225700 < ApplicationRecord
validates :income_updated_at, timeliness: { on_or_after: -> { Date.new(1989, 1, 8) }, type: :date }, allow_blank: true
validates :my_number, charset: { accept: [:numeric] }, sjis_bytesize: { is: 12 }, allow_nil: true
validates :area_code_of_basic_pension_number, charset: { accept: [:numeric] }, sjis_bytesize: { is: 4 }, allow_nil: true
validates :serial_number_of_basic_pension_number, charset: { accept: [:numeric] }, sjis_bytesize: { is: 8 }, allow_nil: true
validates :serial_number_of_basic_pension_number, charset: { accept: [:numeric] }, sjis_bytesize: { is: 6 }, allow_nil: true
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

📝
bytesizeの制限を 8-> 6。
kiricoのvalidateだから電子申請時にしか影響しない & そもそもまだ利用されていない値だった

Copy link
Member

@AtsushiM AtsushiM left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

:gogo:

Copy link

@tkimi tkimi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@AtsushiM AtsushiM merged commit fcf9c76 into kufu:master Jun 24, 2019
@wakasa51 wakasa51 deleted the fix-serial-number-of-basic-pension-number-sjis-bytesize branch June 24, 2019 02:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants