order icon indicating copy to clipboard operation
order copied to clipboard

Display and search of the "order" field in invoices

Open IP-V15 opened this issue 2 years ago • 4 comments

When displaying invoices in list mode, the "order" field appears empty and searches yield nothing on this field. If someone come and fix it ? Thanks Config : GLPI 10.0.5 - Windows Server 2016 - PHP 8.0.9 - MariaDB 10.4.20 - "Form Creator" plugin - "Additional fields"plugin - "Order"plugin - Firefox 102.5 ESR

IP-V15 avatar Jan 06 '23 19:01 IP-V15

that is sql script issue, because the current script return 0 value

joekoay avatar Apr 07 '24 17:04 joekoay

i have modified the code and i get the result now, here for your reference

$tab[] = [ 'id' => '8', 'table' => 'glpi_plugin_order_bills', 'field' => 'order_name', 'name' => __('Order Name', 'order'), 'datatype' => 'string', 'nosearch' => true, 'massiveaction' => false, 'computation' => '(SELECT name FROM glpi_plugin_order_orders WHERE glpi_plugin_order_orders.id = glpi_plugin_order_bills.plugin_order_orders_id)', ];

joekoay avatar Apr 12 '24 07:04 joekoay

Thank you very much ! Can you tell me how to add a hyperlink to the order form?

IP-V15 avatar Jul 29 '24 18:07 IP-V15

@joekoay

can you open a pull request concerning you fix ?

stonebuzz avatar Aug 21 '24 09:08 stonebuzz