Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Display and search of the "order" field in invoices #343

Open
IP-V15 opened this issue Jan 6, 2023 · 4 comments
Open

Display and search of the "order" field in invoices #343

IP-V15 opened this issue Jan 6, 2023 · 4 comments

Comments

@IP-V15
Copy link

IP-V15 commented Jan 6, 2023

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

@joekoay
Copy link

joekoay commented Apr 7, 2024

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

@joekoay
Copy link

joekoay commented Apr 12, 2024

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)',
];

@IP-V15
Copy link
Author

IP-V15 commented Jul 29, 2024

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

@stonebuzz
Copy link
Contributor

@joekoay

can you open a pull request concerning you fix ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants