Compare commits

..

5 Commits

Author SHA1 Message Date
GangaManoj
c42250b77f fix: Rename 'Action if Same Rate is Not Maintained' to 'Action if Same Rate is Not Maintained Throughout Sales Cycle'
(cherry picked from commit ebdc568e85)

# Conflicts:
#	erpnext/selling/doctype/selling_settings/selling_settings.json
2025-02-28 00:11:40 +00:00
GangaManoj
d3289ac4ab fix: Only display 'Role Allowed to Override Stop Action' if 'Maintain Same Rate Throughout Sales Cycle' is checked
(cherry picked from commit 799d67d785)

# Conflicts:
#	erpnext/selling/doctype/selling_settings/selling_settings.json
2025-02-28 00:11:39 +00:00
GangaManoj
0ea5ccb3cc fix: Remove redundant description
(cherry picked from commit f2a7fbd126)

# Conflicts:
#	erpnext/selling/doctype/selling_settings/selling_settings.json
2025-02-28 00:11:39 +00:00
GangaManoj
f816f7aa6b fix: Move related fields to the same section
(cherry picked from commit 06484321d1)

# Conflicts:
#	erpnext/selling/doctype/selling_settings/selling_settings.json
2025-02-28 00:11:39 +00:00
mergify[bot]
f5160dc83d fix: use Stock Qty while getting POS Reserved Qty (backport #38962) (#38983)
fix: use `Stock Qty` while getting `POS Reserved Qty`

(cherry picked from commit 7223106417)

Co-authored-by: s-aga-r <sagarsharma.s312@gmail.com>
2023-12-28 12:00:04 +05:30
3 changed files with 79 additions and 4 deletions

View File

@@ -4,7 +4,7 @@ import frappe
from erpnext.hooks import regional_overrides
__version__ = "13.55.2"
__version__ = "13.54.4"
def get_default_company(user=None):

View File

@@ -704,7 +704,7 @@ def get_pos_reserved_qty(item_code, warehouse):
reserved_qty = (
frappe.qb.from_(p_inv)
.from_(p_item)
.select(Sum(p_item.qty).as_("qty"))
.select(Sum(p_item.stock_qty).as_("stock_qty"))
.where(
(p_inv.name == p_item.parent)
& (IfNull(p_inv.consolidated_invoice, "") == "")
@@ -715,7 +715,7 @@ def get_pos_reserved_qty(item_code, warehouse):
)
).run(as_dict=True)
return reserved_qty[0].qty or 0 if reserved_qty else 0
return flt(reserved_qty[0].stock_qty) if reserved_qty else 0
@frappe.whitelist()

View File

@@ -30,7 +30,11 @@
"so_required",
"dn_required",
"sales_update_frequency",
<<<<<<< HEAD
"over_order_allowance",
=======
"column_break_5",
>>>>>>> 06484321d1 (fix: Move related fields to the same section)
"allow_multiple_items",
"allow_against_multiple_purchase_orders",
"hide_tax_id",
@@ -210,10 +214,65 @@
"label": "Hide Customer's Tax ID from Sales Transactions"
},
{
<<<<<<< HEAD
"default": "0",
"fieldname": "allow_sales_order_creation_for_expired_quotation",
"fieldtype": "Check",
"label": "Allow Sales Order Creation For Expired Quotation"
=======
"default": "Stop",
"depends_on": "maintain_same_sales_rate",
"fieldname": "maintain_same_rate_action",
"fieldtype": "Select",
"label": "Action if Same Rate is Not Maintained Throughout Sales Cycle",
"mandatory_depends_on": "maintain_same_sales_rate",
"options": "Stop\nWarn"
},
{
"depends_on": "eval: doc.maintain_same_sales_rate && doc.maintain_same_rate_action == 'Stop'",
"fieldname": "role_to_override_stop_action",
"fieldtype": "Link",
"label": "Role Allowed to Override Stop Action",
"options": "Role"
},
{
"fieldname": "customer_defaults_section",
"fieldtype": "Section Break",
"label": "Customer Defaults"
},
{
"fieldname": "column_break_4",
"fieldtype": "Column Break"
},
{
"fieldname": "crm_settings_section",
"fieldtype": "Section Break",
"label": "CRM Settings"
},
{
"fieldname": "column_break_9",
"fieldtype": "Column Break"
},
{
"fieldname": "item_price_settings_section",
"fieldtype": "Section Break",
"label": "Item Price Settings"
},
{
"fieldname": "column_break_15",
"fieldtype": "Column Break"
},
{
"fieldname": "sales_transactions_settings_section",
"fieldtype": "Section Break",
"label": "Transaction Settings"
},
{
"default": "0",
"fieldname": "editable_bundle_item_rates",
"fieldtype": "Check",
"label": "Calculate Product Bundle Price based on Child Items' Rates"
>>>>>>> 06484321d1 (fix: Move related fields to the same section)
}
],
"icon": "fa fa-cog",
@@ -221,7 +280,23 @@
"index_web_pages_for_search": 1,
"issingle": 1,
"links": [],
<<<<<<< HEAD
<<<<<<< HEAD
<<<<<<< HEAD
<<<<<<< HEAD
"modified": "2023-03-22 13:09:38.513317",
=======
"modified": "2021-09-01 22:47:24.298970",
>>>>>>> 06484321d1 (fix: Move related fields to the same section)
=======
"modified": "2021-09-01 22:48:30.860203",
>>>>>>> f2a7fbd126 (fix: Remove redundant description)
=======
"modified": "2021-09-01 22:53:53.394444",
>>>>>>> 799d67d785 (fix: Only display 'Role Allowed to Override Stop Action' if 'Maintain Same Rate Throughout Sales Cycle' is checked)
=======
"modified": "2021-09-01 22:55:33.803624",
>>>>>>> ebdc568e85 (fix: Rename 'Action if Same Rate is Not Maintained' to 'Action if Same Rate is Not Maintained Throughout Sales Cycle')
"modified_by": "Administrator",
"module": "Selling",
"name": "Selling Settings",
@@ -240,4 +315,4 @@
"sort_field": "modified",
"sort_order": "DESC",
"track_changes": 1
}
}