make sure not to include cricom number in commission code (#1383)
This commit is contained in:
parent
5b28e05df4
commit
186c5734e6
|
@ -958,7 +958,7 @@ class SyncFromPcfDbView(BrowserView):
|
|||
if doctype == 'CRICOM':
|
||||
nocric = object.no.split('-')[0]
|
||||
try:
|
||||
nocric, com_code, nocricom = re.match(r'(\d+)-(.*)(\d+)', object.no).groups()
|
||||
nocric, com_code, nocricom = re.match(r'(\d+)-(.*?)(\d+)', object.no).groups()
|
||||
except AttributeError:
|
||||
# make sure we do not get anything afterwards
|
||||
nocric, com_code, nocricom = '999', 'XXX', '999'
|
||||
|
|
Reference in New Issue