Compare commits

...

2 Commits

Author SHA1 Message Date
ee2ab04206 added placeholder 2026-03-19 18:15:04 -04:00
8a8c6f5fa0 renamed issue_customer_id to customer_id 2026-03-19 18:07:21 -04:00
4 changed files with 6 additions and 6 deletions

View File

@@ -1,5 +1,5 @@
<%= form_tag(customers_path, method: "get", id: "customer-search-form") do %> <%= form_tag(customers_path, method: "get", id: "customer-search-form") do %>
<%= text_field_tag :search, params[:search], class: "customer-name", autocomplete: "off", data: { autocomplete_url: "/customers/autocomplete" } %> <%= text_field_tag :search, params[:search], class: "customer-name", placeholder: t(:label_search_customers), autocomplete: "off", data: { autocomplete_url: "/customers/autocomplete" } %>
<%= submit_tag t(:label_search) %> <%= submit_tag t(:label_search) %>
<% end %> <% end %>
<%= button_to t(:label_new_customer), new_customer_path, method: :get%> <%= button_to t(:label_new_customer), new_customer_path, method: :get%>

View File

@@ -55,11 +55,11 @@
select: function(event, ui) { select: function(event, ui) {
$input.val(ui.item.value); // visible text $input.val(ui.item.value); // visible text
$("#issue_customer_id").val(ui.item.id); // hidden ID $("#customer_id").val(ui.item.id); // hidden ID
// trigger Redmine form update safely // trigger Redmine form update safely
setTimeout(function() { setTimeout(function() {
$("#issue_customer_id").trigger("change"); $("#customer_id").trigger("change");
}, 0); }, 0);
return false; return false;
@@ -68,7 +68,7 @@
change: function(event, ui) { change: function(event, ui) {
// clear hidden field if no valid selection // clear hidden field if no valid selection
if (!ui.item && !$input.val()) { if (!ui.item && !$input.val()) {
$("#issue_customer_id").val(""); $("#customer_id").val("");
} }
} }
}); });

View File

@@ -14,7 +14,7 @@ Redmine::Plugin.register :redmine_qbo do
name 'Redmine QBO plugin' name 'Redmine QBO plugin'
author 'Rick Barrette' author 'Rick Barrette'
description 'A pluging for Redmine to connect with QuickBooks Online to create Time Activity Entries for billable hours logged when an Issue is closed' description 'A pluging for Redmine to connect with QuickBooks Online to create Time Activity Entries for billable hours logged when an Issue is closed'
version '2026.3.12' version '2026.3.13'
url 'https://github.com/rickbarrette/redmine_qbo' url 'https://github.com/rickbarrette/redmine_qbo'
author_url 'https://barrettefabrication.com' author_url 'https://barrettefabrication.com'
settings default: {empty: true}, partial: 'qbo/settings' settings default: {empty: true}, partial: 'qbo/settings'

View File

@@ -46,7 +46,7 @@ module RedmineQbo
# This hidden field is used for the customer ID for the issue # This hidden field is used for the customer ID for the issue
# the onchange event will reload the issue form via ajax to update the available estimates # the onchange event will reload the issue form via ajax to update the available estimates
customer_id = f.hidden_field :customer_id, customer_id = f.hidden_field :customer_id,
id: "issue_customer_id", id: "customer_id",
onchange: js_path.html_safe onchange: js_path.html_safe
# Generate the drop down list of quickbooks estimates owned by the selected customer # Generate the drop down list of quickbooks estimates owned by the selected customer