Skip to content

Commit

Permalink
Merge pull request #48 from tubaman/fix-cli-currency-output
Browse files Browse the repository at this point in the history
Remove extra dollar sign from CLI output
  • Loading branch information
alexdlaird authored Mar 8, 2025
2 parents ffba229 + 6b5efa6 commit fb61bbb
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions amazonorders/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -347,15 +347,15 @@ def _order_output(order: Order,
if order.subtotal:
order_str += f"\n Subtotal: {config.constants.format_currency(order.subtotal)}"
if order.shipping_total:
order_str += f"\n Shipping Total: ${config.constants.format_currency(order.shipping_total)}"
order_str += f"\n Shipping Total: {config.constants.format_currency(order.shipping_total)}"
if order.subscription_discount:
order_str += f"\n Subscription Discount: ${config.constants.format_currency(order.subscription_discount)}"
order_str += f"\n Subscription Discount: {config.constants.format_currency(order.subscription_discount)}"
if order.total_before_tax:
order_str += f"\n Total Before Tax: ${config.constants.format_currency(order.total_before_tax)}"
order_str += f"\n Total Before Tax: {config.constants.format_currency(order.total_before_tax)}"
if order.estimated_tax:
order_str += f"\n Estimated Tax: ${config.constants.format_currency(order.estimated_tax)}"
order_str += f"\n Estimated Tax: {config.constants.format_currency(order.estimated_tax)}"
if order.refund_total:
order_str += f"\n Refund Total: ${config.constants.format_currency(order.refund_total)}"
order_str += f"\n Refund Total: {config.constants.format_currency(order.refund_total)}"

order_str += "\n-----------------------------------------------------------------------"

Expand Down

0 comments on commit fb61bbb

Please # to comment.