← Back to team overview

c2c-oerpscenario team mailing list archive

[Bug 789470] Re: SO partial delivery: wrong picking list gets invoiced

 

Hello Aline,

I have studied the bug according to comment #5 and found the following
conclusion:

When you create a SO with Invoice on : Shipped Quantities which means
the invoicing will be completely handled by its related Procurement
Orders.

Scenario 1:
There is one Procurement Order for each Sale order line and each Procurement Order will consist of a stock move. These stock moves are also attached to the main Picking order of the SO. Now when you make the Partial deliveries of the picking, the quantities get deducted from the move lines of the original picking where as these move lines are attached to the Procurement Orders.

Scenario 2:
When you create final invoice of the SO, due to the Invoice on: Shipped quantities policy, invoice lines are created using the Stock moves attached to its related Procurement order. That's why you get the quantities on invoice lines are the old quantities which are not done yet.

The same will occur if you change the UoM of the stock moves while
making a partial delivery. It will create invoice lines based on the UoM
of old stock moves only due to related Procurement Orders.

IMHO, the term "Shipped Quantities" is probably the cause of
misunderstanding of the functional flow. Invoices and Invoice lines are
dependent on Procurement orders when you select the same for "Invoice
on".

I hope this helps. Can you notify us if you still find the problem?

Thanks,
Ujjvala

-- 
You received this bug notification because you are a member of C2C
OERPScenario, which is subscribed to OpenERP Project Group.
https://bugs.launchpad.net/bugs/789470

Title:
  SO partial delivery: wrong picking list gets invoiced

Status in OpenERP Addons (modules):
  In Progress

Bug description:
  6.0
  addons: 4578 (merge)
  server: 3431
  client: 4610

  Initial situation:
  - product: stockable, MTO, to produce, autopicking, no lot tracking
  - SO, 4.000 pce, confirmed
  - related MO in state 'In Production'
  - related delivery order: picking list OUT/00116 in state 'confirmed'

  Steps to reproduce the misfeature:

  - MO: partial production 1.000 pce, validate
  - delivery orders: OUT/00116 is available now
  - Open OUT/00116, process, change qty to 1.000, validate

  the 'Create Invoice' window pops up (still OUT/00116 in the background) 
  (note: module stock_invoice_directly is not installed)
  - create invoice 
  - open draft invoice 

  Observed behaviour 
  the rest of the qty (3.000 pce) became invoiced instead of the 1.000 delivered!!!! In 'Other Info' you find 'Source document = OUT/00116:SO00121'. 

  Back to 'Delivery Orders' you see 2 picking lists:
  OUT/00116 with qty 3.000 'state = available' and 'invoice control = invoiced' - should be 'to be invoiced'
  OUT/00236 with qty 1.000 'state = Done' and 'invoice control = to be invoiced' - should be 'invoiced'

  HENCE: in partial delivery the wrong picking list gets invoiced!

To manage notifications about this bug go to:
https://bugs.launchpad.net/openobject-addons/+bug/789470/+subscriptions


References