dolibarr icon indicating copy to clipboard operation
dolibarr copied to clipboard

Cannot get propal object in invoice

Open golgote opened this issue 3 years ago • 1 comments

It is not possible to get the propal object in invoice ODT model.

Line causing problem is:

https://github.com/Dolibarr/dolibarr/blob/283f37a364ad7fd71aa4db1a250f615926cd808e/htdocs/core/modules/facture/doc/doc_generic_invoice_odt.modules.php#L326

Propal object is returned at index 3, not 0 (in our case).

It should be replaced with:

				//$propal_object = $object->linkedObjects['propal'][0];
				$propal_object = current($object->linkedObjects['propal']);

Thanks.

golgote avatar Sep 14 '21 09:09 golgote

This issue is stale because it has been open 1 year with no activity. If this is a bug, please comment to confirm it is still present on latest stable version. if this is a feature request, please comment to notify the request is still relevant and not yet covered by latest stable version. This issue may be closed automatically by stale bot in 10 days (you should still be able to re-open it if required).

github-actions[bot] avatar Sep 14 '22 21:09 github-actions[bot]