App Versions
{
"erpnext": "13.41.1",
"frappe": "13.43.2",
"posawesome": "3.4.0"
}
Route
posapp
Trackeback
Traceback (most recent call last):
File "apps/frappe/frappe/utils/data.py", line 98, in get_datetime
return datetime.datetime.strptime(datetime_str, DATETIME_FORMAT)
File "/usr/lib/python3.7/_strptime.py", line 577, in _strptime_datetime
tt, fraction, gmtoff_fraction = _strptime(data_string, format)
File "/usr/lib/python3.7/_strptime.py", line 359, in _strptime
(data_string, format))
ValueError: time data 'None 23:52:46.959384' does not match format '%Y-%m-%d %H:%M:%S.%f'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "apps/frappe/frappe/app.py", line 69, in application
response = frappe.api.handle()
File "apps/frappe/frappe/api.py", line 55, in handle
return frappe.handler.handle()
File "apps/frappe/frappe/handler.py", line 38, in handle
data = execute_cmd(cmd)
File "apps/frappe/frappe/handler.py", line 76, in execute_cmd
return frappe.call(method, **frappe.form_dict)
File "apps/frappe/frappe/__init__.py", line 1457, in call
return fn(*args, **newargs)
File "apps/posawesome/posawesome/posawesome/api/posapp.py", line 384, in update_invoice
invoice_doc.save()
File "apps/frappe/frappe/model/document.py", line 310, in save
return self._save(*args, **kwargs)
File "apps/frappe/frappe/model/document.py", line 332, in _save
return self.insert()
File "apps/frappe/frappe/model/document.py", line 261, in insert
self.run_before_save_methods()
File "apps/frappe/frappe/model/document.py", line 1052, in run_before_save_methods
self.run_method("validate")
File "apps/frappe/frappe/model/document.py", line 941, in run_method
out = Document.hook(fn)(self, *args, **kwargs)
File "apps/frappe/frappe/model/document.py", line 1264, in composer
return composed(self, method, *args, **kwargs)
File "apps/frappe/frappe/model/document.py", line 1246, in runner
add_to_return_value(self, fn(self, *args, **kwargs))
File "apps/frappe/frappe/model/document.py", line 938, in fn
return method_object(*args, **kwargs)
File "apps/erpnext/erpnext/accounts/doctype/sales_invoice/sales_invoice.py", line 96, in validate
super(SalesInvoice, self).validate()
File "apps/erpnext/erpnext/controllers/selling_controller.py", line 32, in validate
super(SellingController, self).validate()
File "apps/erpnext/erpnext/controllers/stock_controller.py", line 42, in validate
super(StockController, self).validate()
File "apps/erpnext/erpnext/controllers/accounts_controller.py", line 164, in validate
validate_return(self)
File "apps/erpnext/erpnext/controllers/sales_and_purchase_return.py", line 23, in validate_return
validate_return_against(doc)
File "apps/erpnext/erpnext/controllers/sales_and_purchase_return.py", line 49, in validate_return_against
if get_datetime(return_posting_datetime) < get_datetime(ref_posting_datetime):
File "apps/frappe/frappe/utils/data.py", line 100, in get_datetime
return parser.parse(datetime_str)
File "env/lib/python3.7/site-packages/dateutil/parser/_parser.py", line 1368, in parse
return DEFAULTPARSER.parse(timestr, **kwargs)
File "env/lib/python3.7/site-packages/dateutil/parser/_parser.py", line 643, in parse
raise ParserError("Unknown string format: %s", timestr)
dateutil.parser._parser.ParserError: Unknown string format: None 23:52:46.959384
Request Data
{
"type": "POST",
"args": {
"data": "{\"doctype\":\"Sales Invoice\",\"is_pos\":1,\"ignore_pricing_rule\":1,\"company\":\"Mazare Al nakheel Company for Dates\",\"pos_profile\":\"Hera\",\"currency\":\"SAR\",\"customer\":\"Cash Customer\",\"items\":[{\"item_code\":\"000050\",\"posa_row_id\":\"rf38sup6e0a4n1vyp3h6\",\"posa_offers\":\"[]\",\"posa_offer_applied\":0,\"posa_is_offer\":0,\"is_free_item\":0,\"qty\":-0.1,\"rate\":8,\"uom\":\"Kg\",\"amount\":-0.8,\"conversion_factor\":1,\"discount_percentage\":0,\"discount_amount\":0,\"posa_notes\":\"\",\"price_list_rate\":8}],\"total\":\"-0.80\",\"discount_amount\":0,\"additional_discount_percentage\":0,\"posa_pos_opening_shift\":\"POSA-OS-22-0000238\",\"payments\":[{\"amount\":0,\"mode_of_payment\":\"نقد\",\"default\":1,\"account\":\"\"},{\"amount\":0,\"mode_of_payment\":\"شبكة الراجحي\",\"default\":0,\"account\":\"\"}],\"taxes\":[],\"is_return\":1,\"return_against\":\"POS-01068\",\"posa_offers\":[],\"posa_coupons\":[],\"posa_delivery_charges_rate\":0}"
},
"headers": {},
"error_handlers": {},
"async": false,
"url": "/api/method/posawesome.posawesome.api.posapp.update_invoice"
}
Response Data
{
"exception": "dateutil.parser._parser.ParserError: Unknown string format: None 23:52:46.959384"
}