mirror of
https://github.com/frappe/erpnext.git
synced 2026-06-01 19:29:10 +00:00
[fix] [minor] make bank voucher from expense claim and serial no status
This commit is contained in:
@@ -52,9 +52,7 @@ class DocType(StockController):
|
||||
webnotes.throw(_("Item Code cannot be changed for Serial No."), SerialNoCannotCannotChangeError)
|
||||
if not self.via_stock_ledger and warehouse != self.doc.warehouse:
|
||||
webnotes.throw(_("Warehouse cannot be changed for Serial No."), SerialNoCannotCannotChangeError)
|
||||
|
||||
if not self.doc.warehouse and self.doc.status=="Available":
|
||||
self.doc.status = "Not Available"
|
||||
|
||||
|
||||
def validate_item(self):
|
||||
"""
|
||||
|
||||
Reference in New Issue
Block a user