diff --git a/RPtoRFX_Receipt.ftl b/RPtoRFX_Receipt.ftl index 1a453a5..90ef77a 100644 --- a/RPtoRFX_Receipt.ftl +++ b/RPtoRFX_Receipt.ftl @@ -55,7 +55,11 @@ "level_1_quantity": ${line.RequestedMetrics.QuantityInBaseLV.Value!0}, "owner_code": "${owner_code}", "grade_code": "${grade_code}", - "batch_1": "${batch_1?json_string!""}" + "batch_1": "${batch_1?json_string!""}", + "optional_attributes": { + <#include "RPtoRFX_Receipt_OptionalAttributes.ftl"> + "hold_for_specific_code": "false" + } }<#sep>, ] diff --git a/RPtoRFX_Receipt_LineMetadata.ftl b/RPtoRFX_Receipt_LineMetadata.ftl index 426746f..d54423b 100644 --- a/RPtoRFX_Receipt_LineMetadata.ftl +++ b/RPtoRFX_Receipt_LineMetadata.ftl @@ -15,7 +15,3 @@ ] , --> - -"optional_attributes": { - "hold_for_specific_code": "false" -}, \ No newline at end of file diff --git a/RPtoRFX_Receipt_OptionalAttributes.ftl b/RPtoRFX_Receipt_OptionalAttributes.ftl new file mode 100644 index 0000000..cb2ac5c --- /dev/null +++ b/RPtoRFX_Receipt_OptionalAttributes.ftl @@ -0,0 +1,16 @@ +<#-- Here are the fields that can be added + "batch_2": "string", +"batch_3": "string", +"anticipated_receipt_line_activity_code": "str", +"anticipated_receipt_line_physical_depot_code": "str", +"anticipated_receipt_line_originator_code": "string", +"anticipated_receipt_reference": "string", +"anticipated_receipt_planned_date": "0000-00-00", +"anticipated_receipt_reference_line_no": 999999, +"reservation_consignee_code": "string", +"reservation_consignee_group_code": "string", +"pro_reservation_reference": "string", +"held_for_check": "false", +"held_for_repacking": "false", +"hold_code": "str" +-->