-
Notifications
You must be signed in to change notification settings - Fork 49
Update bill.class.php #379
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
Conversation
$tab[] = [ | ||
'id' => '11', | ||
'table' => 'glpi_plugin_order_bills', | ||
'field' => 'order_name', | ||
'name' => __('Order ID', 'order'), | ||
'datatype' => 'string', | ||
'nosearch' => true, | ||
'massiveaction' => false, | ||
'computation' => '(SELECT num_order FROM glpi_plugin_order_orders WHERE glpi_plugin_order_orders.id = glpi_plugin_order_bills.plugin_order_orders_id)', | ||
]; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
redundant search option with search option 8
$tab[] = [ | |
'id' => '11', | |
'table' => 'glpi_plugin_order_bills', | |
'field' => 'order_name', | |
'name' => __('Order ID', 'order'), | |
'datatype' => 'string', | |
'nosearch' => true, | |
'massiveaction' => false, | |
'computation' => '(SELECT num_order FROM glpi_plugin_order_orders WHERE glpi_plugin_order_orders.id = glpi_plugin_order_bills.plugin_order_orders_id)', | |
]; |
'table' => 'glpi_plugin_order_bills', | ||
'field' => 'order_name', | ||
'name' => __('Order', '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)', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This should allow searching to list all bills associated with a specific order.
There is no need to use computation
; refer to the previous search option that uses the 'dropdown' data type.
This PR has not progressed for quite some time. I will go ahead and close it. Please feel free to reopen it if needed and resolve any conflicts. Best regards, |
Add bill value in list option