Jump to content

Problème facture


Recommended Posts

Bonjour à tous,

 

je rencontre un petit soucis sur mes factures, je m'explique: 

 

Lorsque je fais un réalisant une commande avec comme moyen de paiement, et que je la valide dans le back-office, lorsque je l'imprime il y a une fenêtre qui s'ajoute sur la facture avec "Bank Name, IBAN, BIC, etc..." 

 

Ces informations viennent du code PayPal alors que j'ai choisi le mode Paiement par virement bancaire. Je ne comprend pas parquoi cette fenêtre apparait là? Comment puis-je la retirer diffinitivement? 

 

Voici l'exemple: http://img11.hostingpics.net/pics/270916bill.jpg

Link to comment
Share on other sites

Exact, j'ai répondu trop vite^^

 

Nouveauté de leur option braintree..

 

Juste après l'appel du hook, faites un return true:

    public function hookDisplayPDFInvoice($params)
    {
        return true;
        $order_detail = PaypalPlusPui::getByIdOrder($params['object']->id_order);
        $information = json_decode($order_detail['pui_informations'],true);
        $tab = '<table style="border: solid 1pt black; padding:0 10pt">
    <tr><td></td><td></td></tr>
    <tr><td><b>'.$this->l('Bank name').'</b></td><td>'.$information['recipient_banking_instruction']['bank_name'].'</td></tr>
    <tr><td><b>'.$this->l('Account holder name').'</b></td><td>'.$information['recipient_banking_instruction']['account_holder_name'].'</td></tr>
    <tr><td><b>'.$this->l('IBAN').'</b></td><td>'.$information['recipient_banking_instruction']['international_bank_account_number'].'</td></tr>
    <tr><td><b>'.$this->l('BIC').'</b></td><td>'.$information['recipient_banking_instruction']['bank_identifier_code'].'</td></tr>
    <tr><td></td><td></td></tr>
    <tr><td><b>'.$this->l('Amount due / currency').'</b></td><td>'.$information['amount']['value'].' '.$information['amount']['currency'].'</td></tr>
    <tr><td><b>'.$this->l('Payment due date').'</b></td><td>'.$information['payment_due_date'].'</td></tr>
    <tr><td><b>'.$this->l('reference').'</b></td><td>'.$information['reference_number'].'</td></tr>
    <tr><td></td><td></td></tr>
</table>';
        return $tab;
    }
Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...