erpcya / adempiere

ADempiere Business Suite ERP/CRM/MFG/SCM/POS done the Bazaar way in an open and unabated fashion. Focus is on the Community that includes Subject Matter Specialists, Implementors and End-Users.
www.adempiere.net
GNU General Public License v2.0
2 stars 5 forks source link

Production Line Bad Reversal Line Reference #69

Open carlosaparadam opened 3 months ago

carlosaparadam commented 3 months ago

Bad Reference on Production Line -> Reversal Production Line

Currently the ReversaLine_ID column on M_ProductionLine Table is referenced to M_InOut.M_InOutLine_ID, in addition the method for get reversal line on Inventory line model get the same inventory line, which produce that inventory lines of reversed do not affected costing

Steps to reproduce

  1. Create an Production Batch
  2. Create an Production
  3. Reversed this Production

Production Batch

Production_Batch

Production

Production

Production Error

Production_Error