AMS Project Posted April 23, 2012 Share Posted April 23, 2012 Bonjour, J'ai ajouter dans la table customer un rubrique pour écrire dans la fiche client du backoffice un code spécifique. Pas de problème l'enregistrement et l'affichage. Cependant j'aimerais faire ressortir ce code sur les factures, j'ai donc ajouter ce petit bout de code dans PDF.php : $pdf->Cell(0, 6, self::l('INVOICE #').' '.Tools::iconv('utf-8', self::encoding(), Configuration::get('PS_INVOICE_PREFIX', (int)($cookie->id_lang))).sprintf('%06d', self::$order->invoice_number).' '.self::l('from') . ' ' .Tools::displayDate(self::$order->invoice_date, self::$order->id_lang).' '.Tools::iconv('utf-8', self::encoding(), '- Client n° ' . $customer->ebp), 1, 2, 'L', 1); J'ai donc bien "Client" qui vient s'afficher après la date, mais pas mon code. Je suppose que "$customer" ne suffit pas et qu'il faut aller chercher cette variable ailleurs, mais ou et comment là est ma question ..... Merci Prestashop 1.4.7 Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now