Skip to content

Commit

Permalink
fix: don't close PO on SCO close
Browse files Browse the repository at this point in the history
  • Loading branch information
s-aga-r committed Jan 4, 2024
1 parent bb839b2 commit 0d01bd8
Showing 1 changed file with 0 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
from frappe.utils import flt

from erpnext.buying.doctype.purchase_order.purchase_order import is_subcontracting_order_created
from erpnext.buying.doctype.purchase_order.purchase_order import update_status as update_po_status
from erpnext.controllers.subcontracting_controller import SubcontractingController
from erpnext.stock.stock_balance import update_bin_qty
from erpnext.stock.utils import get_bin
Expand Down Expand Up @@ -310,9 +309,6 @@ def update_status(self, status=None, update_modified=True):
"Subcontracting Order", self.name, "status", status, update_modified=update_modified
)

if status == "Closed":
update_po_status("Closed", self.purchase_order)


@frappe.whitelist()
def make_subcontracting_receipt(source_name, target_doc=None):
Expand Down

0 comments on commit 0d01bd8

Please sign in to comment.