mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-09 00:01:18 +00:00
fix: removed unused code
(cherry picked from commit dc5f2d35ac)
# Conflicts:
# erpnext/stock/doctype/stock_entry/stock_entry.py
This commit is contained in:
committed by
Mergify
parent
ff622ef552
commit
9efc1de40e
@@ -113,7 +113,6 @@ class StockEntry(StockController):
|
|||||||
self.validate_purpose()
|
self.validate_purpose()
|
||||||
self.validate_item()
|
self.validate_item()
|
||||||
self.validate_customer_provided_item()
|
self.validate_customer_provided_item()
|
||||||
self.validate_qty()
|
|
||||||
self.set_transfer_qty()
|
self.set_transfer_qty()
|
||||||
self.validate_uom_is_integer("uom", "qty")
|
self.validate_uom_is_integer("uom", "qty")
|
||||||
self.validate_uom_is_integer("stock_uom", "transfer_qty")
|
self.validate_uom_is_integer("stock_uom", "transfer_qty")
|
||||||
@@ -375,6 +374,7 @@ class StockEntry(StockController):
|
|||||||
flt(item.qty) * flt(item.conversion_factor), self.precision("transfer_qty", item)
|
flt(item.qty) * flt(item.conversion_factor), self.precision("transfer_qty", item)
|
||||||
)
|
)
|
||||||
|
|
||||||
|
<<<<<<< HEAD
|
||||||
if (
|
if (
|
||||||
self.purpose in ("Material Transfer", "Material Transfer for Manufacture")
|
self.purpose in ("Material Transfer", "Material Transfer for Manufacture")
|
||||||
and not item.serial_no
|
and not item.serial_no
|
||||||
@@ -419,6 +419,8 @@ class StockEntry(StockController):
|
|||||||
if stock_qty > trans_qty:
|
if stock_qty > trans_qty:
|
||||||
item_code.append(item.item_code)
|
item_code.append(item.item_code)
|
||||||
|
|
||||||
|
=======
|
||||||
|
>>>>>>> dc5f2d35ac (fix: removed unused code)
|
||||||
def validate_fg_completed_qty(self):
|
def validate_fg_completed_qty(self):
|
||||||
if self.purpose != "Manufacture":
|
if self.purpose != "Manufacture":
|
||||||
return
|
return
|
||||||
|
|||||||
Reference in New Issue
Block a user