Invoices: VIN from work orders, one vehicle per invoice

Listens for redmine_qbo_billing's hooks: qbo_billing_issue_values gives each
work order's VIN, so the invoice's VIN box fills in when its time or
estimates are imported; qbo_billing_validate stops an invoice whose work
orders are for more than one vehicle (one vehicle per invoice).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01BiwYMjhoQvL7XsKKfRz4pM
This commit is contained in:
Claude committed 2026-10-30 22:30:27 -04:00
1 parent 9583bf52a8
commit 2310b4b30a
4 files changed
+46

No files matched your search

+1
View File
@@ -52,6 +52,7 @@ en:
warn_ru_sure: "Are you sure?"
alert_vehicle_has_issues: "This vehicle has issues, so it can't be deleted (that would lose its service history). If it was sold, change its customer instead."
error_one_vehicle_per_invoice: "Only one vehicle per invoice: these work orders are for %{vehicles}. Make a separate invoice for each vehicle."
error_vehicle_customer_mismatch: "Vehicle %{vehicle} belongs to a different customer. Pick one of this customer's vehicles."
error_vehicle_not_found_for_issue: "The selected vehicle no longer exists."
error_vin_status_check_failed: "Error checking VIN status."