| API / APIs Radiofréquence | |
| Version ACE : 1.3 | |
|
Package : Standard Nom de la gnc : gnc_sce_gp_008 gnc_ue_palettiser |
Fonctionnalité : Préparation |
| Schémas d’entrée et de sortie : | voir en fin de document. |
Cette API permet de palettiser une UP dans une UE.
API imbriquées : aucune.
Contraintes et limites de fonctionnement (hors périmètre)
| RAS. |
Paramétrage (PPE)
| RAS. |
Cas d'erreur
| CODE | PARAMÈTRES | DESCRIPTION |
|---|---|---|
| 0/ “LOG_COLIS” | Parcel data is not from parcel type. | |
| 0/”L_COL_PAL” | 1 | Delivery associated third-party type for the expedition unit and for the first preparation unit is different (lcol.typliv) OR the delivery associated third-party identifier for the expedition unit and for the first preparation unit is different (lcol.sigliv). |
| 0/”L_COL_PAL” | 2 | Client/expedition tour relation is not found. |
| 0/”L_COL_PAL” | 3 | Execution of the function gnc_colis_affect_colis_tournee is not successful. |
| 0/”L_COL_PAL” | 4 | Client/expedition tour relation is not found. |
| 0/”L_COL_PAL” | 5 | Execution of the function gnc_colis_affect_colis_tournee is not successful. |
| 0/”L_COL_PAL” | 6 | Client/expedition tour relation is not found. |
| 0/”L_COL_PAL” | 7 | Client/expedition tour relation is not found. |
| 0/”L_COL_PAL” | 8 | Platform delivery flag is not active. |
| 0/”L_COL_PAL” | 9 | Platform delivery flag for the expedition unit OR for the first preparation unit is not active (ltrncli.livptf != ‘1’) OR the destination depot type (lole.typdest) for the delivery order headers of the expedition unit and the first preparation unit is not the same OR the destination depot ID (lole.sigdest) for the delivery order headers of the expedition unit and the first preparation unit is not the same OR the order number address (lole.numadr) for the delivery order headers of the expedition unit and the first preparation unit is not the same. |
| 0/ "ELT_PASTRO" | lcol, lcol.idobjcol | Parcel is not found. |
| 0/ "ELT_PASTRO" | lobjstk, lobjstk.idobj | Stock object is not found. |
| 0/"LOG_TEMP" | The parcel is temporary. | |
| 0/"LOG_NONVAL" | The parcel is not validated. | |
| "L_COLISUE" | The parcel is on another expedition unit. | |
| 0/"L_UE_FERME" | The expedition unit on which is the parcel is not validated. | |
| 0/"OL_INEX" | Lcol.idol | The delivery order header does not exist. |
| 0/"L_COL_MEME" | "Palettisation" | The palettization constraint is not fulfilled. |
| 0/"L_COL_MEME" | "Chargement" | The loading constraint is not fulfilled. |
| 0/"LOG_TRN_ID" | The parcel is not assigned to the correct expedition tour. | |
| 0/"L_COL_MEME" | "Bon de Livraison" | The delivery note constraint is not fulfilled. |
| 0/"L_COL_MEME" | "Récépissé Transport" | The transport receipt constraint is not fulfilled. |
| 0/"L_COL_MEME" | "Code postal" | The postcode constraint is not fulfilled. |
| 0/"L_COL_MEME" | "Département" | The department constraint is not fulfilled. |
| 0/"LOG_PAL" | Palettization problem. | |
| 0/"LOG_DISPO" | "Colis" | The parcel is not available. |
| 0/"L_COLISUE" | The parcel is already on the expedition unit. | |
| 0 | The execution of the function gnc_colis_modif_statut is not successful. |
Processus, contrôles et règles de gestion
| ETAPE | DESCRIPTION DU PROCESSUS |
| L’API vérifie d’abord l’état du colis (= Unité de Préparation) et les différentes contraintes liées à l’UE. L’API procède ensuite à la palettisation de l’UP. | |
| Dans le cas où l’UP est déjà sur une UE, l’API « dépalettise » d’abord l’UP, puis elle le « repalettise » sur la nouvelle UE. | |
| Contrôles |
1/ The control: If the parcel is not pure (LCOL.flgue != ‘0’), the API returns an error code 0 and an error message “LOG_COLPUR”. Was changed with: If the parcel data is not from parcel type (lcol.flgcolis != ‘1’), the API returns an error code 0 and an error message “LOG_COLIS”. 2/ The control: Else if the parcel is not validated (LCOL.statut != ‘5’), the API returns an error code 0 and an error message “LOG_NONVAL”. Was changed with: Else if the parcel is not valid (LCOL.statut != ‘5’ AND lcol.flgue = ‘0’ OR lcol.statut != ‘5’ AND lcol.statut != ‘6’ AND lcol.flgue != ‘0’), the API returns an error code 0 and an error message “LOG_NONVAL”. 3/ The control: If the expedition tour identifier is not the same for the first preparation unit delivery order headers and for the expedition unit delivery order headers (lole.idtrn), the API returns an error code 0 and an error message “LOG_TRN_ID”. Was changed with: If the palettization for the first preparation unit delivery order header is of type ‘5’ (palettis = ‘5’) AND the palettization for the expedition unit delivery order header is of type ‘5’ (palettis = ‘5’) AND (the addressed depot types for the first preparation unit delivery order header and for the expedition unit delivery order header are different (lole.typdest) OR the addressed depot identifiers for the first preparation unit delivery order header and for the expedition unit delivery order header are different (lole.sigdest)) The expedition unit is considered as multi store. If the expedition tour identifier is not the same for the first preparation unit delivery order header and for the expedition unit delivery order header (LOLE .idtrn) AND the expedition unit is not considered as multi store AND the expedition unit is assigned to an expedition tour (idtrn != ‘0’) AND the palettization for the first preparation unit delivery order header is not of type ‘5’ (palettis != ‘5’) AND the palettization for the expedition unit delivery order header is not of type ‘5’ (palettis != ‘5’) The API returns an error code 0 and an error message “LOG_TRN_ID”. The following controls were added. If there is a preparation unit on the expedition unit. Else if the palettization must be of type ‘5’ (LOLE .palettis = ‘5’). If the expedition unit is not assigned to an expedition tour (LCOL.idtrn = 0) AND the first preparation unit is not assigned to an expedition tour (lcol.idtrn = 0). IF the delivery associated third-party type for the expedition unit and for the first preparation unit is different (lcol.typliv) OR the delivery associated third-party identifier for the expedition unit and for the first preparation unit is different (lcol.sigliv). The API returns an error code 0 and an error message “L_COL_PAL”. Else if the expedition unit is not assigned to an expedition tour (lcol.idtrn = 0). Read the client/expedition tour relation (ltrncli) with the parameters: third party type (lole.typtie) and third party ID (lole.sigtie) from the delivery order header for the first preparation unit, expedition tour ID (LCOL.idtrn) from the first preparation unit, delivery associated third-party type (LCOL.typliv) and delivery associated third-party ID (lcol.sigliv) from the expedition unit. If the relation is not found, the API returns an error code 0 and an error message “L_COL_PAL”. Call the function gnc_colis_affect_colis_tournee, as so to affect the parcel to the expedition tour. If the execution of the function is not successful, the API returns an error code 0 and an error message “L_COL_PAL”. Else if the first preparation unit is not assigned to an expedition tour (LCOL.idtrn = 0). Read the client/expedition tour relation (ltrncli) with the parameters: third party type (LOLE.typtie) and third party ID (lole.sigtie) from the delivery order header for the expedition unit, expedition tour ID (LCOL.idtrn) from the expedition unit, delivery associated third-party type (LCOL.typliv) and delivery associated third-party ID (LCOL.sigliv) from the first preparation unit. If the relation is not found, the API returns an error code 0 and an error message “L_COL_PAL”. For each preparation unit (LCOL) for the expedition unit (idue=idue input parameter). Call the function gnc_colis_affect_colis_tournee, as so to affect the parcel to the expedition tour. If the execution of the function is not successful, the API returns an error code 0 and an error message “L_COL_PAL”. Else. Read the client/expedition tour relation (ltrncli) with the parameters: third party type (LOLE.typtie) and third party ID (LOLE.sigtie) from the delivery order header for the expedition unit, expedition tour ID (lcol.idtrn) from the expedition unit, delivery associated third-party type (lcol.typliv) and delivery associated third-party ID (LCOL.sigliv) from the expedition unit. If the relation is not found, the API returns an error code 0 and an error message “L_COL_PAL”. Read the client/expedition tour relation (ltrncli) with the parameters: third party type (lole.typtie) and third party ID (LOLE.sigtie) from the delivery order header for the first preparation unit, expedition tour ID (LCOL.idtrn) from the first preparation unit, delivery associated third-party type (lcol.typliv) and delivery associated third-party ID (LCOL.sigliv) from the first preparation unit. If the relation is not found, the API returns an error code 0 and an error message “L_COL_PAL”. If the expedition tour identifier is the same for the first preparation unit delivery order header and for the expedition unit delivery order header (LOLE.idtrn) AND the expedition unit is considered as multi store. If the platform delivery flag for the expedition unit OR for the first preparation unit is not active (ltrncli.livptf != ‘1’). The API returns an error code 0 and an error message “L_COL_PAL”. Else if the expedition tour identifier is not the same for the first preparation unit delivery order header and for the expedition unit delivery order header (LOLE.idtrn). If the platform delivery flag for the expedition unit OR for the first preparation unit is not active (LTRNCLI.livptf != ‘1’) OR the destination depot type (LOLE.typdest) for the delivery order headers of the expedition unit and the first preparation unit is not the same OR the destination depot ID (lole.sigdest) for the delivery order headers of the expedition unit and the first preparation unit is not the same OR the order number address (LOLE.numadr) for the delivery order headers of the expedition unit and the first preparation unit is not the same. The API returns an error code 0 and an error message “L_COL_PAL”. Else Call the function gnc_colis_desaff_colis_tournee, as so to deallocate the preparation unit form the current expedition tour. Call the function gnc_colis_affect_colis_tournee, as so to assign the preparation unit to the expedition tour of the expedition tour. If the delivery order header for the expedition unit has mono expedition tour type (lole.idtrn != ‘0’). The delivery order header expedition tour type is changed to multi (lole.idtrn = ‘0’). Else For each delivery order header (lole) in pending status (statut = 1), related to the delivery order header for the expedition unit (idol = lcol.idol). Check whether its expedition tour identifier is the same as the expedition tour identifier of the expedition unit (lole.idtrn = lcol.idtrn). If the verification is fulfilled the expedition tour is considered as multi tour. If the expedition tour is a multi tour. Update the expedition tour ID for the delivery order header related to the expedition unit with the expedition tour ID of the expedition tour (LOLE.idtrn = LCOL.idtrn). The following functionality was added. If the parcel is not on an expedition unit (lcol.idue is empty). If the expedition unit is empty. Read the parcel data (LCOL) related to the expedition unit (idobjcol = idue input parameter). If the parcel is not found, the API returns an error code 0 and an error message “ELT_PASTRO”. Read the stock object data (LOBJSTK ) related to the first preparation unit (idobj = lcol.idobj). If the stock object is not found, the API returns an error code 0 and an error message “ELT_PASTRO”. Read the depot data (ldep). If the virtual store for the depot (LDEP.magvir) is the same as the store for the stock object of the first preparation unit. Update the slot address and the store for the stock object of the first preparation unit with the slot address and the store for the stock object of the expedition unit (lobjstk.adremp, lobjstk.lcodmag). Read the parcel data (LCOL) for the expedition unit (idobjcol = idue input parameter). If the parcel does not exist, the API returns an error code 0 and an error message “ELT_PASTRO”. If the third-party ID associated with the delivery for the first preparation unit parcel (lcol.sigliv) is not presented. Update the delivery associated third-party ID (lcol.sigliv), the delivery associated third-party type (LCOL.typliv), the address order number (LCOL.numadr) for the parcel with the corresponding data from the parcel related to the expedition unit (idue = idue input parameter). |
| NOM | DESCRIPTION | FORMAT | OBLIGATOIRE/FACULTATIF |
|---|---|---|---|
| typdep | Type dépôt | Char(3) | O |
| sigdep | Sigle dépôt | Char(12) | O |
| idue | N° UE en cours | Char(18) | O |
| idobjcol | N° UP à palettiser | Char(18) | O |
| NOM DU PARAMÈTRE | TYPE | FORMAT | TAILLE | REMARQUE |
| Aucun. |