pluginsglpi / order Goto Github PK
View Code? Open in Web Editor NEWOrder plugin for GLPI
License: GNU General Public License v3.0
Order plugin for GLPI
License: GNU General Public License v3.0
Rename "Type" dropdown into "Order type". To make it more understandable.
Original Redmine issue : https://forge.glpi-project.org/issues/5108
2015-11-07 21:46:18 [2@aldebaran]
*** MySQL query error:
SQL: INSERT
INTO glpi_plugin_order_references
(entities_id
,is_recursive
,name
,comment
,is_active
,manufacturers_id
,itemtype
,types_id
,models_id
,templates_id
,date_mod
) VALUES ('0','0','D630','','1','46','Computer','1','167','0','2015-11-07 21:46:18')
Error: Field 'manufacturers_reference' doesn't have a default value
Backtrace :
inc/commondbtm.class.php:425
inc/commondbtm.class.php:831 CommonDBTM->addToDB()
plugins/order/front/reference.form.php:42 CommonDBTM->add()
If an item is not linked to an order, there's no need to display a tab, without any data
Bonjour,
j'utilise beaucoup le plugin de gestion de commandes de GLPI.
Cependant, je rencontre toujours un probleme, y compris sur les dernières version (0.90.1).
Un bon exemple vaut mieux que 36 explications:
Budget XXXX=10 000 euros.
Je crée une commande=1000 euros contenant:
* 1 Ordi a 700 Euros (qui finira dans l'inventaire),
* 1 Sacoche à 50 Euros (qui ne finira pas dans l'inventaire - bien sûr).
Lors de la réception de la commande, je valide la réception, je rentre l'ordinateur dans l'inventaire, je crée une facture de 750 Euros dans le module "Commande", je l'associe à la commande, elle passe dans le status "payée. Bref il me semble que je fais tout bien.
Au niveau du Budget XXXX, après l'achèvement de la commande, je me retrouve avec 10 000 - 700 = 9 300 au lieu de 9 250 Euros (et oui, la sacoche ...).
J'ai vaguement regardé au niveau des tables GLPI, il semblerait que cela provienne du fait que les budgets sont défalqués analytiquement à partir d'objets de l'inventaire (ce qui n'est pas le cas de ma sacoche à 50 Euros qui n'y figure pas).
Aussi, n'y aurait-il pas moyen de créer un objet typé "fourre-tout", dans l'inventaire, qui permettrait au plugin commande de se lier parfaitement avec la gestion budgétaire.
Pour contourner ce souci, j'ai trouvé l'astuce pourrie suivante: j'ai à ma disposition un "contrat" bidon dans lequeel je vais affecter le coût de 50 euros relatif à ma sacoche.
Si vous avez un moyen de résoudre ce soucis, ce serait parfait: s'il faut me faire une proposition commerciale, je suis preneur.
J'ai également une petite demande à effectuer au niveau de la gestion budgétaire: j'aimerais pouvoir créer un sous-budget (des budgets de budgets si vous préférez).
A user have the delivery right in it's profile cannot take item in delivery if he cannot create, update or delete an order
Create a order
Add a reference : 3000 $
Add the reference to order
the Discounted price tax free is 3.00 $ and the price with taxe is 3.60 $
When run, automatic action 'ComputeLateOrders' generates a log.
Provided there is at least an order late, the 2nd line in log, where status = Running, displays the following description = "Entité racine : Array" !
And a php error is written in php-errors.log
Notice(8): Array to string conversion
Backtrace :
/var/www/glpiOLD/inc/toolbox.class.php:531 Toolbox::userErrorHandlerNormal()
/var/www/glpiOLD/plugins/order/inc/order.class.php:1803 Toolbox::userErrorHandlerDebug()
/var/www/glpiOLD/inc/crontask.class.php:755 call_user_func()
/var/www/glpiOLD/front/crontask.form.php:46 CronTask::launch()
Original Redmine issue : https://forge.glpi-project.org/issues/5109
The user is not redirected to the newly created reference if the following option is enabled in it's preferences.
Bonjour,
je ne savais pas comment vous faire parvenir mon code.
On peut maintenant associer plusieurs commande à une facture.
Ex interne: facturation au mois d'un fournisseur
la facture pouvait concerner plusieurs commandes
Je ne maîtrise pas l'outil donc vous aurez quelques modifications à faire pour le rendre propre
Vous êtes libre de l'exploiter (ou pas)
Cdlt
Hi all,
Thank's for your work !
We have an issue with order : when we want to validate a reciep with 500 element we have this message :
"L'action que vous avez réalisée n'est pas autorisée."
Good luck guys !
Original Redmine issue : https://forge.glpi-project.org/issues/5287
Goal :
Adding device management for a reference.
Generation of devices when generating equipment.
Need to apply this before : glpi-project/glpi#530
I send a pull request as soon as possible.
The last pull => #10
Remove this line:
$price = Html::formatNumber($price);
But now Glpi display 1234.5000 price instead of 1234.50
See image => http://img15.hostingpics.net/pics/182210glpiorder.png
Thanks
Is the dropdown value "reference_code" in the items list a new feature?
We changed the code in \ajax\dropdownReference.php because we are not used to choose the reference_code in the dropdownReference Field. Instead we like to see the reference name.
OLD:
// $values[$data['id']] = !empty($data['reference_code'])
// ? $data['reference_code']
// : $data['name'];
NEW:
$values[$data['id']] = !empty($data['name'])
? $data['name']
: $data['reference_code'];
Linking an item to an order or deleteting an item link from an order is only possible with user profile "Super-Admin". If a user is not Super-Admin he gets the following error messages:
Linking Items:
Cannot update item: insufficient rights on the parent item(s)
Deleting item links:
Cannot update item: insufficient rights on the parent item(s)
Here are the profile settings:
Super-Admin
GLPI Version 0.85.5
Bonjour,
Nous sommes en train d'installer le système GLPI dans notre société avec le plugin de gestion des commandes.
Parcontre ce que nous n'arrivons pas à faire c'est restreinde la vue des commandes aux auteurs uniquement.
Exemple :
Ce que j'aimerais c'est que les personnes qui créer des commandes ne voit dans la liste des commandes QUE les commandes qu'il a passé. Aujourd'hui le simple droit de lecture donne accès à toutes les commandes sur GLPI. En terme de confidentialité c'est pas top :(
Savez-vous s'il est possible de restreindre les accès dans cette idée ?
Merci
*** PHP Deprecated function(8192): Methods with the same name as their class will not be constructors in a future version of PHP; PclZip has a deprecated constructor
Goal :
Add Fields Location, group and status in the generation equipment.
I send a pull request as soon as possible.
Bonjour
Depuis le profil super admin j'ai un onglet documents disponible pour chaque commande.
Lorsque je cherche à gérer les droits pour les autres profils, je ne peux pas donner ce droit et il n'est pas actif par défaut.
Comment faire pour que les personnes ayant le droit de valider une commande puisse me joindre le PDF signé du bon de commande ?
GLPI v 0.90.4
Plugins Order 0.85 +1.2
Fournisseur ok
Référence Produit ok
Liaison Référence Produit et fournisseur ok
Budget ok
Création de l'en tête de commande ok
Le passage au détail de la commande (éléments de la commande) s'effectue bien mais hormis le message de chargement il ne se passe plus rien.
If I have consumables in the item list the link to the "consumables" section in the inventory does not work (no update of items_id in orders_items).
If I put the items_id of the consumable item into the database directly it is possible to link the item "manually".
Original issue : https://forge.glpi-project.org/issues/5096
When I validate the creation of an order where the order number is missing (mandatory), all data entered on screen are lost.
Would be better not to lose them, and be able to add what is missing only.
Original Redmine issue : https://forge.glpi-project.org/issues/5110
En fonction du type d'affichage Glpi,
l'ajout d'une facture n'est pas possible .
Si l'affichage est de type "Onglet sur la gauche" l'affichage est correcte.
Pour les autres , nous arrivons sur une page blanche (sans erreur PHP ou Apache).
Cordialement
Hello,
From a 0.85 GLPI version, I was not able to add assets to an order, it's empty. I upgraded my glpi version to 0.90.1 and the assets tabs is empty.
Best regards,
Nicolas
The computeLateOrder task is not created during the plugin's installation
Bonjour,
Nous sommes en train de tester votre plugin et c'est vraiment bien. Par contre nous somme au Québec et nous avons 2 taxes. Est-ce que ça serait possible de nous permettre d'ajouter une deuxième taxe ? La deuxième taxe la première donc je ne peux pas faire un calcul des deux taxes directement.
Merci
Hi,
We are currently testing your plugin and it's working very well! However we are living in Quebec and we got 2 taxes. Would it be possible to add a functionality that would permit us to add a second tax. The second tax is taxing the firs one so i can't calculate the two taxes directly.
Thank you
When an item generated from an order has a template associated to it's reference, the location is not forwarded from the order to the item.
Hi,
I just upgrade my GLPI from 0.84 to 0.9 and I can't install plugin "Order Master".
When I Uncompress the folder "order-master" into the "plugins" folder, GLPI (by Web) don't see the plugin.
PlugIn FusionInventory is working.
Have you got an idea ?
Thanks,
Est-il possible d'avoir une liaison entre le plugin ORDER et la table consommables de GLPI
En effet si je créer un consommable dans la table GLPI, est-il possible de le retrouver dans les articles du plugin Order?
Comme ça lors de la réception de la commande effectuée dans le plugin Order, mon stock de sonsomables dans glpi se met à jour.
Le but final c'est d'effectuée une commande automatique (plugin order) quand un consommable à été donné à un utilisateur suite à sa demande effectuée par le plugin "consumables"
Permit to add an object into a command without pre add into references catalog
Must have a new table with designation, reference, price HT etc.. linked on a command
This is closely related to #9 and #13 but slightly different:
When the price on the product is entered with a "," as decimal seperator (when adding directly from the reference and changing nothing), everything behind the decimal seperator is ignored. If a manually enter the (same) price with a "." as decimal separator the correct price shows up in the order.
When i want to export order to my own template. I have fatal error when plugin setVar to template
The try catch on order.class.php line 1626 is badly formatted.
You need to catch "\Odtphp\Exceptions\OdfException" rather than "OdfException", if not, the Exeption is not catched
BEFORE
foreach ($values as $field => $val) { try { $odf->setVars($field, $val, true, 'UTF-8'); } catch (OdfException $e) { } }
AFTER
foreach ($values as $field => $val) { try { $odf->setVars($field, $val, true, 'UTF-8'); } catch (\Odtphp\Exceptions\OdfException $e) { } }
Bonjour,
J'ai besoin d'entrer des prix unitaire HT de produits jusqu'à 6 chiffres après la virgules, hors seuls 2 chiffres après la virgules sont autorisés. Où puis-je modifier cette limite? Merci
Hello,
Sorry for my bad english,
About products and price unit (taxes free): i need to have 6 digits after the dot, actually only 2 digits are allowed.
How can i modify this limit? Thanks
L'erreur à l'installation se produit
update itemtype of table glpi_tickets for PluginOrderBudget - Erreur durant l'éxecution de la requête : UPDATE
glpi_ticketsSET
itemtype= 'PluginOrderBudget' WHERE
itemtype= '3153' - L'erreur est Unknown column 'itemtype' in 'where clause'
During install & migration, profiles are not correclty set. Taken in delivery & order generation are never set
Dans la liste des tickets une massive action "Ajouter un élément" propose d'ajouter au(x) ticket(s) une commande existante.
Or quand je vais dans un des tickets où j'ai associé (dans le passé) une commande, celle-ci n'apparait pas dans l'onglet "Élements".
Le nombre d'éléments (dans le nom de l'onglet) est correct mais cet élément n’apparaît pas alors qu'il est bien dans la base de données (table "glpi_items_tickets", itemtype 'PluginOrderOrder').
Friends is possible to translate this plugin to Portuguese Brazil? Very good plugin and see the possibility of using it
When editing infocoms related to an item linked to an error, there's an error message saying that some fields cannot be modified. But the message appears even if none of theses fields are being modified
Hello,
Since the migration, I no longer displays the notes in order.
After checking on the database in "glpi_plugin_order_orders" then "notepad", well I find my data, but nothing to display the web page.
Would you have a solution?
I cannot add items to an order, there is a Drop Down under Type but its Blank (----- ) , I created many diferences Products references and other items type but when I try to add one to a orde the drop down box does not show anything.
I'm working with GLPI 0.9.1 and order management pluging 0.85+1.2
When a use has no right to take items in delivery, the Item Delivered tab is hidden.
It should not be hidden, but the user simply shouldn't be able to see massive actions
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.