StoreCommander Posted January 26, 2009 Share Posted January 26, 2009 Bonjour voici les modifications pour la version 1.1.0.5 :/*** Ajoute une checkbox pour éviter d'imprimer les factures d'un montant égal à 0.00*/EDITER /classes/PDF.phpCHERCHER public static function invoice($order, $mode = 'D', $multiple = false, &$pdf = NULL, $slip = false, $delivery = false) { global $cookie, $ecotax; AJOUTER APRES if (isset($_GET["printemptyinvoices"])) if ($_GET["printemptyinvoices"]==0 && $order->total_products==0) return true; EDITER /admin/tabs/AdminInvoices.phpCHERCHER '.$this->l('To:').' <input type="text" size="4" maxlength="10" name="date_to" value="'.(date('Y-m-d')).'" style="width: 120px;" /> * '.$this->l('Format: 2008-12-31 (inclusive)').' AJOUTER APRES '.$this->l('Print 0 EUR invoices?').' <input type="checkbox" name="printemptyinvoices" value="1" checked="checked"/> CHERCHER if (!Validate::isDate($_POST['date_to'])) $this->_errors[] = $this->l('Invalid end date'); AJOUTER APRES if (!Validate::isBool($_POST['printemptyinvoices'])) $this->_errors[] = $this->l('Invalid "Print 0 EUR invoices?" answer'); CHERCHER Tools::redirectAdmin('pdf.php?invoices='.urlencode(serialize($orders)).'&token;='.$this->token); REMPLACER PAR Tools::redirectAdmin('pdf.php?invoices='.urlencode(serialize($orders)).'&printemptyinvoices;='.intval($_POST['printemptyinvoices']).'&token;='.$this->token); Link to comment Share on other sites More sharing options...
myname Posted January 26, 2009 Share Posted January 26, 2009 Bonjour, je vous remercie! Désolé ma question ... Je ne parle pas français et je voudrais comprendre votre message. Lorsque vous écrivez: AJOUTER APRES moyenne = insérer, après le morceau de code cherché (CHERCHER)? Remplacer par = à remplacer le morceau de code essayé avant? Désolé encore ... est juste à comprendre merci Link to comment Share on other sites More sharing options...
StoreCommander Posted January 26, 2009 Author Share Posted January 26, 2009 I translated it, English version here:http://www.prestashop.com/forums/viewthread/11393/modules/modification_to_print_only_invoices__0_dot_00/ 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