Landed Cost on_submit and gl entries for PR

This commit is contained in:
nabinhait
2014-07-16 19:48:29 +05:30
committed by Nabin Hait
parent f6ea21c8ae
commit 87f2401c1e
10 changed files with 124 additions and 18 deletions

View File

@@ -274,7 +274,7 @@ class StockController(AccountsController):
from erpnext.stock.stock_ledger import make_sl_entries
make_sl_entries(sl_entries, is_amended)
def make_cancel_gl_entries(self):
def make_gl_entries_on_cancel(self):
if frappe.db.sql("""select name from `tabGL Entry` where voucher_type=%s
and voucher_no=%s""", (self.doctype, self.name)):
self.make_gl_entries()