order icon indicating copy to clipboard operation
order copied to clipboard

Fixed PO name, added invoice value, and PO number in the invoice list

Open IP-V15 opened this issue 4 months ago • 1 comments

Code of Conduct

  • [x] I agree to follow this project's Code of Conduct

Is there an existing issue for this?

  • [x] I have searched the existing issues

GLPI Version

10.0.1

Plugin version

2.12.1

Bug description

In the invoice list, the purchase order name leads to the wrong link. The ability to add the invoice value and purchase order number to the display is missing.

Relevant log output


Page URL

/plugins/order/front/bill.php?as_map=0&browse=0&unpublished=1&criteria[0][link]=AND&criteria[0][field]=view&criteria[0][searchtype]=contains&criteria[0][value]=&params[hide_criteria]=0&params[hide_controls]=0&params[showmassiveactions]=1&itemtype=PluginOrderBill&start=0&_glpi_csrf_token=d45e34fb7c222d883d1add3ce22b8c366dfa42159d4c60c3feabafcc0bb7a7a8&_idor_token=acae01d8a2e0ecfab8ca3ffc5d56c147c6687e8312b3fa877d90e85be4019abb

Steps To reproduce

No response

Your GLPI setup information_

No response

Anything else?

In the file "\glpi\marketplace\order\inc\bill.class.php ", on line 215, you should add:

	$tab[] = [
  			   'id'          	=> 10,
  			   'table'     		=> self::getTable(),
		   'field'         	=> 'value',
  			   'name'          	=> __('Value'),
 			   'datatype'      	=> 'decimal',
		   ];
  
	$tab[] = [
		'id' 			=> '12',
		'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)',
	];

	$tab[] = [
		'id' 			=> '13',
		'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)',
	];

and deleted lines 199 to 206 Thank

IP-V15 avatar Oct 14 '25 12:10 IP-V15

There has been no activity on this issue for some time and therefore it is considered stale and will be closed automatically in 10 days.

If this issue is related to a bug, please try to reproduce on latest release. If the problem persist, feel free to add a comment to revive this issue. If it is related to a new feature, please open a topic to discuss with community about this enhancement on suggestion website.

You may also consider taking a subscription to get professionnal support or contact GLPI editor team directly.

github-actions[bot] avatar Oct 30 '25 08:10 github-actions[bot]

Fixed by -> https://github.com/pluginsGLPI/order/pull/516

stonebuzz avatar Nov 27 '25 09:11 stonebuzz