diff --git a/erpnext/__version__.py b/erpnext/__version__.py index 5db4be2da95..9d2b850602d 100644 --- a/erpnext/__version__.py +++ b/erpnext/__version__.py @@ -1,2 +1,2 @@ from __future__ import unicode_literals -__version__ = '6.14.0' +__version__ = '6.14.1' diff --git a/erpnext/accounts/doctype/journal_entry/journal_entry.js b/erpnext/accounts/doctype/journal_entry/journal_entry.js index 479eaafd233..dc24522926a 100644 --- a/erpnext/accounts/doctype/journal_entry/journal_entry.js +++ b/erpnext/accounts/doctype/journal_entry/journal_entry.js @@ -347,6 +347,7 @@ frappe.ui.form.on("Journal Entry Account", { callback: function(r) { if(r.message) { $.extend(d, r.message); + erpnext.journal_entry.set_debit_credit_in_company_currency(frm, dt, dn); refresh_field('accounts'); } } @@ -355,11 +356,11 @@ frappe.ui.form.on("Journal Entry Account", { }, debit_in_account_currency: function(frm, cdt, cdn) { - erpnext.journal_entry.set_debit_credit_in_company_currency(frm, cdt, cdn); + erpnext.journal_entry.set_exchange_rate(frm, cdt, cdn); }, credit_in_account_currency: function(frm, cdt, cdn) { - erpnext.journal_entry.set_debit_credit_in_company_currency(frm, cdt, cdn); + erpnext.journal_entry.set_exchange_rate(frm, cdt, cdn); }, debit: function(frm, dt, dn) { @@ -368,6 +369,17 @@ frappe.ui.form.on("Journal Entry Account", { credit: function(frm, dt, dn) { cur_frm.cscript.update_totals(frm.doc); + }, + + exchange_rate: function(frm, cdt, cdn) { + var company_currency = frappe.get_doc(":Company", frm.doc.company).default_currency; + var row = locals[cdt][cdn]; + + if(row.account_currency == company_currency || !frm.doc.multi_currency) { + frappe.model.set_value(cdt, cdn, "exchange_rate", 1); + } + + erpnext.journal_entry.set_debit_credit_in_company_currency(frm, cdt, cdn); } }) @@ -395,8 +407,6 @@ $.extend(erpnext.journal_entry, { }, set_debit_credit_in_company_currency: function(frm, cdt, cdn) { - erpnext.journal_entry.set_exchange_rate(frm, cdt, cdn); - var row = locals[cdt][cdn]; frappe.model.set_value(cdt, cdn, "debit", @@ -413,7 +423,8 @@ $.extend(erpnext.journal_entry, { var row = locals[cdt][cdn]; if(row.account_currency == company_currency || !frm.doc.multi_currency) { - frappe.model.set_value(cdt, cdn, "exchange_rate", 1); + row.exchange_rate = 1; + erpnext.journal_entry.set_debit_credit_in_company_currency(frm, cdt, cdn); } else if (!row.exchange_rate || row.exchange_rate == 1 || row.account_type == "Bank") { frappe.call({ method: "erpnext.accounts.doctype.journal_entry.journal_entry.get_exchange_rate", @@ -429,11 +440,15 @@ $.extend(erpnext.journal_entry, { }, callback: function(r) { if(r.message) { - frappe.model.set_value(cdt, cdn, "exchange_rate", r.message); + row.exchange_rate = r.message; + erpnext.journal_entry.set_debit_credit_in_company_currency(frm, cdt, cdn); } } }) + } else { + erpnext.journal_entry.set_debit_credit_in_company_currency(frm, cdt, cdn); } + refresh_field("exchange_rate", cdn, "accounts"); }, quick_entry: function(frm) { diff --git a/erpnext/accounts/doctype/journal_entry/journal_entry.py b/erpnext/accounts/doctype/journal_entry/journal_entry.py index ec22483dfd1..a6029561efd 100644 --- a/erpnext/accounts/doctype/journal_entry/journal_entry.py +++ b/erpnext/accounts/doctype/journal_entry/journal_entry.py @@ -104,6 +104,12 @@ class JournalEntry(AccountsController): msgprint(_("Row {0}: Please check 'Is Advance' against Account {1} if this is an advance entry.").format(d.idx, d.account)) elif d.reference_type in ("Sales Order", "Purchase Order") and d.is_advance != "Yes": frappe.throw(_("Row {0}: Payment against Sales/Purchase Order should always be marked as advance").format(d.idx)) + + if d.is_advance == "Yes": + if d.party_type == 'Customer' and flt(d.debit) > 0: + frappe.throw(_("Row {0}: Advance against Customer must be credit").format(d.idx)) + elif d.party_type == 'Supplier' and flt(d.credit) > 0: + frappe.throw(_("Row {0}: Advance against Supplier must be debit").format(d.idx)) def validate_against_jv(self): for d in self.get('accounts'): diff --git a/erpnext/config/learn.py b/erpnext/config/learn.py index 4018b4f498c..dcb682db18b 100644 --- a/erpnext/config/learn.py +++ b/erpnext/config/learn.py @@ -21,6 +21,11 @@ def get_data(): "label": _("Customizing Forms"), "youtube_id": "pJhL9mmxV_U" }, + { + "type": "help", + "label": _("Report Builder"), + "youtube_id": "y0o5iYZOioU" + }, ] }, @@ -273,6 +278,11 @@ def get_data(): "label": _("Publish Items on Website"), "youtube_id": "W31LBBNzbgc" }, + { + "type": "help", + "label": _("Shopping Cart"), + "youtube_id": "xkrYO-KFukM" + }, ] }, ] diff --git a/erpnext/docs/assets/img/articles/$SGrab_428.png b/erpnext/docs/assets/img/articles/$SGrab_428.png deleted file mode 100644 index 4ef2c600e48..00000000000 Binary files a/erpnext/docs/assets/img/articles/$SGrab_428.png and /dev/null differ diff --git a/erpnext/docs/assets/img/articles/$SGrab_429.png b/erpnext/docs/assets/img/articles/$SGrab_429.png deleted file mode 100644 index 80039fa65ee..00000000000 Binary files a/erpnext/docs/assets/img/articles/$SGrab_429.png and /dev/null differ diff --git a/erpnext/docs/assets/img/articles/SGrab_250.png b/erpnext/docs/assets/img/articles/SGrab_250.png deleted file mode 100644 index d0a24e07756..00000000000 Binary files a/erpnext/docs/assets/img/articles/SGrab_250.png and /dev/null differ diff --git a/erpnext/docs/assets/img/articles/SGrab_342.png b/erpnext/docs/assets/img/articles/SGrab_342.png deleted file mode 100644 index c56f2116b1f..00000000000 Binary files a/erpnext/docs/assets/img/articles/SGrab_342.png and /dev/null differ diff --git a/erpnext/docs/assets/img/articles/SGrab_343.png b/erpnext/docs/assets/img/articles/SGrab_343.png deleted file mode 100644 index 6dd89db966c..00000000000 Binary files a/erpnext/docs/assets/img/articles/SGrab_343.png and /dev/null differ diff --git a/erpnext/docs/assets/img/articles/SGrab_344.png b/erpnext/docs/assets/img/articles/SGrab_344.png deleted file mode 100644 index ce783974909..00000000000 Binary files a/erpnext/docs/assets/img/articles/SGrab_344.png and /dev/null differ diff --git a/erpnext/docs/assets/img/articles/Screen Shot 2015-02-05 at 4.35.12 pm.png b/erpnext/docs/assets/img/articles/Screen Shot 2015-02-05 at 4.35.12 pm.png deleted file mode 100644 index 804192a51cf..00000000000 Binary files a/erpnext/docs/assets/img/articles/Screen Shot 2015-02-05 at 4.35.12 pm.png and /dev/null differ diff --git a/erpnext/docs/assets/img/articles/Selection_014dd1559.png b/erpnext/docs/assets/img/articles/Selection_014dd1559.png deleted file mode 100644 index 1e4d65c1936..00000000000 Binary files a/erpnext/docs/assets/img/articles/Selection_014dd1559.png and /dev/null differ diff --git a/erpnext/docs/assets/img/articles/change-language-1.png b/erpnext/docs/assets/img/articles/change-language-1.png new file mode 100644 index 00000000000..7d87d8ff752 Binary files /dev/null and b/erpnext/docs/assets/img/articles/change-language-1.png differ diff --git a/erpnext/docs/assets/img/articles/change-language-2.png b/erpnext/docs/assets/img/articles/change-language-2.png new file mode 100644 index 00000000000..bc8bdd2f223 Binary files /dev/null and b/erpnext/docs/assets/img/articles/change-language-2.png differ diff --git a/erpnext/docs/assets/img/articles/change-language-3.png b/erpnext/docs/assets/img/articles/change-language-3.png new file mode 100644 index 00000000000..13f2cffa284 Binary files /dev/null and b/erpnext/docs/assets/img/articles/change-language-3.png differ diff --git a/erpnext/docs/assets/img/articles/change-password-1.png b/erpnext/docs/assets/img/articles/change-password-1.png new file mode 100644 index 00000000000..70b5700f333 Binary files /dev/null and b/erpnext/docs/assets/img/articles/change-password-1.png differ diff --git a/erpnext/docs/assets/img/articles/change-password-2.png b/erpnext/docs/assets/img/articles/change-password-2.png new file mode 100644 index 00000000000..3dacaef6796 Binary files /dev/null and b/erpnext/docs/assets/img/articles/change-password-2.png differ diff --git a/erpnext/docs/assets/img/articles/edit-submitted-doc-1.png b/erpnext/docs/assets/img/articles/edit-submitted-doc-1.png new file mode 100644 index 00000000000..11d6d136a61 Binary files /dev/null and b/erpnext/docs/assets/img/articles/edit-submitted-doc-1.png differ diff --git a/erpnext/docs/assets/img/articles/edit-submitted-doc-2.png b/erpnext/docs/assets/img/articles/edit-submitted-doc-2.png new file mode 100644 index 00000000000..7244465b4d0 Binary files /dev/null and b/erpnext/docs/assets/img/articles/edit-submitted-doc-2.png differ diff --git a/erpnext/docs/assets/img/articles/edit-submitted-doc-3.png b/erpnext/docs/assets/img/articles/edit-submitted-doc-3.png new file mode 100644 index 00000000000..83f3f3664d8 Binary files /dev/null and b/erpnext/docs/assets/img/articles/edit-submitted-doc-3.png differ diff --git a/erpnext/docs/assets/img/articles/new-company-1.png b/erpnext/docs/assets/img/articles/new-company-1.png new file mode 100644 index 00000000000..a0b5c8b2232 Binary files /dev/null and b/erpnext/docs/assets/img/articles/new-company-1.png differ diff --git a/erpnext/docs/assets/img/articles/new-company-2.png b/erpnext/docs/assets/img/articles/new-company-2.png new file mode 100644 index 00000000000..430a1bd0250 Binary files /dev/null and b/erpnext/docs/assets/img/articles/new-company-2.png differ diff --git a/erpnext/docs/assets/img/articles/new-company-3.png b/erpnext/docs/assets/img/articles/new-company-3.png new file mode 100644 index 00000000000..06793e92d71 Binary files /dev/null and b/erpnext/docs/assets/img/articles/new-company-3.png differ diff --git a/erpnext/docs/current/index.html b/erpnext/docs/current/index.html index 82936e615c0..18798e7493d 100644 --- a/erpnext/docs/current/index.html +++ b/erpnext/docs/current/index.html @@ -35,7 +35,7 @@ Version
6.13.1
+ 6.14.0
#### 1.2 Select Language
-
+
#### 1.3 Save User
@@ -28,11 +28,11 @@ Being a System Manager, you can set language in other user's master as well.
#### Set Language
-
+
#### Save
Save System Settings, and refresh your EPRNext account. On refreshing, you should language in your ERPNext account changed as per your preference.
-Note: For now, we have translation available only for few languages. You can contribute to make translation better, and add new languages from [here](https://frappe.io/translator).
+Note: For now, we have translation available only for few languages. You can contribute to make translation better, and add new languages from [here](https://translate.erpnext.com).
\ No newline at end of file
diff --git a/erpnext/docs/user/manual/en/setting-up/articles/change-password.md b/erpnext/docs/user/manual/en/setting-up/articles/change-password.md
index c65cc8bea9b..505d6f3ab37 100644
--- a/erpnext/docs/user/manual/en/setting-up/articles/change-password.md
+++ b/erpnext/docs/user/manual/en/setting-up/articles/change-password.md
@@ -1,17 +1,17 @@
-
-####Step 2: Set New Password.
+####Step 2: Set New Password
-
+
-Enter the new password and save the form to save changes.
+Enter the new password and save the form to save changes.
\ No newline at end of file
diff --git a/erpnext/docs/user/manual/en/setting-up/articles/delete-a-company-and-all-related-transactions.md b/erpnext/docs/user/manual/en/setting-up/articles/delete-a-company-and-all-related-transactions.md
index 04e520385fe..593c4f533dc 100644
--- a/erpnext/docs/user/manual/en/setting-up/articles/delete-a-company-and-all-related-transactions.md
+++ b/erpnext/docs/user/manual/en/setting-up/articles/delete-a-company-and-all-related-transactions.md
@@ -1,4 +1,4 @@
-
**Note:** If you want to delete the company record itself, the use the normal "Delete" button from Menu options. It will also delete Chart of Accounts, Chart of Cost Centers and Warehouse records for that company.
diff --git a/erpnext/docs/user/manual/en/setting-up/articles/edit-submitted-document.html b/erpnext/docs/user/manual/en/setting-up/articles/edit-submitted-document.html
deleted file mode 100644
index 366d8a37389..00000000000
--- a/erpnext/docs/user/manual/en/setting-up/articles/edit-submitted-document.html
+++ /dev/null
@@ -1,28 +0,0 @@
-
-
-
-
+
+Step 2: Amend the document
+
+On cancellation of submitted document, Amend button will be became visible.
+
+
+
+Step 3: Save and Submit the document
+
+On clicking Amend button, same document will become editable again. After Making required changes, save and submit the document.
+
+
+
+
Also, you can define other properties for new company like:
@@ -30,13 +28,13 @@ Also, you can define other properties for new company like:
Value will be auto-filled in most of these field to define company-wise defaults. You can edit/customize it as per your requirement.
-
+
####Chart of Account for New Company
A separate Chart of Account master will be set for each company in the ERPNext. This allows you managing Accounts/Ledger master separately for each company. Also it allows you avail financial statement and reports like Balance Sheet and Profit and Loss Statement separately for each company.
-
+
\ No newline at end of file
diff --git a/erpnext/docs/user/manual/en/setting-up/articles/managing-perm-level.md b/erpnext/docs/user/manual/en/setting-up/articles/managing-perm-level.md
index c44d1eaaa0d..d7fa47fda71 100644
--- a/erpnext/docs/user/manual/en/setting-up/articles/managing-perm-level.md
+++ b/erpnext/docs/user/manual/en/setting-up/articles/managing-perm-level.md
@@ -1,12 +1,10 @@
-
If you need to assign different permission of particular field to different users, you can achieve it via Perm Level. Let's consider an example for better understanding.
@@ -16,11 +14,11 @@ For the amount related fields, you should set Perm Level as (say) 2.
For Stock Manager, they will have permission on fields on Delivery Note as Perm Level 2 whereas a Stock User will not have any permission on Perm Level 2 for Delivery Note.
-
+
Considering the same scenario, if you want a Stock User to access a field at Perm Level 2, but not edit it, the Stock User will be assigned permission on Perm Level 2, but only for read, and not for write/edit.
-
+
Perm Level (1, 2, 3) not need be in order. Perm Level is primarily for grouping number of fields together, and then assigning permission to Roles for that group. Hence, you can set any perm level for an item, and then do permission setting for it.
diff --git a/erpnext/docs/user/manual/en/setting-up/articles/managing-tree-structure-masters.md b/erpnext/docs/user/manual/en/setting-up/articles/managing-tree-structure-masters.md
index 0de7869e22c..499a654bb38 100644
--- a/erpnext/docs/user/manual/en/setting-up/articles/managing-tree-structure-masters.md
+++ b/erpnext/docs/user/manual/en/setting-up/articles/managing-tree-structure-masters.md
@@ -1,8 +1,6 @@
-