Comment 42 for bug 388145

Revision history for this message
Jan Verlaan (jan-verlaan) wrote :

Test NOK

Case 1: NOK
Purchase 10 products, receive them in stock and validate the invoice => OK
With product check in warehouse 1 product is defect. Send product back to supplier by:
Go to the receiving picking line and use in right menu "Return Packing" and choose 1 product with invoice state "To be Invoiced".
Process the new picking line and create the refund supplier invoice. Validate this invoice.
Have a look at the chart of accounts.
COGS are credited and debtors interim account is debited => NOK
(COGS should be taken at sales time, not when sending goods back to supplier, what should happen is a reverse booking for one product).

Case 2: NOK
Purchase 10 products, receive them in stock and validate the invoice => OK
Sell 3 products to customer, confirm the sales order and do the outgoing picking. => OK
Create the customers invoice and activate => OK
Customer called for 1 received defect product, will send one product back.
Salesperson goes to the stock output line for this custom and in right menu chooses "Return packing" for 1 product in state "To be invoiced"
Receive the product by validating the newly generated picking line.
Stock account is debited and interim account is credited => OK
Create the Customer Refund invoice from the packing line
The other interim account is debited => NOK and COGS is credited => OK --- RESULT => NOK
Sales is debited and debtor account is credited => OK

Please can you test these scenario's before releasing a new solution?
Do you think we can expect a solution for the price diffs?

Many thanks thus far hda, I will retest your new to come solution.