need to supply selected id

This commit is contained in:
2026-01-30 07:53:14 -05:00
parent f1f77a8022
commit 006e907b35

View File

@@ -39,7 +39,7 @@ module Hooks
# Generate the drop down list of quickbooks estimates owned by the selected customer
select_estimate = f.select :estimate_id,
issue.customer ? issue.customer.estimates.pluck(:doc_number, :id).sort! {|x, y| y <=> x} : [],
selected: issue.estimate,
selected: issue.estimate ? issue.estimate.id : nil,
include_blank: true
# Pass all prebuilt form components to our partial