Jump to content

How to make a delivery slip without an Invoice ?


Recommended Posts

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

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

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

  • 1 month later...
  • 2 months later...
  • 1 month later...

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

  • 2 weeks later...

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

  • 1 month later...

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

  • Like 1
Link to comment
Share on other sites

  • 4 months later...
×
×
  • Create New...