DanAndrei Posted February 6, 2016 Share Posted February 6, 2016 Hi, I am interested if I can replace the invoice no. with the order reference. If yes, how? Thanks! Link to comment Share on other sites More sharing options...
tuk66 Posted February 8, 2016 Share Posted February 8, 2016 Invoice number line has to be continuous, due to the law. Link to comment Share on other sites More sharing options...
DanAndrei Posted July 9, 2016 Author Share Posted July 9, 2016 Invoice number line has to be continuous, due to the law. Yes, I understand but is it possible to make the change? If yes, how? Link to comment Share on other sites More sharing options...
DanAndrei Posted July 30, 2016 Author Share Posted July 30, 2016 OK, I found that this must be the file that needs to be modified HTMLTemplateInvoice.php Can anyone give me a hint? class HTMLTemplateInvoiceCore extends HTMLTemplate { public $order; public $available_in_your_account = false; public function __construct(OrderInvoice $order_invoice, $smarty) { $this->order_invoice = $order_invoice; $this->order = new Order((int)$this->order_invoice->id_order); $this->smarty = $smarty; // header informations $this->date = Tools::displayDate($order_invoice->date_add); $id_lang = Context::getContext()->language->id; $this->title = HTMLTemplateInvoice::l('Invoice ').' #'.Configuration::get('PS_INVOICE_PREFIX', $id_lang, null, (int)$this->order->id_shop).sprintf('%06d', $order_invoice->number); // footer informations $this->shop = new Shop((int)$this->order->id_shop); } 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