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

View File

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