| API / APIs Radiofréquence | |
| Version ACE : 5.0-00 | |
|
Package : Standard Sous-programme Basic : Val_Allotie Nom de la gnc : gnc_rf_val_allotie |
Fonctionnalité :Réception |
| Schémas d’entrée et de sortie : | voir en fin de document. |
Cette API permet de valider les mouvements d'entrée non validés appartenant aux lignes de réception alloties associées à l’identifiant choisi.
API imbriquées : aucune.
Contraintes et limites de fonctionnement (hors périmètre)
| RAS. |
Paramétrage (PPE)
| RAS. |
Prototype de la fonction Basic
| Val_Allotie (p_numero_module, typdep, sigdep, numrec, idobjpere) |
Messages en entrée
| VAL_ALLOTI~typdep~sigdep~numrec~idobjpere~ |
Messages en sortie
| Retour~ |
Valeurs restituées par l’API
| VALEUR | REMARQUE |
| 1 | Validation OK. |
| 0 | Problème de validation. |
Cas d’erreurs
| CODE | PARAMÈTRES | DESCRIPTION |
|---|---|---|
| 0 | Reception header does not exist. | |
| 0 | EE header does not exist. | |
| 0 | EE type does not exist. | |
| 0 | Movement cannot be validated. | |
| 0 | Tables leal and lrel cannot be updated. |
Processus, contrôles et règles de gestion
| ETAPE | DESCRIPTION DU PROCESSUS |
| 1 | Validation des mouvements d'entrée des lignes de réception alloties concernées par l’identifiant « allotie » choisi. |
| Détail : |
Read reception header data (table LREE) with the input parameters (typdep, sigdep, numrec). If the reception header is not found, the API returns 0. For each reception line data (table LREL) read with reception third-party (lree.typtie,lree.sigtie) and reception number (lree.numrec). If the input parameter ( idobjpere ) is equal to current reception line parent stock object ID (lrel.idobjpere) Read the EE header (LEAE table) with (lrel.typtie, lrel.sigtie, lrel.numea). If the EE header is not found, the API returns 0 Read the EE type data (LTEA) with the parameters (leae.typtie, leae.sigtie and leae.typeea). If the EE type is not found, the API returns 0 For each stock movement (table LMVTSTK ) read with current reception line third-party (lrel.typtie, lrel.sigtie) and current reception number (lrel.numrec) and current reception line number (lrel.numligrec). If the reception line number for the stock movement is different from the reception line number for the reception line (lmvtstk.numligrec != lrel.numligrec). Read the next stock movement. If there is a not validated (lmvtstk.status != 9) entry movement (lmvtstk.typmvt = ‘E’ and lmvtstk.sensmvt = ‘E’). Call the function gnc_valid_mvtstk, as so to validate the movement. If it is not possible to validate the movement, the API returns 0. Call the function gnc_maj_valid_mvts, as so to update the tables leal and lrel at movement validation. If the update is not done, the API returns 0. |
Exemple(s) d’utilisation
| ret = Val_Allotie (numero_module, typdep, sigdep, idreception, idobj1) |
| NOM DU PARAMÈTRE | TYPE | FORMAT | TAILLE | OBL O/N | REMARQUE |
| typdep | CHAR | 3 | O | Type de dépôt | |
| sigdep | CHAR | 12 | O | Sigle du dépôt | |
| numrec_car | CHAR | 10 | O | Identifiant de la réception allotie | |
| idobjpere | CHAR | 18 | O | Identifiant « allotie » |
Aucun.