{"action":"created","issue":{"url":"https://api.github.com/repos/frappe/erpnext/issues/3995","labels_url":"https://api.github.com/repos/frappe/erpnext/issues/3995/labels{/name}","comments_url":"https://api.github.com/repos/frappe/erpnext/issues/3995/comments","events_url":"https://api.github.com/repos/frappe/erpnext/issues/3995/events","html_url":"https://github.com/frappe/erpnext/pull/3995","id":105337869,"number":3995,"title":"Multi currency","user":{"login":"nabinhait","id":836784,"avatar_url":"https://avatars.githubusercontent.com/u/836784?v=3","gravatar_id":"","url":"https://api.github.com/users/nabinhait","html_url":"https://github.com/nabinhait","followers_url":"https://api.github.com/users/nabinhait/followers","following_url":"https://api.github.com/users/nabinhait/following{/other_user}","gists_url":"https://api.github.com/users/nabinhait/gists{/gist_id}","starred_url":"https://api.github.com/users/nabinhait/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nabinhait/subscriptions","organizations_url":"https://api.github.com/users/nabinhait/orgs","repos_url":"https://api.github.com/users/nabinhait/repos","events_url":"https://api.github.com/users/nabinhait/events{/privacy}","received_events_url":"https://api.github.com/users/nabinhait/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/frappe/erpnext/labels/dont-merge","name":"dont-merge","color":"e11d21"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-09-08T09:19:38Z","updated_at":"2015-09-08T09:25:29Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/frappe/erpnext/pulls/3995","html_url":"https://github.com/frappe/erpnext/pull/3995","diff_url":"https://github.com/frappe/erpnext/pull/3995.diff","patch_url":"https://github.com/frappe/erpnext/pull/3995.patch"},"body":""},"comment":{"url":"https://api.github.com/repos/frappe/erpnext/issues/comments/138493887","html_url":"https://github.com/frappe/erpnext/pull/3995#issuecomment-138493887","issue_url":"https://api.github.com/repos/frappe/erpnext/issues/3995","id":138493887,"user":{"login":"nabinhait","id":836784,"avatar_url":"https://avatars.githubusercontent.com/u/836784?v=3","gravatar_id":"","url":"https://api.github.com/users/nabinhait","html_url":"https://github.com/nabinhait","followers_url":"https://api.github.com/users/nabinhait/followers","following_url":"https://api.github.com/users/nabinhait/following{/other_user}","gists_url":"https://api.github.com/users/nabinhait/gists{/gist_id}","starred_url":"https://api.github.com/users/nabinhait/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nabinhait/subscriptions","organizations_url":"https://api.github.com/users/nabinhait/orgs","repos_url":"https://api.github.com/users/nabinhait/repos","events_url":"https://api.github.com/users/nabinhait/events{/privacy}","received_events_url":"https://api.github.com/users/nabinhait/received_events","type":"User","site_admin":false},"created_at":"2015-09-08T09:25:29Z","updated_at":"2015-09-08T09:25:29Z","body":"To-do list against Github Issue #1002\r\n\r\n- [x] Add Account Currency to Account & Party\r\n- [x] Add Debit (in Alt Currency) and Credit (in Alt Currency) to GL Entry\r\n- [x] [validation] Do not allow currency to change if any transaction has been made for both Party and Account\r\n- [x] Currency input on creation of account from Chart of Accounts\r\n- [x] In GL Entry posting, also post in alternate currency if party and account currencies are alt and match\r\n- [x] Currency in Party and Account (Debtors) must match\r\n- [x] In Journal Entry, on selection of account, select currency for the row.\r\n- [x] In Journal Entry, Sales Invoice, Purchase Invoice post to default currency (DC) (based on exchange rate) and Account Currency (AC)\r\n- [x] Fetch Exchange rate in Journal Entry based on average exchange_rate in case of inter-bank transfer, otherwise fetch current exchange rate\r\n- [x] Currency in transactions must be either in party currency or company currency\r\n- [x] All selected accounts in a transaction must be with transaction currency or in company currency\r\n- [x] Invoice outstanding, advance amount in party account currency\r\n- [x] Invoice paid amount and write off amount in both company currency and transaction currency\r\n- [x] Patch for Outstanding, Paid, advance, write-off amount\r\n- [x] Payment Tool in party currency\r\n- [x] Accounting Currency in Customer / Supplier, patch for existing records\r\n- [x] Force to mention Receivable / Payable account in Customer/Supplier, if party account currency is different from company currency\r\n- [x] Show Receivable / Payable accounts, in accounting currency for customer/supplier and validate\r\n- [x] Update \"Advance Paid\" in Order, based on party account currency, validate with grand total based on currency\r\n- [x] Test Case\r\n- [x] Patch\r\n  - Set `currency` in Account, GL Entry, Journal Entry\r\n  - Update `base_paid_amount`, `base_write_off_amount`, `party_account_currency` value in sales / purchase invoice\r\n  - Update Exchange Rate, debit/credit in account currency in Journal Entry and GL Entry\r\n  - Set Accounting Currency for party\r\n  - Set party account if default currency of party other than company's default currency\r\n- [x] Reports: Show Balance in account currency if filtered by account and account currency is different from company currency\r\n  - General Ledger\r\n  - Receivable\r\n  - Payable\r\n- [ ] Reports: Show all balances in company currency based on exchange rate as on filter `[Not Clear]`\r\n  - Trial Balance\r\n  - Balance Sheet\r\n  - P&L\r\n  - Financial Analytics\r\n- [ ] Update manual `[In Progress]`\r\n- [x] Add multi currency data in erpnext-demo\r\n- [x] Set currency and exchange rate based on customer in Quotation while making from Opportunity\r\n- [x] Set currency and exchange rate based on Supplier in Supplier Quotation / Purchase Order while making from Material Request\r\n\r\n"}}