[8.0][acccount_invoice_merge_purchase] Error: when invoicing from various pickings and leaving one of them waiting #318
Labels
stale
PR/Issue without recent activity, it'll be soon closed automatically.
While combining purchase invoices, all pickings are marked as invoiced
Example: 1 purchase order, ends divided in 3 pickings, and 2 of them are invoiced, then when those 2 invoices are merged, the 3rd picking that was waiting is marked also as invoiced.
I think the problem is the for loop at the end of the do_merge, which marks all stock moves related to the purchase order as invoiced, and i think this is wrong, since stock moves are already invoiced except the ones in the pending picking.
The text was updated successfully, but these errors were encountered: