mirror of
https://github.com/rickbarrette/simple-aircraft-manager-rails.git
synced 2026-11-17 23:50:36 -05:00
Record keeping: 43.9/43.11 sign-off fields, AD method, status report
- Logbook entries record the signer's kind of certificate and number and an inspection's result; maintenance and inspection entries list what 43.9 / 43.11 needs that's missing (flagged, not enforced). Transcription reads the certificate details too - AD compliance records the method (inspection, terminating action, AMOC, not applicable) and the AD revision complied with, filled in from the AD when blank; the method sets the permanent / N/A flags - Maintenance status report (91.417(a)(2)): total times, life-limited parts, time since overhaul, inspection and AD status, major alterations, open discrepancies; print or save as PDF; on maintenance share links too - Archives carry the new fields Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
a4b72cf2c1
commit
a4ec7a691e
30 files changed
+515
-26
No files matched your search
@@ -0,0 +1,24 @@
|
||||
# What 14 CFR 43.9 / 43.11 and 91.417(a)(2)(v) want in the records:
|
||||
# the signer's certificate (kind and number), an inspection's outcome, and
|
||||
# each AD's method of compliance and the revision complied with.
|
||||
class AddRecordKeepingFields < ActiveRecord::Migration[8.1]
|
||||
def up
|
||||
add_column :logbook_entries, :signoff_certificate_type, :string
|
||||
add_column :logbook_entries, :signoff_certificate_number, :string
|
||||
add_column :logbook_entries, :inspection_result, :string
|
||||
add_column :ad_compliances, :compliance_method, :string
|
||||
add_column :ad_compliances, :ad_revision, :string
|
||||
|
||||
execute "UPDATE ad_compliances SET compliance_method = 'not_applicable' WHERE not_applicable = 1"
|
||||
execute "UPDATE ad_compliances SET compliance_method = 'terminating' WHERE compliance_method IS NULL AND permanent = 1"
|
||||
execute "UPDATE ad_compliances SET compliance_method = 'inspection' WHERE compliance_method IS NULL"
|
||||
end
|
||||
|
||||
def down
|
||||
remove_column :logbook_entries, :signoff_certificate_type
|
||||
remove_column :logbook_entries, :signoff_certificate_number
|
||||
remove_column :logbook_entries, :inspection_result
|
||||
remove_column :ad_compliances, :compliance_method
|
||||
remove_column :ad_compliances, :ad_revision
|
||||
end
|
||||
end
|
||||
Reference in new issue
Block a user