[fix] [minor] update modified date and time to item price when updating item and price list

This commit is contained in:
Akhilesh Darjee 2013-12-23 16:24:33 +05:30
parent af30c3fdfd
commit 61da43f793
2 changed files with 2 additions and 2 deletions

View File

@ -213,7 +213,7 @@ class DocType(DocListController, WebsiteGenerator):
def update_item_price(self):
webnotes.conn.sql("""update `tabItem Price` set item_name=%s,
item_description=%s where item_code=%s""",
item_description=%s, modified=NOW() where item_code=%s""",
(self.doc.item_name, self.doc.description, self.doc.name))
def get_page_title(self):

View File

@ -44,5 +44,5 @@ class DocType(DocListController):
def update_item_price(self):
webnotes.conn.sql("""update `tabItem Price` set currency=%s,
buying_or_selling=%s where price_list=%s""",
buying_or_selling=%s, modified=NOW() where price_list=%s""",
(self.doc.currency, self.doc.buying_or_selling, self.doc.name))