Allow to get RFF|DQ but doesn't process it

This commit is contained in:
Carlos G?lvez 2019-11-22 10:34:19 +01:00
parent abc6c89177
commit f7ff36187e
2 changed files with 3 additions and 2 deletions

View File

@ -100,7 +100,8 @@ class ShipmentIn(EdifactMixin, metaclass=PoolMeta):
# means the file readed it's not a order response.
if not message.get_segment('DESADV_D_96A_UN_EAN005'):
return DO_NOTHING, NO_ERRORS
rff = message.get_segment('RFF')
rffs = message.get_segments('RFF')
rff, = [x for x in rffs if x.elements[0] == 'ON'] or [None]
template_rff = template_header.get('RFF')
purchase, errors = cls._process_RFF(rff, template_rff, control_chars)
if errors:

View File

@ -5,7 +5,7 @@ header:
DESADV_D_96A_UN_EAN005: []
BGM: ['!value', '351', !!python/tuple ['9', '31']]
DTM: ['!value']
RFF: ['ON', '!value']
RFF: [!!python/tuple ['ON', 'DQ'], '!value']
detail:
CPS: ['!value', !!python/tuple ['', '!value']]
LIN: ['!value', 'EN', '!value']