Compare commits
54 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
e19abfbe70 | ||
|
|
3fc1c44334 | ||
|
|
bb347f5afa | ||
|
|
938b530ebf | ||
|
|
28962f26d4 | ||
|
|
0b5489ca88 | ||
|
|
adebf31041 | ||
|
|
7fbab12c5d | ||
|
|
11cc43a5a6 | ||
|
|
61fb7ee5b8 | ||
|
|
37b4d75e4a | ||
|
|
f71ecbba2c | ||
|
|
c5c6c0669f | ||
|
|
fe85b2ea17 | ||
|
|
1c1eb7018c | ||
|
|
8df5b5e3a1 | ||
|
|
39982a5f02 | ||
|
|
8f228dd7f9 | ||
|
|
739aa4d51a | ||
|
|
f9ef0e4e15 | ||
|
|
fc51ec7f58 | ||
|
|
7ba4d02444 | ||
|
|
87b5fcb3b5 | ||
|
|
7489d29813 | ||
|
|
268d300030 | ||
|
|
7f77002015 | ||
|
|
b28573ab03 | ||
|
|
c756ff67b0 | ||
|
|
4e72ef1421 | ||
|
|
6b173f3a67 | ||
|
|
bbcce8cca0 | ||
|
|
c438c1dec7 | ||
|
|
fcfced624a | ||
|
|
64949bfc4b | ||
|
|
438c4fb279 | ||
|
|
ae4c8a6a48 | ||
|
|
0d7213122a | ||
|
|
4268b0092a | ||
|
|
64e31e9a4e | ||
|
|
0a0c267edb | ||
|
|
1a8d4b6ea7 | ||
|
|
97426776bd | ||
|
|
60e7f01fd4 | ||
|
|
169089bdde | ||
|
|
c14f80838b | ||
|
|
a5007db902 | ||
|
|
0d58501229 | ||
|
|
7c654cd1bb | ||
|
|
54fc260a42 | ||
|
|
7a39d51366 | ||
|
|
79c94426f7 | ||
|
|
c3ced9a0b5 | ||
|
|
915778fb69 | ||
|
|
e9b445c853 |
@@ -1,2 +1,2 @@
|
||||
from __future__ import unicode_literals
|
||||
__version__ = '6.7.1'
|
||||
__version__ = '6.8.0'
|
||||
|
||||
@@ -59,7 +59,7 @@ class PricingRule(Document):
|
||||
self.set(f, None)
|
||||
|
||||
def validate_price_or_discount(self):
|
||||
for field in ["Price", "Discount Percentage"]:
|
||||
for field in ["Price"]:
|
||||
if flt(self.get(frappe.scrub(field))) < 0:
|
||||
throw(_("{0} can not be negative").format(field))
|
||||
|
||||
@@ -168,7 +168,11 @@ def get_pricing_rules(args):
|
||||
field = frappe.scrub(parenttype)
|
||||
condition = ""
|
||||
if args.get(field):
|
||||
lft, rgt = frappe.db.get_value(parenttype, args[field], ["lft", "rgt"])
|
||||
try:
|
||||
lft, rgt = frappe.db.get_value(parenttype, args[field], ["lft", "rgt"])
|
||||
except TypeError:
|
||||
frappe.throw(_("Invalid {0}").format(args[field]))
|
||||
|
||||
parent_groups = frappe.db.sql_list("""select name from `tab%s`
|
||||
where lft<=%s and rgt>=%s""" % (parenttype, '%s', '%s'), (lft, rgt))
|
||||
|
||||
|
||||
@@ -98,11 +98,18 @@ class GrossProfitGenerator(object):
|
||||
|
||||
row.base_amount = flt(row.base_net_amount)
|
||||
|
||||
product_bundles = self.product_bundles.get(row.parenttype, {}).get(row.parent, frappe._dict())
|
||||
product_bundles = []
|
||||
if row.update_stock:
|
||||
product_bundles = self.product_bundles.get(row.parenttype, {}).get(row.parent, frappe._dict())
|
||||
elif row.dn_detail:
|
||||
product_bundles = self.product_bundles.get("Delivery Note", {})\
|
||||
.get(row.delivery_note, frappe._dict())
|
||||
row.item_row = row.dn_detail
|
||||
|
||||
# get buying amount
|
||||
if row.item_code in product_bundles:
|
||||
row.buying_amount = self.get_buying_amount_from_product_bundle(row, product_bundles[row.item_code])
|
||||
row.buying_amount = self.get_buying_amount_from_product_bundle(row,
|
||||
product_bundles[row.item_code])
|
||||
else:
|
||||
row.buying_amount = self.get_buying_amount(row, row.item_code)
|
||||
|
||||
@@ -142,7 +149,6 @@ class GrossProfitGenerator(object):
|
||||
new_row.qty += row.qty
|
||||
new_row.buying_amount += row.buying_amount
|
||||
new_row.base_amount += row.base_amount
|
||||
# new_row.allocated_amount += (row.allocated_amount or 0) if new_row.allocated_amount else 0
|
||||
|
||||
new_row.gross_profit = new_row.base_amount - new_row.buying_amount
|
||||
new_row.gross_profit_percent = ((new_row.gross_profit / new_row.base_amount) * 100.0) \
|
||||
@@ -158,9 +164,9 @@ class GrossProfitGenerator(object):
|
||||
|
||||
def get_buying_amount_from_product_bundle(self, row, product_bundle):
|
||||
buying_amount = 0.0
|
||||
for bom_item in product_bundle:
|
||||
if bom_item.get("parent_detail_docname")==row.item_row:
|
||||
buying_amount += self.get_buying_amount(row, bom_item.item_code)
|
||||
for packed_item in product_bundle:
|
||||
if packed_item.get("parent_detail_docname")==row.item_row:
|
||||
buying_amount += self.get_buying_amount(row, packed_item.item_code)
|
||||
|
||||
return buying_amount
|
||||
|
||||
@@ -176,14 +182,14 @@ class GrossProfitGenerator(object):
|
||||
else:
|
||||
my_sle = self.sle.get((item_code, row.warehouse))
|
||||
if (row.update_stock or row.dn_detail) and my_sle:
|
||||
parenttype, parent, item_row = row.parenttype, row.parent, row.item_row
|
||||
parenttype, parent = row.parenttype, row.parent
|
||||
if row.dn_detail:
|
||||
parenttype, parent, item_row = "Delivery Note", row.delivery_note, row.dn_detail
|
||||
|
||||
parenttype, parent = "Delivery Note", row.delivery_note
|
||||
|
||||
for i, sle in enumerate(my_sle):
|
||||
# find the stock valution rate from stock ledger entry
|
||||
if sle.voucher_type == parenttype and parent == sle.voucher_no and \
|
||||
sle.voucher_detail_no == item_row:
|
||||
sle.voucher_detail_no == row.item_row:
|
||||
previous_stock_value = len(my_sle) > i+1 and \
|
||||
flt(my_sle[i+1].stock_value) or 0.0
|
||||
return previous_stock_value - flt(sle.stock_value)
|
||||
|
||||
@@ -12,6 +12,7 @@ cur_frm.cscript.refresh = function(doc, dt, dn) {
|
||||
|
||||
if(doc.__islocal){
|
||||
hide_field(['address_html','contact_html']);
|
||||
erpnext.utils.clear_address_and_contact(cur_frm);
|
||||
}
|
||||
else{
|
||||
unhide_field(['address_html','contact_html']);
|
||||
|
||||
@@ -1 +1 @@
|
||||
- **[Multi-currency Accounting](https://manual.erpnext.com/contents/accounts/multi-currency-accounting)**: You can now have an Account in a different currency than your Company's currency
|
||||
- **[Multi-currency Accounting](https://frappe.github.io/erpnext/user/guides/accounts/multi-currency-accounting)**: You can now have an Account in a different currency than your Company's currency
|
||||
|
||||
2
erpnext/change_log/v6/v6_8_0.md
Normal file
@@ -0,0 +1,2 @@
|
||||
- Removed Stock UOM Replace Utility
|
||||
Replacing UOM and Conversion Factor in existing transactions broke the integrity of data. The cleaner solution is to create new Items for a different Stock UOM, and keep existing transactions as they are.
|
||||
28
erpnext/config/docs.py
Normal file
@@ -0,0 +1,28 @@
|
||||
source_link = "https://github.com/frappe/erpnext"
|
||||
docs_base_url = "https://frappe.github.io/erpnext"
|
||||
headline = "Learn ERPNext Inside Out"
|
||||
sub_heading = "Find detailed explanation for all ERPNext features"
|
||||
long_description = """
|
||||
ERPNext helps you to manage all your business information in one application and use it to manage operations and take decisions based on data.
|
||||
|
||||
Among other things, ERPNext will help you to:
|
||||
|
||||
- Track all Invoices and Payments.
|
||||
- Know what quantity of which product is available in stock.
|
||||
- Identify open customer queries.
|
||||
- Manage payroll.
|
||||
- Assign tasks and follow up on them.
|
||||
- Maintain a database of all your customers, suppliers and their contacts.
|
||||
- Prepare quotes.
|
||||
- Get reminders on maintenance schedules.
|
||||
- Publish your website.
|
||||
|
||||
And a lot lot lot more."""
|
||||
|
||||
def get_context(context):
|
||||
context.top_bar_items = [
|
||||
{"label": "Contents", "url": context.docs_base_url + "/contents.html", "right": 1},
|
||||
{"label": "User Guide", "url": context.docs_base_url + "/user/guides", "right": 1},
|
||||
{"label": "Videos", "url": context.docs_base_url + "/user/videos", "right": 1},
|
||||
{"label": "Developer Docs", "url": context.docs_base_url + "/current", "right": 1}
|
||||
]
|
||||
@@ -37,6 +37,8 @@ erpnext.LeadController = frappe.ui.form.Controller.extend({
|
||||
|
||||
if(!this.frm.doc.__islocal) {
|
||||
erpnext.utils.render_address_and_contact(cur_frm);
|
||||
} else {
|
||||
erpnext.utils.clear_address_and_contact(cur_frm);
|
||||
}
|
||||
},
|
||||
|
||||
|
||||
BIN
erpnext/docs/assets/img/accounts/account-settings.png
Normal file
|
After Width: | Height: | Size: 95 KiB |
BIN
erpnext/docs/assets/img/accounts/accounts-receivable.png
Normal file
|
After Width: | Height: | Size: 74 KiB |
BIN
erpnext/docs/assets/img/accounts/advance-payment-1.png
Normal file
|
After Width: | Height: | Size: 91 KiB |
BIN
erpnext/docs/assets/img/accounts/advance-payment-2.png
Normal file
|
After Width: | Height: | Size: 56 KiB |
BIN
erpnext/docs/assets/img/accounts/advance-payment-3.png
Normal file
|
After Width: | Height: | Size: 52 KiB |
BIN
erpnext/docs/assets/img/accounts/bank-reconciliation.png
Normal file
|
After Width: | Height: | Size: 81 KiB |
BIN
erpnext/docs/assets/img/accounts/chart-of-accounts-1.png
Normal file
|
After Width: | Height: | Size: 143 KiB |
BIN
erpnext/docs/assets/img/accounts/chart-of-accounts-2.png
Normal file
|
After Width: | Height: | Size: 96 KiB |
BIN
erpnext/docs/assets/img/accounts/chart-of-accounts-3.png
Normal file
|
After Width: | Height: | Size: 88 KiB |
BIN
erpnext/docs/assets/img/accounts/credit-limit-1.png
Normal file
|
After Width: | Height: | Size: 56 KiB |
BIN
erpnext/docs/assets/img/accounts/credit-limit-2.png
Normal file
|
After Width: | Height: | Size: 92 KiB |
BIN
erpnext/docs/assets/img/accounts/financial-analytics-bl.png
Normal file
|
After Width: | Height: | Size: 105 KiB |
BIN
erpnext/docs/assets/img/accounts/financial-analytics-pl.png
Normal file
|
After Width: | Height: | Size: 115 KiB |
BIN
erpnext/docs/assets/img/accounts/fiscal-year.png
Normal file
|
After Width: | Height: | Size: 52 KiB |
BIN
erpnext/docs/assets/img/accounts/general-ledger.png
Normal file
|
After Width: | Height: | Size: 98 KiB |
BIN
erpnext/docs/assets/img/accounts/journal-entry.png
Normal file
|
After Width: | Height: | Size: 96 KiB |
BIN
erpnext/docs/assets/img/accounts/make-payment.png
Normal file
|
After Width: | Height: | Size: 70 KiB |
BIN
erpnext/docs/assets/img/accounts/multi-currency/account.png
Normal file
|
After Width: | Height: | Size: 199 KiB |
|
After Width: | Height: | Size: 166 KiB |
|
After Width: | Height: | Size: 265 KiB |
|
After Width: | Height: | Size: 242 KiB |
BIN
erpnext/docs/assets/img/accounts/multi-currency/customer.png
Normal file
|
After Width: | Height: | Size: 183 KiB |
|
After Width: | Height: | Size: 221 KiB |
|
After Width: | Height: | Size: 197 KiB |
|
After Width: | Height: | Size: 192 KiB |
|
After Width: | Height: | Size: 256 KiB |
|
After Width: | Height: | Size: 241 KiB |
BIN
erpnext/docs/assets/img/accounts/new-bank-entry.png
Normal file
|
After Width: | Height: | Size: 72 KiB |
BIN
erpnext/docs/assets/img/accounts/opening-account-1.png
Normal file
|
After Width: | Height: | Size: 38 KiB |
BIN
erpnext/docs/assets/img/accounts/payment-reconcile-tool.png
Normal file
|
After Width: | Height: | Size: 113 KiB |
BIN
erpnext/docs/assets/img/accounts/payment-tool-1.png
Normal file
|
After Width: | Height: | Size: 54 KiB |
BIN
erpnext/docs/assets/img/accounts/payment-tool-2.png
Normal file
|
After Width: | Height: | Size: 95 KiB |
BIN
erpnext/docs/assets/img/accounts/payment-tool-3.png
Normal file
|
After Width: | Height: | Size: 93 KiB |
BIN
erpnext/docs/assets/img/accounts/period-closing-voucher.png
Normal file
|
After Width: | Height: | Size: 69 KiB |
BIN
erpnext/docs/assets/img/accounts/purchase-invoice.png
Normal file
|
After Width: | Height: | Size: 103 KiB |
BIN
erpnext/docs/assets/img/accounts/sales-invoice.png
Normal file
|
After Width: | Height: | Size: 108 KiB |
BIN
erpnext/docs/assets/img/accounts/sales-register.png
Normal file
|
After Width: | Height: | Size: 114 KiB |
BIN
erpnext/docs/assets/img/accounts/tax-rule-1.png
Normal file
|
After Width: | Height: | Size: 97 KiB |
BIN
erpnext/docs/assets/img/accounts/tax-rule-2.png
Normal file
|
After Width: | Height: | Size: 98 KiB |
BIN
erpnext/docs/assets/img/accounts/tax-rule.png
Normal file
|
After Width: | Height: | Size: 91 KiB |
BIN
erpnext/docs/assets/img/accounts/trial-balance.png
Normal file
|
After Width: | Height: | Size: 126 KiB |
BIN
erpnext/docs/assets/img/buying/buying-settings.png
Normal file
|
After Width: | Height: | Size: 54 KiB |
BIN
erpnext/docs/assets/img/buying/material-request.png
Normal file
|
After Width: | Height: | Size: 52 KiB |
BIN
erpnext/docs/assets/img/buying/purchase-order-uom.png
Normal file
|
After Width: | Height: | Size: 78 KiB |
BIN
erpnext/docs/assets/img/buying/purchase-order.png
Normal file
|
After Width: | Height: | Size: 85 KiB |
BIN
erpnext/docs/assets/img/buying/supplier-master.png
Normal file
|
After Width: | Height: | Size: 106 KiB |
BIN
erpnext/docs/assets/img/buying/supplier-quotation.png
Normal file
|
After Width: | Height: | Size: 133 KiB |
BIN
erpnext/docs/assets/img/buying/supplier-type.png
Normal file
|
After Width: | Height: | Size: 74 KiB |
BIN
erpnext/docs/assets/img/crm/campaign-new-lead.png
Normal file
|
After Width: | Height: | Size: 82 KiB |
BIN
erpnext/docs/assets/img/crm/campaign-view-leads.png
Normal file
|
After Width: | Height: | Size: 74 KiB |
BIN
erpnext/docs/assets/img/crm/campaign.png
Normal file
|
After Width: | Height: | Size: 58 KiB |
BIN
erpnext/docs/assets/img/crm/contact-from-cust.png
Normal file
|
After Width: | Height: | Size: 92 KiB |
BIN
erpnext/docs/assets/img/crm/contact.png
Normal file
|
After Width: | Height: | Size: 77 KiB |
BIN
erpnext/docs/assets/img/crm/customer-group-tree.png
Normal file
|
After Width: | Height: | Size: 44 KiB |
BIN
erpnext/docs/assets/img/crm/customer.png
Normal file
|
After Width: | Height: | Size: 67 KiB |
BIN
erpnext/docs/assets/img/crm/lead-to-opportunity.png
Normal file
|
After Width: | Height: | Size: 90 KiB |
BIN
erpnext/docs/assets/img/crm/lead.png
Normal file
|
After Width: | Height: | Size: 89 KiB |
BIN
erpnext/docs/assets/img/crm/newsletter-new.png
Normal file
|
After Width: | Height: | Size: 81 KiB |
BIN
erpnext/docs/assets/img/crm/newsletter-test.png
Normal file
|
After Width: | Height: | Size: 48 KiB |
BIN
erpnext/docs/assets/img/crm/opportunity.png
Normal file
|
After Width: | Height: | Size: 75 KiB |
BIN
erpnext/docs/assets/img/crm/sales-person-tree.png
Normal file
|
After Width: | Height: | Size: 33 KiB |
BIN
erpnext/docs/assets/img/crm/territory-tree.png
Normal file
|
After Width: | Height: | Size: 42 KiB |
BIN
erpnext/docs/assets/img/customize/customize-title.gif
Normal file
|
After Width: | Height: | Size: 401 KiB |
BIN
erpnext/docs/assets/img/customize/editable-title.gif
Normal file
|
After Width: | Height: | Size: 546 KiB |
BIN
erpnext/docs/assets/img/home.png
Normal file
|
After Width: | Height: | Size: 275 KiB |
BIN
erpnext/docs/assets/img/human-resources/appraisal-employee.png
Normal file
|
After Width: | Height: | Size: 108 KiB |
BIN
erpnext/docs/assets/img/human-resources/appraisal.png
Normal file
|
After Width: | Height: | Size: 43 KiB |
BIN
erpnext/docs/assets/img/human-resources/attendence-upload.png
Normal file
|
After Width: | Height: | Size: 86 KiB |
BIN
erpnext/docs/assets/img/human-resources/attendence.png
Normal file
|
After Width: | Height: | Size: 58 KiB |
BIN
erpnext/docs/assets/img/human-resources/branch.png
Normal file
|
After Width: | Height: | Size: 32 KiB |
BIN
erpnext/docs/assets/img/human-resources/deduction-type.png
Normal file
|
After Width: | Height: | Size: 25 KiB |
BIN
erpnext/docs/assets/img/human-resources/department.png
Normal file
|
After Width: | Height: | Size: 125 KiB |
BIN
erpnext/docs/assets/img/human-resources/designation.png
Normal file
|
After Width: | Height: | Size: 114 KiB |
BIN
erpnext/docs/assets/img/human-resources/earning-type.png
Normal file
|
After Width: | Height: | Size: 33 KiB |
BIN
erpnext/docs/assets/img/human-resources/email-account.png
Normal file
|
After Width: | Height: | Size: 92 KiB |
|
After Width: | Height: | Size: 39 KiB |
|
After Width: | Height: | Size: 83 KiB |
|
After Width: | Height: | Size: 76 KiB |
|
After Width: | Height: | Size: 58 KiB |
BIN
erpnext/docs/assets/img/human-resources/employee.png
Normal file
|
After Width: | Height: | Size: 103 KiB |
BIN
erpnext/docs/assets/img/human-resources/employment-type.png
Normal file
|
After Width: | Height: | Size: 87 KiB |
BIN
erpnext/docs/assets/img/human-resources/expense_claim.png
Normal file
|
After Width: | Height: | Size: 101 KiB |
BIN
erpnext/docs/assets/img/human-resources/holiday-list.png
Normal file
|
After Width: | Height: | Size: 93 KiB |
BIN
erpnext/docs/assets/img/human-resources/hr-settings.png
Normal file
|
After Width: | Height: | Size: 96 KiB |
BIN
erpnext/docs/assets/img/human-resources/job-applicant.png
Normal file
|
After Width: | Height: | Size: 60 KiB |
BIN
erpnext/docs/assets/img/human-resources/job-opening.png
Normal file
|
After Width: | Height: | Size: 108 KiB |
|
After Width: | Height: | Size: 109 KiB |
BIN
erpnext/docs/assets/img/human-resources/leave-allocation.png
Normal file
|
After Width: | Height: | Size: 79 KiB |
BIN
erpnext/docs/assets/img/human-resources/leave-application.png
Normal file
|
After Width: | Height: | Size: 96 KiB |
BIN
erpnext/docs/assets/img/human-resources/leave-type.png
Normal file
|
After Width: | Height: | Size: 53 KiB |
|
After Width: | Height: | Size: 30 KiB |
|
After Width: | Height: | Size: 36 KiB |