mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-21 14:09:19 +00:00
fix: remove unwanted parameter in calculate_rate_and_amount (#24883)
* fix: remove unwanted parameter in calculate_rate_and_amount * fix: translation syntax
This commit is contained in:
@@ -25,8 +25,8 @@ class PickList(Document):
|
|||||||
if not frappe.get_cached_value('Item', item.item_code, 'has_serial_no'):
|
if not frappe.get_cached_value('Item', item.item_code, 'has_serial_no'):
|
||||||
continue
|
continue
|
||||||
if not item.serial_no:
|
if not item.serial_no:
|
||||||
frappe.throw(_("Row #{0}: {1} does not have any available serial numbers in {2}".format(
|
frappe.throw(_("Row #{0}: {1} does not have any available serial numbers in {2}").format(
|
||||||
frappe.bold(item.idx), frappe.bold(item.item_code), frappe.bold(item.warehouse))),
|
frappe.bold(item.idx), frappe.bold(item.item_code), frappe.bold(item.warehouse)),
|
||||||
title=_("Serial Nos Required"))
|
title=_("Serial Nos Required"))
|
||||||
if len(item.serial_no.split('\n')) == item.picked_qty:
|
if len(item.serial_no.split('\n')) == item.picked_qty:
|
||||||
continue
|
continue
|
||||||
@@ -380,7 +380,7 @@ def create_stock_entry(pick_list):
|
|||||||
|
|
||||||
stock_entry.set_incoming_rate()
|
stock_entry.set_incoming_rate()
|
||||||
stock_entry.set_actual_qty()
|
stock_entry.set_actual_qty()
|
||||||
stock_entry.calculate_rate_and_amount(update_finished_item_rate=False)
|
stock_entry.calculate_rate_and_amount()
|
||||||
|
|
||||||
return stock_entry.as_dict()
|
return stock_entry.as_dict()
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user