diff --git a/RFXtoRP_HsaIpgMove.ftl b/RFXtoRP_HsaIpgMove.ftl index 0582ada..9884ec8 100644 --- a/RFXtoRP_HsaIpgMove.ftl +++ b/RFXtoRP_HsaIpgMove.ftl @@ -31,7 +31,8 @@ reflexMvtStockInterface.ipg_move_type == "420" || reflexMvtStockInterface.ipg_move_type == "455" || reflexMvtStockInterface.ipg_move_type == "460" || - reflexMvtStockInterface.ipg_move_type == "465" + reflexMvtStockInterface.ipg_move_type == "465" || + (reflexMvtStockInterface.ipg_move_type == "520" && reflexMvtStockInterface.ipg_move_creation_program == "HFST69") > [ { diff --git a/RFXtoRP_HsaIpgMove_StockMoved.ftl b/RFXtoRP_HsaIpgMove_StockMoved.ftl index f45d3c1..d9d0fd7 100644 --- a/RFXtoRP_HsaIpgMove_StockMoved.ftl +++ b/RFXtoRP_HsaIpgMove_StockMoved.ftl @@ -18,7 +18,8 @@ "420":"STOCK_MOVEMENT_TYPE_REQUALIFICATION", "455":"STOCK_MOVEMENT_TYPE_FIX", "460":"STOCK_MOVEMENT_TYPE_FIX", - "465":"STOCK_MOVEMENT_TYPE_FIX" + "465":"STOCK_MOVEMENT_TYPE_FIX", + "520":"STOCK_MOVEMENT_TYPE_OUTBOUND" }> <#assign generation_date = RfxDateTimetoUTC(reflexMvtStockInterface.ipg_move_creation_datetime,time_zone_offset_rfx) /> <#assign ipg_priority_datetime = reflexMvtStockInterface.ipg_priority_date?datetime(rfx_date_format_default)?iso_utc /> @@ -52,7 +53,11 @@ "Author": "ReflexWMS-${reflexMvtStockInterface.ipg_move_creation_user_code?json_string}", "ExternalMoveRef" : "${reflexMvtStockInterface.ipg_move_year_number} - ${reflexMvtStockInterface.ipg_move_number}", "Type": "${MoveType_KV[reflexMvtStockInterface.ipg_move_type]!reflexMvtStockInterface.ipg_move_type}", - "Reason": "${reflexMvtStockInterface.miscellaneous_receipts_despatches_code?json_string}", + <#if reflexMvtStockInterface.ipg_move_type == "520" > + "Reason": " Transfert ${RFXtoRPprefixDepot(reflexMvtStockInterface.physical_depot_code?trim?json_string)} to ${RFXtoRPprefixDepot(reflexMvtStockInterface.transfer_consignee_physical_depot_code?trim?json_string)}", + <#else> + "Reason": "${reflexMvtStockInterface.miscellaneous_receipts_despatches_code?json_string}", + "ExternalInfo" : "${reflexMvtStockInterface.stock_move_reference?json_string}", <#if reflexMvtStockInterface.ipg_move_operation_year_number!= 0> "OperationReference": "${reflexMvtStockInterface.ipg_move_operation_year_number} - ${reflexMvtStockInterface.ipg_move_operation_number}",