From d3d039f191d40aefa82d1e1083dfce2b8482554e Mon Sep 17 00:00:00 2001 From: Rick Barrette Date: Sat, 7 Mar 2026 22:06:05 -0500 Subject: [PATCH] added locale notice_added_from --- app/jobs/bill_line_items_job.rb | 2 +- config/locales/en.yml | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/app/jobs/bill_line_items_job.rb b/app/jobs/bill_line_items_job.rb index bdb5e8a..d98b7bb 100644 --- a/app/jobs/bill_line_items_job.rb +++ b/app/jobs/bill_line_items_job.rb @@ -46,7 +46,7 @@ class BillLineItemsJob < ActiveJob::Base estimate = Quickbooks::Model::Estimate.new(customer_id: issue.customer.id) estimate_service = Quickbooks::Service::Estimate.new( company_id: qbo.realm_id, access_token: access_token) - estimate.line_items << Quickbooks::Model::InvoiceLineItem.new(description: "Added from issue ##{issue.id} #{issue.subject}", detail_type: 'DescriptionOnly' ) + estimate.line_items << Quickbooks::Model::InvoiceLineItem.new(description: "#{I18n.t(:notice_added_from)}#{issue.id} #{issue.subject}", detail_type: 'DescriptionOnly' ) unbilled_entries.each do |item| log "Creating Line Item for #{item.description}" diff --git a/config/locales/en.yml b/config/locales/en.yml index 1cce1f9..d5a3fcf 100644 --- a/config/locales/en.yml +++ b/config/locales/en.yml @@ -18,4 +18,5 @@ en: label_qty: "Quantity" label_remove: "Remove" label_total: "Total" + notice_added_from: "Added from issue #" \ No newline at end of file