fix: rearrange functions

This commit is contained in:
Deepesh Garg
2023-10-17 20:36:09 +05:30
parent 7f865492d0
commit 8c61fe2ca5
3 changed files with 46 additions and 73 deletions

View File

@@ -73,11 +73,6 @@ class StockController(AccountsController):
gl_entries = self.get_gl_entries(warehouse_account)
make_gl_entries(gl_entries, from_repost=from_repost)
elif self.doctype in ["Purchase Receipt", "Purchase Invoice"] and self.docstatus == 1:
gl_entries = []
gl_entries = self.get_asset_gl_entry(gl_entries)
make_gl_entries(gl_entries, from_repost=from_repost)
def validate_serialized_batch(self):
from erpnext.stock.doctype.serial_no.serial_no import get_serial_nos