Comment 39 for bug 388145

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

More advanced testing -> found an error

Purchase goods so you have 10 pcs in inventory and confirm invoice
Sale goods to customer 3 pcs and confirm invoice
Sofar the standard procedure is working ok.

Now customer complains about 1 product with a defect. Agreed to send the product back and make a refund. The steps to follow:
Search for the stock delivery order, and click "return packing" in the right menu and request for 1 pcs in status "to be invoiced".
This create a "incoming product" line
Receive the product in stock and create the (refund) invoice from the packing line. Confirm the invoice.

Result:
Receiving the goods back in stock
The stock account is debited and The interim account is credited => OK

Confirming the invoice
The sales account is debited and the debtor account is credited => OK
Missing the account COGS credited and interim account debited => NOK