mirror of
https://github.com/rickbarrette/redmine_qbo.git
synced 2026-11-22 11:00:36 -05:00
Build issue descriptions and pick templates from the estimate's jobs
Creating issues from an estimate now groups its lines into jobs (subtotals end a job; parts go with the labor line before them, or the job's first labor line when listed first), adds the estimate's notes and the job's parts to each issue's description, preselects the template whose note has matching "Match:" phrases, and uses a named labor service's name (e.g. Standard Alignment) as the subject. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
0aa95918f6
commit
7894e09f05
13 files changed
+603
-20
No files matched your search
@@ -167,6 +167,13 @@ module QboFakeServiceHelper
|
||||
line
|
||||
end
|
||||
|
||||
def qbo_subtotal_line(id = nil)
|
||||
line = Quickbooks::Model::InvoiceLineItem.new
|
||||
line.id = id.to_s if id
|
||||
line.detail_type = 'SubTotalLineDetail'
|
||||
line
|
||||
end
|
||||
|
||||
def qbo_discount_line(amount, percent: nil, account: nil)
|
||||
line = Quickbooks::Model::InvoiceLineItem.new
|
||||
line.amount = BigDecimal(amount.to_s)
|
||||
|
||||
Reference in new issue
Block a user