RE: Product extrafield in PDF invoice

Hello, from your knowledge on this forum entry, I wondered if you could show me how that actually works in php.

I have read the document ‘Add Extrafields on PDF Models’ and did everything stated there for printing the extrafields of each line.

image

I have tried it like this and I couldn’t get it.

$object->lines[$i]->array_options[‘options_warehouse’]
$bom->lines[$i]->array_options[‘options_warehouse’]

These lines didn’t work too.

Thanks in advance.

Hello,

I never answer to private messages.

Difficult to say without knowing if you have done correctly the rest of the modifications explained here : Add Extrafields on PDF Models - Dolibarr ERP CRM Wiki