correction dans le cas où la commande n'a pas de ligne...

This commit is contained in:
Francis REAT 2024-06-21 13:28:44 +02:00
parent e8510d079c
commit 044fda9d16
2 changed files with 9 additions and 6 deletions

View File

@ -44,8 +44,9 @@
"apt_with_end_consignee": "${apt_with_end_consignee_flag}", "apt_with_end_consignee": "${apt_with_end_consignee_flag}",
"apt_with_intermediate": "false", "apt_with_intermediate": "false",
"load_grouping": "${load_grouping}" "load_grouping": "${load_grouping}"
}, }
<#if actorID == defaultactor > <#if actorID == defaultactor >
,
"address": { "address": {
"type_code": "${typecode}", "type_code": "${typecode}",
"title_code" : "${titlecode}", "title_code" : "${titlecode}",
@ -66,9 +67,10 @@
"postal_code": "${executionflow.ShipTo.Actor.Address.PostalCode!""}", "postal_code": "${executionflow.ShipTo.Actor.Address.PostalCode!""}",
"post_code_area_name" : "${executionflow.ShipTo.Actor.Address.City!""}", "post_code_area_name" : "${executionflow.ShipTo.Actor.Address.City!""}",
"iso_country_code": "${executionflow.ShipTo.Actor.Address.CountryCode!""}" "iso_country_code": "${executionflow.ShipTo.Actor.Address.CountryCode!""}"
}, }
</#if> </#if>
<#if executionflow.Lines??> <#if executionflow.Lines??>
,
"line_list": [ "line_list": [
<#list executionflow.Lines as line> <#list executionflow.Lines as line>
<#-- ******* line MetaData and Segmentationkeys to maps ******** --> <#-- ******* line MetaData and Segmentationkeys to maps ******** -->
@ -100,7 +102,8 @@
} }
<#sep>,</#sep> <#sep>,</#sep>
</#list> </#list>
]
</#if> </#if>
]
} }
} }

View File

@ -25,9 +25,10 @@
</#if> </#if>
"carrier_appointment_made": "false", "carrier_appointment_made": "false",
"receipt_in_cross_docking": "false", "receipt_in_cross_docking": "false",
"dock_occupation_duration": 1, "dock_occupation_duration": 1
<#if executionflow.Lines??> <#if executionflow.Lines??>
,
"line_list": [ "line_list": [
<#list executionflow.Lines as line> <#list executionflow.Lines as line>
@ -61,7 +62,6 @@
}<#sep>,</#sep> }<#sep>,</#sep>
</#list> </#list>
] ]
</#if> </#if>
} }
} }