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
@@ -29,7 +29,8 @@ class LogbookImportFlowTest < ActionDispatch::IntegrationTest
|
||||
|
||||
def entry(text, page_start, page_end = page_start, **extra)
|
||||
{ date: "2026-01-05", log_type: "ENG", entry_type: "MAINTENANCE", text: text, aircraft_hours: 1990.5,
|
||||
signoff_person: "J. Mechanic A&P 1234567", signoff_location: "KOQU", page_start: page_start, page_end: page_end,
|
||||
signoff_person: "J. Mechanic", signoff_location: "KOQU", signoff_certificate_type: "AP",
|
||||
signoff_certificate_number: "1234567", page_start: page_start, page_end: page_end,
|
||||
confidence: "high" }.merge(extra)
|
||||
end
|
||||
|
||||
@@ -93,6 +94,7 @@ class LogbookImportFlowTest < ActionDispatch::IntegrationTest
|
||||
|
||||
entries = @a.logbook_entries.order(:id)
|
||||
assert_equal [ "Changed oil", "Annual inspection, found airworthy", "[date unreadable] Replaced [?] gasket" ], entries.map(&:text)
|
||||
assert_equal [ "J. Mechanic", "AP", "1234567" ], entries.first.then { [ _1.signoff_person, _1.signoff_certificate_type, _1.signoff_certificate_number ] }
|
||||
assert_equal [ 1, 2, 3 ], entries.map(&:page_number)
|
||||
assert entries.all? { _1.document == document && _1.log_type == "ENG" }
|
||||
assert_equal [ "MAINTENANCE", "INSPECTION", "MAINTENANCE" ], entries.map(&:entry_type)
|
||||
|
||||
Reference in new issue
Block a user