Openbravo Issue Tracking System - Retail Modules
View Issue Details
0037551Retail ModulesMobile Physical Inventorypublic2017-12-27 12:092018-01-16 08:41
ngarcia 
jorge-garcia 
immediatemajoralways
closedfixed 
5
 
RR18Q2 
marvintm
No
0037551: Wrong Quantity Count in inventory lines if they are created with Create Inventory Count List process and not edited in mobile
Wrong Quantity Count in inventory lines if they are created with Create Inventory Count List process and not edited in mobile.

The problem is that the default value in DB for em_obmwhpi_counted column is 'N'

Additional notes after several conversations with the customer:

- Customer has installed the module but he is not using yet the mobile side, so they want to work using the backend
- Before, they generate the list of inventory lines using the process, then they do the count in several lines and for those lines they change the field "counted" so when the Physical Inventory is processed, it works from them.
- Now they can't do it because the field has been hidden
As group admin role:
   Create an inventory header
   Launch the Create Inventory Count List process
   Select a storage bin, Inventory Quantity = not 0 and Set Book Quantity to Zero = Y
   Check some lines have been added
   Modify its Quantity Count with a value different from the Book Quantity (in order to increase/decrease the stock)

   Process Inventory
   Check Quantity Count has been updated with Book Quantity value, so no changes have been mad on the stock
Create a callout for field quantity count.
When this field is changed in the UI, callout will be executed.
This callout should have a hook which will be implemmented by mobile physical inventory module which will set the field "counted" to yes when this field changes.
This hook should take into account issue 36307.
I also propose to show the field "counted" as a read only field.
No tags attached.
caused by defect 0036307 closed ebecerra Wrong qty count in physical inventory lines if order quantity and uom fields are filled (2nd UOM) and counted is not selected 
Issue History
2017-12-27 12:09ngarciaNew Issue
2017-12-27 12:09ngarciaAssigned To => Retail
2017-12-27 12:09ngarciaResolution time => 1516143600
2017-12-27 12:09ngarciaTriggers an Emergency Pack => No
2017-12-27 12:09ngarciaRelationship addedcaused by 0036307
2017-12-27 12:10ngarciaIssue Monitored: networkb
2017-12-27 18:27guilleaerStatusnew => scheduled
2017-12-27 18:29guilleaerNote Added: 0101268
2017-12-27 18:29guilleaerAssigned ToRetail => guilleaer
2017-12-27 18:29guilleaerStatusscheduled => feedback
2017-12-28 09:56ngarciaStatusfeedback => scheduled
2017-12-29 09:20guilleaerStatusscheduled => resolved
2017-12-29 09:20guilleaerResolutionopen => fixed
2017-12-29 09:20guilleaerAssigned Toguilleaer => Retail
2017-12-29 09:20guilleaerStatusresolved => new
2017-12-29 09:20guilleaerResolutionfixed => open
2017-12-29 09:36guilleaerDescription Updatedbug_revision_view_page.php?rev_id=16503#r16503
2017-12-29 09:36guilleaerProposed Solution updated
2018-01-04 16:27guilleaerNote Deleted: 0101268
2018-01-05 13:43jorge-garciaStatusnew => scheduled
2018-01-05 13:43jorge-garciaAssigned ToRetail => jorge-garcia
2018-01-11 09:35hgbotCheckin
2018-01-11 09:35hgbotNote Added: 0101663
2018-01-11 09:35hgbotStatusscheduled => resolved
2018-01-11 09:35hgbotResolutionopen => fixed
2018-01-11 09:35hgbotFixed in SCM revision => http://code.openbravo.com/erp/pmods/org.openbravo.mobile.warehouse.physicalinventory/rev/3470ed405531445bdeafc4292856820d9d95ef3a [^]
2018-01-16 08:41marvintmReview Assigned To => marvintm
2018-01-16 08:41marvintmStatusresolved => closed
2018-01-16 08:41marvintmFixed in Version => RR18Q2

Notes
(0101663)
hgbot   
2018-01-11 09:35   
Repository: erp/pmods/org.openbravo.mobile.warehouse.physicalinventory
Changeset: 3470ed405531445bdeafc4292856820d9d95ef3a
Author: Jorge Garcia <jorge.garcia <at> openbravo.com>
Date: Thu Jan 11 09:32:22 2018 +0100
URL: http://code.openbravo.com/erp/pmods/org.openbravo.mobile.warehouse.physicalinventory/rev/3470ed405531445bdeafc4292856820d9d95ef3a [^]

Fixed issue 37551: Wrong Quantity Count in inventory lines if they are
created with Create Inventory Count List process and not edited in mobile

EventHandler has been created on update event to set the counted flag to
yes if the quantity booked has changed.

The field counted added by the module no is displayed and it’s a field of
read only.

---
M src-db/database/sourcedata/AD_FIELD.xml
A src/org/openbravo/mobile/warehouse/physicalinventory/eventhandler/MobilePhysicalInventoryLineEventHandler.java
---