Openbravo Issue Tracking System - Modules
View Issue Details
0040305ModulesDistribution Orderspublic2019-03-01 10:082019-03-07 16:12
gorkaion 
markmm82 
urgentmajoralways
closedfixed 
5
 
 
dmiguelez
0040305: Error confirming a DO Issue with more than 100 lines
When confirming a DO Issue with more than 100 lines the following error is thrown:

could not initialize proxy - no Session

The error seem to be raised after the clear session done in line 326 of ProcessDistributionOrderUtil.java
Create a DO Receipt with more than 100 lines.
Book it.
Go to generated DO Issue.
Confirm it.
No tags attached.
related to defect 0040182 closed markmm82 Error processing a DO Receipt with more than 100 lines 
Issue History
2019-03-01 10:08gorkaionNew Issue
2019-03-01 10:08gorkaionAssigned To => Triage Finance
2019-03-01 10:08gorkaionResolution time => 1553209200
2019-03-01 10:08gorkaionIssue generated from0040182
2019-03-01 10:31SandrahuguetAssigned ToTriage Finance => markmm82
2019-03-03 19:54markmm82Statusnew => scheduled
2019-03-03 22:31markmm82Note Added: 0110167
2019-03-05 16:08galderromoIssue Monitored: galderromo
2019-03-06 17:47SandrahuguetRelationship addedrelated to 0040182
2019-03-07 16:05hgbotCheckin
2019-03-07 16:05hgbotNote Added: 0110288
2019-03-07 16:05hgbotCheckin
2019-03-07 16:05hgbotNote Added: 0110289
2019-03-07 16:05hgbotStatusscheduled => resolved
2019-03-07 16:05hgbotResolutionopen => fixed
2019-03-07 16:05hgbotFixed in SCM revision => http://code.openbravo.com/erp/mods/org.openbravo.distributionorder/rev/02890ba74b7c27bbc62c3b77c2134acf6a404449 [^]
2019-03-07 16:05hgbotStatusscheduled => resolved
2019-03-07 16:05hgbotCheckin
2019-03-07 16:05hgbotNote Added: 0110290
2019-03-07 16:05hgbotCheckin
2019-03-07 16:05hgbotNote Added: 0110291
2019-03-07 16:05hgbotCheckin
2019-03-07 16:05hgbotNote Added: 0110292
2019-03-07 16:05hgbotCheckin
2019-03-07 16:05hgbotNote Added: 0110293
2019-03-07 16:10dmiguelezNote Added: 0110294
2019-03-07 16:12dmiguelezReview Assigned To => dmiguelez
2019-03-07 16:12dmiguelezNote Added: 0110295
2019-03-07 16:12dmiguelezStatusresolved => closed

Notes
(0110167)
markmm82   
2019-03-03 22:31   
Test Plan:
Create a DO Receipt with more than 100 lines.
Book it.
Go to generated DO Issue.
Confirm it.
Notice the process ends successfully.
(0110288)
hgbot   
2019-03-07 16:05   
Repository: erp/mods/org.openbravo.distributionorder
Changeset: 02890ba74b7c27bbc62c3b77c2134acf6a404449
Author: Sandra Huguet <sandra.huguet <at> openbravo.com>
Date: Wed Mar 06 17:50:19 2019 +0100
URL: http://code.openbravo.com/erp/mods/org.openbravo.distributionorder/rev/02890ba74b7c27bbc62c3b77c2134acf6a404449 [^]

Fixes issue 40305: Error processing a DO Issue with more than 100 lines

After clear session, it is refreshed the processing DO (distOrder object).

---
M src/org/openbravo/distributionorder/erpCommon/utility/ProcessDistributionOrderUtil.java
---
(0110289)
hgbot   
2019-03-07 16:05   
Repository: erp/mods/org.openbravo.distributionorder
Changeset: 02890ba74b7c27bbc62c3b77c2134acf6a404449
Author: Sandra Huguet <sandra.huguet <at> openbravo.com>
Date: Wed Mar 06 17:50:19 2019 +0100
URL: http://code.openbravo.com/erp/mods/org.openbravo.distributionorder/rev/02890ba74b7c27bbc62c3b77c2134acf6a404449 [^]

Fixes issue 40305: Error processing a DO Issue with more than 100 lines

After clear session, it is refreshed the processing DO (distOrder object).

