update stock_entry.py
This commit is contained in:
parent
50763d58ce
commit
9235c6d65a
@ -37,13 +37,10 @@ class StockEntry(StockController):
|
|||||||
|
|
||||||
count = frappe.db.exists({
|
count = frappe.db.exists({
|
||||||
"doctype": "Journal Entry",
|
"doctype": "Journal Entry",
|
||||||
"stock_entry":self.stock_entry,
|
"stock_entry":self.name,
|
||||||
"docstatus":1
|
"docstatus":1
|
||||||
})
|
})
|
||||||
if count:
|
self.get("__onload").credit_debit_note_exists = 1 if count else 0
|
||||||
self.get("__onload").credit_debit_note_exists = 1
|
|
||||||
else:
|
|
||||||
self.get("__onload").credit_debit_note_exists = 0
|
|
||||||
|
|
||||||
def validate(self):
|
def validate(self):
|
||||||
self.validate_posting_time()
|
self.validate_posting_time()
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user