[fix] [minor] update modified date and time to item price when updating item and price list
This commit is contained in:
parent
af30c3fdfd
commit
61da43f793
@ -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):
|
||||
|
@ -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))
|
Loading…
Reference in New Issue
Block a user