mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-26 08:24:47 +00:00
Merge branch 'master' of github.com:webnotes/erpnext
This commit is contained in:
@@ -142,7 +142,8 @@ class DocType(StockController):
|
|||||||
gl_entries = self.get_gl_entries_for_stock(against_stock_account, self.doc.purchase_rate)
|
gl_entries = self.get_gl_entries_for_stock(against_stock_account, self.doc.purchase_rate)
|
||||||
|
|
||||||
for entry in gl_entries:
|
for entry in gl_entries:
|
||||||
entry["posting_date"] = self.doc.purchase_date
|
entry["posting_date"] = self.doc.purchase_date or (self.doc.creation and
|
||||||
|
self.doc.creation.split(' ')[0]) or nowdate()
|
||||||
|
|
||||||
if gl_entries:
|
if gl_entries:
|
||||||
make_gl_entries(gl_entries, cancel)
|
make_gl_entries(gl_entries, cancel)
|
||||||
Reference in New Issue
Block a user