Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

KeyError: 'PHP' #12

Open
s1lviu opened this issue Jul 17, 2023 · 1 comment
Open

KeyError: 'PHP' #12

s1lviu opened this issue Jul 17, 2023 · 1 comment

Comments

@s1lviu
Copy link

s1lviu commented Jul 17, 2023

Sales in Philippines (PH)
	Quantity	Product	Amount	Exchange Rate	Amount in USD
Traceback (most recent call last):
  File "/Users/silviu/apple-slicer/./slicer.py", line 286, in <module>
    print_sales_by_corporation(sales, currencies, args.no_subtotals, args.only_subtotals, args.selected_corporations)
  File "/Users/silviu/apple-slicer/./slicer.py", line 237, in print_sales_by_corporation
    exchange_rate, tax_factor = currency_data[country_currency]
KeyError: 'PHP'

🤔

@fedoco
Copy link
Owner

fedoco commented Jul 17, 2023

PHP is the currency code for Philippine Peso. This error indicates that you had sales in the Philippines but there is no corresponding line for that currency in financial_report.csv.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants