| API / APIs Radiofréquence | |
| Version ACE : 5.0-00 | |
|
Package : Standard Sous-programme Basic : Donne_Infos_ObjMvt Nom de la gnc : gnc_rf_infostock |
Fonctionnalité :Général |
| Schémas d’entrée et de sortie : | voir en fin de document. |
Cette API permet de fournir les informations associées à l'objet de stock et au mouvement de stock (tables LMVTSTK, LOBJSTK et LMAG).
API imbriquées : aucune.
Contraintes et limites de fonctionnement (hors périmètre)
| RAS. |
Paramétrage (PPE)
| RAS. |
Prototype de la fonction Basic
| Retour = Donne_Infos_ObjMvt (numero_module, typmvt, idmvt, flg_obj_complet, idobjcol, obj_qteunt, flgecl, typmag, flgcompac) |
Messages en entrée
| INFOS~S~typmvt~idmvt~ |
Messages en sortie
| Retour~flg_obj_complet~idobjcol~obj_qteunt~flgecl~typmag~flgcompac |
Valeurs restituées par l’API
| L’API retourne toujours « 1 ». |
Processus, contrôles et règles de gestion
| ETAPE | DESCRIPTION DU PROCESSUS |
| 1 | Identification du mouvement de stock dans le dépôt courant de l’utilisateur, suivant le sens le type et l’identifiant indiqués en entrée. |
| 2 | Identification de l’objet de stock associé au mouvement. |
| 3 | Identification du magasin associé au mouvement. |
| Détail : |
Read the Depot of the operator. Read the stock movement. Read the stock object associated with the stock movement. Read the store associated with the stock movement. |
Exemple(s) d’utilisation
| Retour_Donne_Infos_ObjMvt = Donne_Infos_ObjMvt (numero_module, typmvt, idmvt, flg_obj_complet, idobjcol, obj_qteunt, flgecl, typmag, flgcompac) |
| NOM DU PARAMÈTRE | TYPE | FORMAT | TAILLE | OBL O/N | REMARQUE |
| sensmvt | CHAR | 1 | O | Sens du mouvement de stock | |
| typmvt | CHAR | 1 | O | Type du mouvement de stock | |
| Iimvt | CHAR | 10 | O | Identifiant du mouvement de stock |
| NOM DU PARAMÈTRE | TYPE | TAILLE | REMARQUE |
| ParamOut1 | CHAR | 1 |
« 1 » si la QTEUNT du mouvement = celle de l’objet « 0 » sinon |
| ParamOut2 | CHAR | 18 | Identifiant colis du mouvement de stock (lmvtstk.idobjcol) |
| ParamOut3 | LONG | Quantité unitaire de l’objet de stock (lobjstk.qteunt) | |
| ParamOut4 | CHAR | 1 | Indicateur d'autorisation d'éclatement du magasin associé au mouvement (lmag.flgecl) |
| ParamOut5 | LONG | Type du magasin associé au mouvement (lmag.typmag) | |
| ParamOut6 | CHAR | 1 | Flag compactage du mouvement (lmvtstk.flgcompac) |