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 into responsive
This commit is contained in:
@@ -271,9 +271,9 @@ class TransactionBase(StatusUpdater):
|
||||
if not self.doc.posting_time:
|
||||
self.doc.posting_time = now_datetime().strftime('%H:%M:%S')
|
||||
|
||||
def add_calendar_event(self, opts):
|
||||
def add_calendar_event(self, opts, force=False):
|
||||
if self.doc.contact_by != cstr(self._prev.contact_by) or \
|
||||
self.doc.contact_date != cstr(self._prev.contact_date):
|
||||
self.doc.contact_date != cstr(self._prev.contact_date) or force:
|
||||
|
||||
self.delete_events()
|
||||
self._add_calendar_event(opts)
|
||||
@@ -358,4 +358,4 @@ def validate_currency(args, item, meta=None):
|
||||
args.plc_conversion_rate = flt(args.plc_conversion_rate,
|
||||
get_field_precision(meta.get_field("plc_conversion_rate"),
|
||||
webnotes._dict({"fields": args})))
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user