mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-26 00:14:50 +00:00
fixes in stock entry
This commit is contained in:
@@ -178,6 +178,7 @@ class DocType(TransactionBase):
|
|||||||
d.amount = flt(d.qty) * flt(d.incoming_rate)
|
d.amount = flt(d.qty) * flt(d.incoming_rate)
|
||||||
|
|
||||||
def get_incoming_rate(self, args):
|
def get_incoming_rate(self, args):
|
||||||
|
incoming_rate = 0
|
||||||
if self.doc.purpose == "Sales Return" and \
|
if self.doc.purpose == "Sales Return" and \
|
||||||
(self.doc.delivery_note_no or self.doc.sales_invoice_no):
|
(self.doc.delivery_note_no or self.doc.sales_invoice_no):
|
||||||
sle = webnotes.conn.sql("""select name, posting_date, posting_time,
|
sle = webnotes.conn.sql("""select name, posting_date, posting_time,
|
||||||
|
|||||||
Reference in New Issue
Block a user