mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-18 12:39:18 +00:00
Merge branch 'develop'
This commit is contained in:
@@ -1,2 +1,2 @@
|
|||||||
from __future__ import unicode_literals
|
from __future__ import unicode_literals
|
||||||
__version__ = '6.16.0'
|
__version__ = '6.16.1'
|
||||||
|
|||||||
@@ -7,7 +7,7 @@ app_publisher = "Frappe Technologies Pvt. Ltd."
|
|||||||
app_description = """ERP made simple"""
|
app_description = """ERP made simple"""
|
||||||
app_icon = "icon-th"
|
app_icon = "icon-th"
|
||||||
app_color = "#e74c3c"
|
app_color = "#e74c3c"
|
||||||
app_version = "6.16.0"
|
app_version = "6.16.1"
|
||||||
app_email = "info@erpnext.com"
|
app_email = "info@erpnext.com"
|
||||||
app_license = "GNU General Public License (v3)"
|
app_license = "GNU General Public License (v3)"
|
||||||
source_link = "https://github.com/frappe/erpnext"
|
source_link = "https://github.com/frappe/erpnext"
|
||||||
|
|||||||
@@ -35,7 +35,7 @@ class Item(WebsiteGenerator):
|
|||||||
if not self.item_code:
|
if not self.item_code:
|
||||||
item_code_suffix = ""
|
item_code_suffix = ""
|
||||||
for attribute in self.attributes:
|
for attribute in self.attributes:
|
||||||
attribute_abbr = frappe.db.get_value("Item Attribute Value",
|
attribute_abbr = frappe.db.get_value("Item Attribute Value",
|
||||||
{"parent": attribute.attribute, "attribute_value": attribute.attribute_value}, "abbr")
|
{"parent": attribute.attribute, "attribute_value": attribute.attribute_value}, "abbr")
|
||||||
item_code_suffix += "-" + str(attribute_abbr or attribute.attribute_value)
|
item_code_suffix += "-" + str(attribute_abbr or attribute.attribute_value)
|
||||||
self.item_code = str(self.variant_of) + item_code_suffix
|
self.item_code = str(self.variant_of) + item_code_suffix
|
||||||
|
|||||||
@@ -125,7 +125,7 @@ class StockReconciliation(StockController):
|
|||||||
for msg in self.validation_messages:
|
for msg in self.validation_messages:
|
||||||
msgprint(msg)
|
msgprint(msg)
|
||||||
|
|
||||||
raise frappe.ValidationError
|
raise frappe.ValidationError(self.validation_messages)
|
||||||
|
|
||||||
def validate_item(self, item_code, row_num):
|
def validate_item(self, item_code, row_num):
|
||||||
from erpnext.stock.doctype.item.item import validate_end_of_life, \
|
from erpnext.stock.doctype.item.item import validate_end_of_life, \
|
||||||
@@ -250,15 +250,15 @@ class StockReconciliation(StockController):
|
|||||||
@frappe.whitelist()
|
@frappe.whitelist()
|
||||||
def get_items(warehouse, posting_date, posting_time):
|
def get_items(warehouse, posting_date, posting_time):
|
||||||
items = frappe.get_list("Bin", fields=["item_code"], filters={"warehouse": warehouse}, as_list=1)
|
items = frappe.get_list("Bin", fields=["item_code"], filters={"warehouse": warehouse}, as_list=1)
|
||||||
|
|
||||||
items += frappe.get_list("Item", fields=["name"], filters= {"is_stock_item": 1, "has_serial_no": 0,
|
items += frappe.get_list("Item", fields=["name"], filters= {"is_stock_item": 1, "has_serial_no": 0,
|
||||||
"has_batch_no": 0, "has_variants": 0, "default_warehouse": warehouse}, as_list=1)
|
"has_batch_no": 0, "has_variants": 0, "default_warehouse": warehouse}, as_list=1)
|
||||||
|
|
||||||
res = []
|
res = []
|
||||||
for item in set(items):
|
for item in set(items):
|
||||||
stock_bal = get_stock_balance(item[0], warehouse, posting_date, posting_time,
|
stock_bal = get_stock_balance(item[0], warehouse, posting_date, posting_time,
|
||||||
with_valuation_rate=True)
|
with_valuation_rate=True)
|
||||||
|
|
||||||
res.append({
|
res.append({
|
||||||
"item_code": item[0],
|
"item_code": item[0],
|
||||||
"warehouse": warehouse,
|
"warehouse": warehouse,
|
||||||
|
|||||||
@@ -8,6 +8,10 @@
|
|||||||
{% include 'templates/includes/product_search_box.html' %}
|
{% include 'templates/includes/product_search_box.html' %}
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
||||||
|
{% block breadcrumbs %}
|
||||||
|
{% include "templates/includes/breadcrumbs.html" %}
|
||||||
|
{% endblock %}
|
||||||
|
|
||||||
{% block page_content %}
|
{% block page_content %}
|
||||||
{% from "erpnext/templates/includes/macros.html" import product_image %}
|
{% from "erpnext/templates/includes/macros.html" import product_image %}
|
||||||
<div class="item-content">
|
<div class="item-content">
|
||||||
|
|||||||
@@ -4,6 +4,10 @@
|
|||||||
{% include 'templates/includes/product_search_box.html' %}
|
{% include 'templates/includes/product_search_box.html' %}
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
||||||
|
{% block breadcrumbs %}
|
||||||
|
{% include "templates/includes/breadcrumbs.html" %}
|
||||||
|
{% endblock %}
|
||||||
|
|
||||||
{% block page_content %}
|
{% block page_content %}
|
||||||
<div class="item-group-content">
|
<div class="item-group-content">
|
||||||
<div>
|
<div>
|
||||||
|
|||||||
2
setup.py
2
setup.py
@@ -1,7 +1,7 @@
|
|||||||
from setuptools import setup, find_packages
|
from setuptools import setup, find_packages
|
||||||
from pip.req import parse_requirements
|
from pip.req import parse_requirements
|
||||||
|
|
||||||
version = "6.16.0"
|
version = "6.16.1"
|
||||||
requirements = parse_requirements("requirements.txt", session="")
|
requirements = parse_requirements("requirements.txt", session="")
|
||||||
|
|
||||||
setup(
|
setup(
|
||||||
|
|||||||
Reference in New Issue
Block a user