Module Stock (developer): Difference between revisions

m
Import interlang links (links to translated versions of this page in other languages) from Multi Language Manager table.
m (Import interlang links (links to translated versions of this page in other languages) from Multi Language Manager table.)
 
(4 intermediate revisions by one other user not shown)
Line 1: Line 1:
<!-- BEGIN origin interlang links -->
<!-- You can edit this section but do NOT remove these comments
    Links below will be automatically replicated on translated pages by PolyglotBot -->
[[fr:Module_Stock_(développeur)]]
[[es:Módulo_Stock_(desarrollador)]]
<!-- END interlang links -->
[[Category:Stock]]
[[Category:Stock]]
{{TemplateDocDevEn}}
{{TemplateDocDevEn}}
Line 24: Line 31:
== Expéditions ==
== Expéditions ==


La modification du stock sur expédition se fait dans le script htdocs/expedition/commandes.php et utilise la classe expedition.class.php (méthode ''valid()''). La vérification avant modification du stock se fait comme suit:
Changing the expedition stock is in the script htdocs / shipping / commandes.php and uses expedition.class.php class (Method '' valid () ''). The verification before modification of the stock is as follows:


   if ($conf->stock->enabled && $this->entrepot_id && $conf->global->STOCK_CALCULATE_ON_SHIPMENT == 1)
   if ($conf->stock->enabled && $this->entrepot_id && $conf->global->STOCK_CALCULATE_ON_SHIPMENT == 1)


== Commandes/Livraison ==
== Commandes/Livraison (Order/delivery or shipment)==


Lorsque l'option d'incrémenter le stock sur commandes est activée, du côté des commandes fournisseurs, c'est la classe htdocs/fourn/fournisseur.commande.class.php qui prend en charge l'incrémentation du stock au travers de sa méthode ''DispatchProduct()''. L'activation de cette commande n'est possible qu'à l'état 3 et 4 de la commande fournisseur, ce qui veut dire qu'il ne faut pas rater son coup au moment d'encoder la commande. Une fois la commande "envoyée", il est possible de placer les produits dans le stock en cliquant sur l'onglet Dispatch (''Ventilation'').
Lorsque l'option d'incrémenter le stock sur commandes est activée, du côté des commandes fournisseurs, c'est la classe htdocs/fourn/fournisseur.commande.class.php qui prend en charge l'incrémentation du stock au travers de sa méthode ''DispatchProduct()''. L'activation de cette commande n'est possible qu'à l'état 3 et 4 de la commande fournisseur, ce qui veut dire qu'il ne faut pas rater son coup au moment d'encoder la commande. Une fois la commande "envoyée", il est possible de placer les produits dans le stock en cliquant sur l'onglet Dispatch (''Ventilation'').


= Améliorations possibles =
'''Temporary translation:'''
When the option to increment the stock of orders is on the side of supplier orders, this is the class htdocs / prov / fournisseur.commande.class.php that supports incrementing the stock through its method '' DispatchProduct () ''. Enabling this control is only possible state 3 and 4 of the purchase order, which means that you should not miss a step when encode the order. Once the order "sent", it is possible to place the products in the stock by clicking on the tab Dispatch ('' Ventilation ').
 
= Améliorations possibles (Possible enhancements) =


Une livraison d'un produit composé de plusieurs sous-produits devrait pouvoir être intégrée au stock sous forme des différents constituants plutôt que du tout.
Une livraison d'un produit composé de plusieurs sous-produits devrait pouvoir être intégrée au stock sous forme des différents constituants plutôt que du tout.
Cette intégration peut être faite de façon simple en ajoutant un checkbox dans fourn/commande/dispatch.php, une méthode donnant la liste détaillée des composants d'un produit (incluant les quantités), et une nouvelle méthode commandeFournisseur::DispatchProductAsComponents() qui va chercher la liste des enfants et les place un à un dans le stock.
Cette intégration peut être faite de façon simple en ajoutant un checkbox dans fourn/commande/dispatch.php, une méthode donnant la liste détaillée des composants d'un produit (incluant les quantités), et une nouvelle méthode commandeFournisseur::DispatchProductAsComponents() qui va chercher la liste des enfants et les place un à un dans le stock.
'''Temporary translation'''
A supply of a product consisting of several by-products should be able to be integrated into the stock in the form of individual components rather than at all.
This integration can be done in a simple way by adding a checkbox in prov / order / dispatch.php a method giving a detailed list of components of a product (including quantities), and a new method commandeFournisseur :: DispatchProductAsComponents () that fetches the list of children and places them one by one into the stock.


= Permissions =
= Permissions =
2,052

edits