mirror of
https://github.com/rickbarrette/redmine_qbo.git
synced 2026-11-19 18:40:36 -05:00
Refunds of paid invoices: refund receipt with optional restocking fee
Completed work that's billed and paid in full can be refunded from its invoice (Refund on the invoice, or Paid invoice on the customer's Refund page). It makes a QuickBooks Refund Receipt: the invoice lines refunded (all or part, by quantity or amount) with their products/services and tax codes, the invoice discount's share, and the restocking fee as a negative line when it's ticked: the fee rate of the parts refunded, so labor-only work has none. Paid out of the refund check or card account, with the check number. Each refund records the lines it refunded, so a line can't be refunded for more than it was billed across refunds. Optionally notes the refund on the invoice's work orders and emails the customer. The refund page, PDF and email show the lines, tax and fee. Migration 056 adds the columns to qbo_refunds. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
56859d1794
commit
c851929e02
21 files changed
+1380
-22
No files matched your search
@@ -508,3 +508,52 @@ en:
|
||||
text_refund_check_account: "The bank account refund checks are written from."
|
||||
text_refund_card_account: "The account card refunds come out of (where card payments are deposited)."
|
||||
text_refund_canceled_status: "Work orders of a canceled order are set to this status, with the reason as a note."
|
||||
|
||||
# Refunds of paid invoices: completed work, billed and paid in full (a QuickBooks Refund Receipt)
|
||||
label_refund_invoice: "Invoice"
|
||||
label_refund_invoice_number: "Invoice #%{number}"
|
||||
label_refund_paid_invoice: "Paid invoice"
|
||||
label_refund_invoice_lines: "Invoice #%{number} · %{date}"
|
||||
label_refund_line: "Line"
|
||||
label_refund_line_billed: "Billed"
|
||||
label_refund_line_refunded: "Refunded before"
|
||||
label_refund_line_quantity: "Qty to refund"
|
||||
label_refund_line_amount: "Amount to refund"
|
||||
label_refund_labor: "Labor"
|
||||
label_refund_taxable: "Taxable"
|
||||
label_refund_charge_fee: "Restocking fee"
|
||||
label_refund_note_issues: "Note the refund on the invoice's work orders"
|
||||
label_refund_lines_amount: "Lines refunded"
|
||||
label_refund_discount: "Invoice discount (its share)"
|
||||
label_refund_tax_estimate: "Sales tax (estimated)"
|
||||
label_refund_tax: "Sales tax"
|
||||
label_refund_fee_on_parts: "Restocking fee on parts"
|
||||
label_refund_paid_on_invoice: "paid"
|
||||
label_refund_no_fee: "None"
|
||||
label_refund_open_receipt: "Refund receipt in QuickBooks"
|
||||
label_refund_receipt: "Refund receipt"
|
||||
text_refund_paid_invoice: "Completed work that's billed and paid in full: open its invoice to refund some or all of it (a refund receipt in QuickBooks). The rest of this page refunds customer credit, e.g. a canceled order's deposit."
|
||||
text_refund_invoice_lines: "Tick the lines to refund. Change the quantity (parts returned) or the amount (a partial refund) as needed; a line can't be refunded for more than was billed, less what earlier refunds took."
|
||||
text_refund_line_done: "Already refunded"
|
||||
text_refund_charge_fee: "Charged on the parts refunded only; labor carries no fee. Leave it off when the parts aren't coming back, or there are none."
|
||||
text_refund_invoice_reason: "Goes on the refund receipt in QuickBooks and on the invoice's work orders."
|
||||
text_refund_invoice_summary: "QuickBooks works out the sales tax on the refund receipt, so the refund can differ from this estimate by a few cents. The refund's page shows the exact amount to refund on the terminal or check."
|
||||
text_refund_invoice_confirm: "Record this refund receipt in QuickBooks?"
|
||||
text_refund_invoice_earlier: "This invoice has been refunded before:"
|
||||
text_refund_receipt_made: "Done. Refund receipt %{number} is recorded in QuickBooks. Refund exactly the amount below."
|
||||
text_refund_receipt_number: "No. %{number}"
|
||||
text_refund_receipt_memo: "Refund for invoice #%{number}"
|
||||
text_refund_invoice_private_note: "Refund of invoice #%{number} made in Redmine (SOP-OPS-014). Reason: %{reason}"
|
||||
text_refund_invoice_issue_note: "Refunded %{amount} on invoice #%{number} by %{method}: %{reason}"
|
||||
text_refund_issues_not_noted: "The refund couldn't be noted on some work orders: %{issues}"
|
||||
text_refund_email_terms_invoice: "As in our posted terms, returned parts carry a restocking fee."
|
||||
error_refund_no_invoice: "Pick the invoice to refund."
|
||||
error_refund_no_lines: "Tick at least one line to refund."
|
||||
error_refund_line_gone: "A line to refund isn't on the invoice any more. Reload the page."
|
||||
error_refund_line_quantity: "%{line}: the quantity must be more than 0 and no more than %{quantity}."
|
||||
error_refund_line_amount: "%{line}: enter an amount to refund of more than $0.00."
|
||||
error_refund_line_over: "%{line}: no more than %{amount} is left to refund."
|
||||
error_refund_fee_over_lines: "The restocking fee (%{fee}) isn't less than what's refunded (%{amount})."
|
||||
error_refund_invoice_customer: "That invoice is for another customer."
|
||||
error_refund_invoice_not_paid: "Only an invoice that's paid in full can be refunded here. Take or refund the payment in QuickBooks."
|
||||
error_refund_step_receipt: "The refund receipt couldn't be recorded in QuickBooks: %{error}. Nothing was refunded."
|
||||
@@ -73,6 +73,10 @@ resources :qbo_refunds, only: [:new, :create, :show] do
|
||||
get :pdf
|
||||
post :email
|
||||
end
|
||||
collection do
|
||||
get :new_invoice
|
||||
post :create_invoice
|
||||
end
|
||||
end
|
||||
|
||||
# Receive payment pages, and a customer's payments (/qbo_payments?customer_id=)
|
||||
|
||||
Reference in new issue
Block a user