Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
patch order breakdown discount
Browse files Browse the repository at this point in the history
jakemumu authored and kennyadsl committed May 11, 2023
1 parent 867dded commit 8f3ff8f
Showing 2 changed files with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -92,7 +92,7 @@ def breakdown
item_total: price(@order.item_total),
shipping: price(@order.shipment_total),
tax_total: price(@order.additional_tax_total),
discount: price(@order.all_adjustments.promotion.sum(&:amount).abs)
discount: price(@order.promo_total.abs)
}
end

Original file line number Diff line number Diff line change
@@ -70,6 +70,12 @@
)
end
end

context 'when an order has an inapplicable promo adjustment' do
it 'does not include it in the paypal order break' do
# TODO
end
end
end

private

0 comments on commit 8f3ff8f

Please sign in to comment.