mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-07 15:25:19 +00:00
fix: update formatings
(cherry picked from commit 5f4a523340)
# Conflicts:
# erpnext/selling/doctype/sales_order/sales_order.py
This commit is contained in:
@@ -13,7 +13,6 @@ from frappe.model.mapper import get_mapped_doc
|
|||||||
from frappe.model.utils import get_fetch_values
|
from frappe.model.utils import get_fetch_values
|
||||||
from frappe.query_builder.functions import Sum
|
from frappe.query_builder.functions import Sum
|
||||||
from frappe.utils import add_days, cint, cstr, flt, get_link_to_form, getdate, nowdate, strip_html
|
from frappe.utils import add_days, cint, cstr, flt, get_link_to_form, getdate, nowdate, strip_html
|
||||||
from erpnext.stock.get_item_details import get_bin_details
|
|
||||||
|
|
||||||
from erpnext.accounts.doctype.sales_invoice.sales_invoice import (
|
from erpnext.accounts.doctype.sales_invoice.sales_invoice import (
|
||||||
unlink_inter_company_doc,
|
unlink_inter_company_doc,
|
||||||
@@ -31,7 +30,15 @@ from erpnext.manufacturing.doctype.production_plan.production_plan import (
|
|||||||
from erpnext.selling.doctype.customer.customer import check_credit_limit
|
from erpnext.selling.doctype.customer.customer import check_credit_limit
|
||||||
from erpnext.setup.doctype.item_group.item_group import get_item_group_defaults
|
from erpnext.setup.doctype.item_group.item_group import get_item_group_defaults
|
||||||
from erpnext.stock.doctype.item.item import get_item_defaults
|
from erpnext.stock.doctype.item.item import get_item_defaults
|
||||||
|
<<<<<<< HEAD
|
||||||
from erpnext.stock.get_item_details import get_default_bom, get_price_list_rate
|
from erpnext.stock.get_item_details import get_default_bom, get_price_list_rate
|
||||||
|
=======
|
||||||
|
from erpnext.stock.doctype.stock_reservation_entry.stock_reservation_entry import (
|
||||||
|
get_sre_reserved_qty_details_for_voucher,
|
||||||
|
has_reserved_stock,
|
||||||
|
)
|
||||||
|
from erpnext.stock.get_item_details import get_bin_details, get_default_bom, get_price_list_rate
|
||||||
|
>>>>>>> 5f4a523340 (fix: update formatings)
|
||||||
from erpnext.stock.stock_balance import get_reserved_qty, update_bin_qty
|
from erpnext.stock.stock_balance import get_reserved_qty, update_bin_qty
|
||||||
|
|
||||||
form_grid_templates = {"items": "templates/form_grid/item_grid.html"}
|
form_grid_templates = {"items": "templates/form_grid/item_grid.html"}
|
||||||
@@ -608,7 +615,9 @@ def make_material_request(source_name, target_doc=None):
|
|||||||
target.project = source_parent.project
|
target.project = source_parent.project
|
||||||
target.qty = get_remaining_qty(source)
|
target.qty = get_remaining_qty(source)
|
||||||
target.stock_qty = flt(target.qty) * flt(target.conversion_factor)
|
target.stock_qty = flt(target.qty) * flt(target.conversion_factor)
|
||||||
target.actual_qty = get_bin_details(target.item_code, target.warehouse, source_parent.company, True).get("actual_qty", 0)
|
target.actual_qty = get_bin_details(
|
||||||
|
target.item_code, target.warehouse, source_parent.company, True
|
||||||
|
).get("actual_qty", 0)
|
||||||
|
|
||||||
args = target.as_dict().copy()
|
args = target.as_dict().copy()
|
||||||
args.update(
|
args.update(
|
||||||
|
|||||||
Reference in New Issue
Block a user