mirror of
https://gitlab.com/datalifeit/trytond-stock_shipment_in_edi
synced 2023-12-14 06:42:59 +01:00
Allow to get RFF|DQ but doesn't process it
This commit is contained in:
parent
abc6c89177
commit
f7ff36187e
2 changed files with 3 additions and 2 deletions
|
@ -100,7 +100,8 @@ class ShipmentIn(EdifactMixin, metaclass=PoolMeta):
|
||||||
# means the file readed it's not a order response.
|
# means the file readed it's not a order response.
|
||||||
if not message.get_segment('DESADV_D_96A_UN_EAN005'):
|
if not message.get_segment('DESADV_D_96A_UN_EAN005'):
|
||||||
return DO_NOTHING, NO_ERRORS
|
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')
|
template_rff = template_header.get('RFF')
|
||||||
purchase, errors = cls._process_RFF(rff, template_rff, control_chars)
|
purchase, errors = cls._process_RFF(rff, template_rff, control_chars)
|
||||||
if errors:
|
if errors:
|
||||||
|
|
|
@ -5,7 +5,7 @@ header:
|
||||||
DESADV_D_96A_UN_EAN005: []
|
DESADV_D_96A_UN_EAN005: []
|
||||||
BGM: ['!value', '351', !!python/tuple ['9', '31']]
|
BGM: ['!value', '351', !!python/tuple ['9', '31']]
|
||||||
DTM: ['!value']
|
DTM: ['!value']
|
||||||
RFF: ['ON', '!value']
|
RFF: [!!python/tuple ['ON', 'DQ'], '!value']
|
||||||
detail:
|
detail:
|
||||||
CPS: ['!value', !!python/tuple ['', '!value']]
|
CPS: ['!value', !!python/tuple ['', '!value']]
|
||||||
LIN: ['!value', 'EN', '!value']
|
LIN: ['!value', 'EN', '!value']
|
||||||
|
|
Loading…
Reference in a new issue