---
M src/org/openbravo/distributionorder/erpCommon/utility/ProcessDistributionOrderUtil.java
---
(0110290)
hgbot   
2019-03-07 16:05   
Repository: retail/backports/AWO/3.0RR18Q3/org.openbravo.distributionorder
Changeset: 714d7947de3b43ab71aecb28c6aae1834d75e744
Author: David Miguelez <david.miguelez <at> openbravo.com>
Date: Thu Mar 07 16:04:48 2019 +0100
URL: http://code.openbravo.com/retail/backports/AWO/3.0RR18Q3/org.openbravo.distributionorder/rev/714d7947de3b43ab71aecb28c6aae1834d75e744 [^]

Related to issue 40305. Backport to Q3. Fixes problem when
refreshing DO and movement objects after session cleared.

---
M src/org/openbravo/distributionorder/erpCommon/utility/DistributioOrderUtils.java
M src/org/openbravo/distributionorder/erpCommon/utility/ProcessDistributionOrderUtil.java
---
(0110291)
hgbot   
2019-03-07 16:05   
Repository: erp/mods/org.openbravo.distributionorder
Changeset: 63d36338853daee396b1c48ecbdc268f39f90b62
Author: David Miguelez <david.miguelez <at> openbravo.com>
Date: Thu Mar 07 09:19:35 2019 +0100
URL: http://code.openbravo.com/erp/mods/org.openbravo.distributionorder/rev/63d36338853daee396b1c48ecbdc268f39f90b62 [^]

Related to Issue 40305: Refres Distribution Order Object after
clear session. No issue has been reported yet for this scenarios.
But, since it is a utils class, it is likely that in the future
this problem can be raised if not fixed now.

---
M src/org/openbravo/distributionorder/erpCommon/utility/ProcessDistributionOrderUtil.java
---
(0110292)
hgbot   
2019-03-07 16:05   
Repository: erp/mods/org.openbravo.distributionorder
Changeset: 743be7451ef5e28f2af79244a88e6cb3db965860
Author: David Miguelez <david.miguelez <at> openbravo.com>
Date: Thu Mar 07 09:40:23 2019 +0100
URL: http://code.openbravo.com/erp/mods/org.openbravo.distributionorder/rev/743be7451ef5e28f2af79244a88e6cb3db965860 [^]

Related to Issue 40305. Moved refresh of Movement object
after clear of session to avoid issue when processing a
Receive DO

---
M src/org/openbravo/distributionorder/erpCommon/utility/DistributioOrderUtils.java
---
(0110293)
hgbot   
2019-03-07 16:05   
Repository: erp/mods/org.openbravo.distributionorder
Changeset: 4e10e65182a30681217147abb592a68510e04c83
Author: David Miguelez <david.miguelez <at> openbravo.com>
Date: Thu Mar 07 11:11:26 2019 +0100
URL: http://code.openbravo.com/erp/mods/org.openbravo.distributionorder/rev/4e10e65182a30681217147abb592a68510e04c83 [^]

Related to Issue 40305. Adds a comment and an extra refresh for the
movement object.

- The first refresh is done to recover the lost object after a session
  clear, for it to be used again
- The second one is done to refresh the data that has changed due to
  other processes

---
M src/org/openbravo/distributionorder/erpCommon/utility/DistributioOrderUtils.java
---
(0110294)
dmiguelez   
2019-03-07 16:10   
With Distribuion Orders Module installed and sample data applied.

Log in as F&B Admin
Go to Distribution Order Receipt Window and create a new record with:
- Organization: F&B US East Coast
- Warehouse Receipt: US East Coast
- Warehouse Issue: US West Coast
Move to lines Tab and create 110 new records with:
- Product: Ale Beer
- Ordered Quantity: 10
Book the document

Navigate to the related Distribution Order Issue
Confirm the document

Go to Issue Distribution Order window and create a new record with:
- Organization: US West Coast
- Distribution Order: The one confirmed previously
- In Transit Bin: WC-RM-0-0
Click on generate lines

Go to Receive Distribution Order window and create a new record with:
- Organization: US West Coast
- Issue Movement: The one created previously
Click on generate lines and select EC-0-0-0 Bin

The process finishes successfully
(0110295)
dmiguelez   
2019-03-07 16:12   
Code Review + Testing Ok