ledcom Posted November 30, 2013 Share Posted November 30, 2013 I need to generate delivery slips without an invoice - I have tried to remove the invoice then it shows in the order only a delivery slip. But when i click the delivery slip to generate the pdf nothing shows. Link to comment Share on other sites More sharing options...
tuk66 Posted December 3, 2013 Share Posted December 3, 2013 Probably invoice and delivery slip are joined and you can't have delivery slip without invoice. This sequence is normally used: order -> invoice -> delivery slip. Link to comment Share on other sites More sharing options...
ledcom Posted December 3, 2013 Author Share Posted December 3, 2013 probably - but usually in business is that delivery slip comes first and then based on the final delivery slip the invoice is generated... our problem is even more complicated - we have consignements and and invoice comes may be 1 month later but then I have generated several Invoices and due to usual laws the invoice numbers must be in order and I can not have "emtpty" numbers. I would be really easy to do this if the Prestashop would work correctly - Link to comment Share on other sites More sharing options...
ibndawood Posted December 3, 2013 Share Posted December 3, 2013 Hi, I think I am missing something. Invoice and Delivery slips are separate things aren't they ? You can disable invoices Orders->Invoices Link to comment Share on other sites More sharing options...
ledcom Posted December 3, 2013 Author Share Posted December 3, 2013 Yes they are. Completly. I have disabled but I do not see any impact at all ... even disabled it still generates an invoice. I also removed the tick box for the invoice then it looks like it has only a delivery order - BUT when I click the delivery order nothing shows .... and in the order page it shows - "No documents available" Clearly PS could do it but there is still something missing / not working. I have a test shop where I run 1.5..5.6 newest version - same thing. Link to comment Share on other sites More sharing options...
ibndawood Posted December 3, 2013 Share Posted December 3, 2013 Hi, When you disable invoice, then customers won't get invoices even though they are available from the back office. Like this : https://www.diigo.com/item/image/4h50p/j2vt Link to comment Share on other sites More sharing options...
ledcom Posted December 3, 2013 Author Share Posted December 3, 2013 Yes - but the problem is : the running number of the invoices. We have to show all the invoices without any missing number to the government each month. So for example we deliver something on consignemt - we need a delivery order - but no invoice - so it automatically generates an invoice number e.g. #32 - which will never be used to actually invoice the customer since this was not a sales - later we invoice for the goods they sold e.g. #46 - so we can not show the #32 to the tax office because then we would pay 2 times VAT... but we also can not take off the #32 because it violates the running number problem. Same thing if we cancel a wrong order - we have an IN # which can not be used... This is one of the problems - another one is we deliver than take back partly ... or we only deliver partly The only way is that we make a delivery and then we choose which one at which times gets an invoice assigned. Link to comment Share on other sites More sharing options...
rmatcar Posted January 10, 2014 Share Posted January 10, 2014 Same problem than ledcom... Have you found a solution? Link to comment Share on other sites More sharing options...
enSysRanjit Posted March 13, 2014 Share Posted March 13, 2014 I have the same problem Any body found a solution? Link to comment Share on other sites More sharing options...
tuk66 Posted March 13, 2014 Share Posted March 13, 2014 I think it is almost impossible bypass invoice test before creating delivery slip in PrestaShop v1.5 because of new ps_order_invoice table. Link to comment Share on other sites More sharing options...
Zebx Posted April 20, 2014 Share Posted April 20, 2014 Hi tuk66, I have the same problem and indeed it seems very hard to separate delivery slip and invoice generations in the current code. However your M4 PDF module gives a good workaround as we can print a picking slip that has the same layout as a delivery slip (except there will be no delivery number printed of course). So, the process could be : - order status : in progress - print picking slip with M4PDF - collect products and prepare the package If no items are missing during picking : - order status : shipped (or a new one : ready for shipment) - print PS delivery slip and enclose with the package - send invoice & status : delivered That's pretty fine. However, it could be really nice to have the possibility to print the M4PDF picking slip directly from the PS orders instead of going through modules/m4pdf. And actually, this is also true when printing shipping label or proforma invoice. Would it be possible to add such kind of shortcuts in BO, inside your new language box for example? Regards, Zebx Link to comment Share on other sites More sharing options...
tuk66 Posted April 22, 2014 Share Posted April 22, 2014 Hi Zebx, thanks for the suggestion. You are right, it would be nice to have a shortcut right in BO. What do you think about an optional box, near the language box, containing a droplist to select a template? Link to comment Share on other sites More sharing options...
Zebx Posted April 22, 2014 Share Posted April 22, 2014 I think a droplist would be a good solution to allow an unlimited choice of templates So it would be perfect ! Thanks in advance Link to comment Share on other sites More sharing options...
Zebx Posted April 26, 2014 Share Posted April 26, 2014 Hi there, Fyi, a fix is currently in progress : https://github.com/PrestaShop/PrestaShop/commit/cd4f29e4671c80af4d8f13785be1e8c7e9480bc0 Related Forge discussion : http://forge.prestashop.com/browse/PSCSX-1780 @tuk66: anyway, shortcuts would still be useful in M4PDF Link to comment Share on other sites More sharing options...
nnab Posted May 8, 2014 Share Posted May 8, 2014 I am also interested in similar solution. I was keen on a solution like this. 1. Create additional warehouse that can be linked to each customer. 2. When stock is moved from Main warehouse to customer warehouse, a delivery slip can be generated. 3. Order for the final delivery can be created from the stock moved to customer warehouse. Stock for that customer should be selected from his warehouse instead of main warehouse. 4. Move back returned stock from customer warehouse to main warehouse upon partial returns. This way stock can be realistic in main warehouse and shows actual movement of stock to customer.. This may also work with Amazon FBA as the requirement is similar. Link to comment Share on other sites More sharing options...
txr Posted June 12, 2014 Share Posted June 12, 2014 Simple workaround for this issue is to set invoice number to 0 (zero). Tested for older 1.5.4 PS. Create new order status with disabled "Allow a customer to download and view PDF versions of his/her invoices." and enabled "Show delivery PDF.". Or just set this options in one of the default statuses. In classes/order/Order.php function setInvoice() add new parameter called $forceZeroNumber = false so declaration row should look like this: public function setInvoice($use_existing_payment = false, $forceZeroNumber = false) then find and replace (row 1100 ???) else $order_invoice->number = Order::getLastInvoiceNumber() + 1; with else $order_invoice->number = Order::getLastInvoiceNumber() + 1; if($forceZeroNumber) { $order_invoice->number = 0; } In classes/order/OrderHistory.php find (row 268 ???) if ($new_os->invoice && !$order->invoice_number) $order->setInvoice($use_existing_payment); and replace with if ($new_os->invoice && !$order->invoice_number) $order->setInvoice($use_existing_payment); elseif(!$new_os->invoice) $order->setInvoice($use_existing_payment, true); Now when an order with this new / edited order-status as default is made, the invoice is generated but with number = 0 so the invoice number row is OK, the next invoice has MAX INVOICE NUMBER + 1 and the delivery slip can be also generated in BO. That's it. Hope it helps someone who's still using 1.5 1 Link to comment Share on other sites More sharing options...
smaagraa Posted October 16, 2014 Share Posted October 16, 2014 This workaround is no longer valid for PS 1.5.6.x. Any contributions? Link to comment Share on other sites More sharing options...
Zebx Posted October 16, 2014 Share Posted October 16, 2014 Hi, Did you try the fix available on Github? See this Forge discussion : http://forge.prestashop.com/browse/PSCSX-1780?focusedCommentId=86882&page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-86882 You should apply the 3 commits provided by Gregory. It worked for me on PS 1.5.6.2 Link to comment Share on other sites More sharing options...
Recommended Posts