On 05/07/2013 08:51 PM, Angelo de Laat wrote:
> HJ,
>
> i try to follow your advice but run into several problems.
> Replacing UNH by UNB and removing UNT in the INVOIC segment (and recorddef.) is no issue but the envelope is still imported.
Why define an envelope? (get if out of the imports)
> This results in an TypeError: unsupported operand type(s) for +: 'int' and 'list'
>
> In the envelope there is both UNB as UNH, so what should i do with this one and where do i get the from/topartner?
> I have tried to hash out the import of the envelope but that results in TypeError: unsupported operand type(s) for +: 'int' and 'list'
>
> The difference between the EDIFACT and INHOUSE character length is for example
>
> _edifact_
> 'PAI': [
> ['BOTSID', 'M', 3, 'AN'],
> ['C534', 'M', [
> ['C534.4439', 'C', 3, 'AN'],
> ['C534.4431', 'C', 3, 'AN'],
> ['C534.4461', 'C', 3, 'AN'],
> * ['C534.1131', 'C', 17, 'AN'],*
> ['C534.3055', 'C', 3, 'AN'],
> * ['C534.4435', 'C', 3, 'AN'],*
> ]],
> ],
>
> _INHOUSE_
> 'PAI': [
> ['BOTSID', 'M', 3, 'AN'],
> ['C534', 'M', [
> ['C534.4439', 'C', 3, 'AN'],
> ['C534.4431', 'C', 3, 'AN'],
> * ['C534.4461', 'C', 3, 'AN'],*
> ['C534.1131', 'C', 3, 'AN'],
> ['C534.3055', 'C', 3, 'AN'],
> * ]],*
> ],
probably. maybe they use a diferent version of edifact. Normally the UNH states the version. But there is not UNH ;-)))
checking all these grammars is painful.
kind regards,
henk-jan