Skip to content

Commit

Permalink
Merge pull request #125 from mdavo6/show_completed_payments
Browse files Browse the repository at this point in the history
Updated totals partial to show only completed payments
  • Loading branch information
damianlegawiec authored Apr 26, 2018
2 parents 3693e3b + a5c2c68 commit 9af5b82
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/views/spree/printables/shared/_totals.pdf.prawn
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ totals << [pdf.make_cell(content: Spree.t(:order_total)), invoice.display_total.

# Payments
total_payments = 0.0
invoice.payments.each do |payment|
invoice.payments.completed.each do |payment|
totals << [
pdf.make_cell(
content: Spree.t(:payment_via,
Expand Down

0 comments on commit 9af5b82

Please sign in to comment.