From c6d5611408f44e066d2801fd622447471f7ac30f Mon Sep 17 00:00:00 2001 From: Manas Solanki Date: Thu, 18 Jan 2018 11:20:24 +0530 Subject: [PATCH] Issue in the data import while importing the invoice --- erpnext/utilities/transaction_base.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/erpnext/utilities/transaction_base.py b/erpnext/utilities/transaction_base.py index 01125f997b..0032e80f1e 100644 --- a/erpnext/utilities/transaction_base.py +++ b/erpnext/utilities/transaction_base.py @@ -26,7 +26,7 @@ class TransactionBase(StatusUpdater): now = now_datetime() self.posting_date = now.strftime('%Y-%m-%d') self.posting_time = now.strftime('%H:%M:%S.%f') - else: + elif self.posting_time: try: get_time(self.posting_time) except ValueError: