Anonymous | Login
Project:
RSS
  
News | My View | View Issues | Roadmap | Summary

View Issue DetailsJump to Notes ] Issue History ] Print ]
ID
0041185
TypeCategorySeverityReproducibilityDate SubmittedLast Update
backport[Openbravo ERP] 07. Sales managementminoralways2019-06-25 16:452019-06-28 12:06
ReporterngarciaView Statuspublic 
Assigned Tocollazoandy4 
PriorityimmediateResolutionfixedFixed in Version3.0PR19Q2.1
StatusclosedFix in branchFixed in SCM revisiona6b0d73a5762
ProjectionnoneETAnoneTarget Version3.0PR19Q2.1
OSAnyDatabaseAnyJava version
OS VersionDatabase versionAnt version
Product VersionSCM revision 
Review Assigned ToSandrahuguet
Web browser
ModulesCore
Regression level
Regression date
Regression introduced in release
Regression introduced by commit
Triggers an Emergency PackNo
Summary

0041185: Alternative UOM is modified to UOM in Create Lines From processes of Invoice window if it is defined as Secondary

DescriptionAlternative UOM is modified to UOM in Create Lines From processes of Invoice window if it is defined as Secondary
Steps To ReproduceAs group admin role:
   Set 'Enable UOM Management' preference to Y
   Log out and log in
   Add Liter unit to 'Cerveza Ale 0,5L' in Alternate UOM tab as Secondary UOM
   Add a conversion of 5
   Create a Sales Order
   Add 6 Liters of 'Cerveza Ale 0,5L':
      Operative Quantity: 6
      Alternative UOM: Liter
      Ordered Quantity: 30
      UOM: Unit
   Book it
   Set its Invoice Terms as Immediate
   Go to Sales Invoice
   Create Lines From Order
   Select the previously created order line
   Check the quantities are shown as in the order line in the pop-up
   Check the Alternative UOM is updated with Unit in the Sales Invoice line:
      Operative Quantity: 30
      Alternative UOM: Unit
      Ordered Quantity: 30
      UOM: Unit
Proposed SolutionIt seems the problem is in the UpdateQuantitiesAndUOMs file:

The uomManagementIsEnabledAndAUMAndOrderUOMAreEmpty function is returning true because the Order UOM field is empty (it belongs to the old second UOM feature):

return isUomManagementEnabled && (orderUOM == null || operativeUOM == null);
TagsNo tags attached.
Attached Files

- Relationships Relation Graph ] Dependency Graph ]
blocks defect 0041174 closedcollazoandy4 Alternative UOM is modified to UOM in Create Lines From processes of Invoice window if it is defined as Secondary 

-  Notes
(0113099)
hgbot (developer)
2019-06-28 12:05

Repository: erp/backports/3.0PR19Q2.1
Changeset: a6b0d73a5762b7af9b04c664a82f892d48390dd1
Author: Armaignac <collazoandy4 <at> gmail.com>
Date: Wed Jun 26 14:29:58 2019 -0400
URL: http://code.openbravo.com/erp/backports/3.0PR19Q2.1/rev/a6b0d73a5762b7af9b04c664a82f892d48390dd1 [^]

Fixes issue 41185: Alternative UOM is modified to UOM in Create Lines From
processes of Invoice window if it is defined as Secondary

If the orderUOM is null and operativeUOM is not null the alternative UOM was updated
to the

---
M src/org/openbravo/common/actionhandler/createlinesfromprocess/UpdateQuantitiesAndUOMs.java
---
(0113100)
Sandrahuguet (developer)
2019-06-28 12:06

code review + testing ok

- Issue History
Date Modified Username Field Change
2019-06-26 17:40 Sandrahuguet Type defect => backport
2019-06-26 17:40 Sandrahuguet Target Version => 3.0PR19Q2.1
2019-06-28 12:05 hgbot Checkin
2019-06-28 12:05 hgbot Note Added: 0113099
2019-06-28 12:05 hgbot Status scheduled => resolved
2019-06-28 12:05 hgbot Resolution open => fixed
2019-06-28 12:05 hgbot Fixed in SCM revision => http://code.openbravo.com/erp/backports/3.0PR19Q2.1/rev/a6b0d73a5762b7af9b04c664a82f892d48390dd1 [^]
2019-06-28 12:06 Sandrahuguet Review Assigned To => Sandrahuguet
2019-06-28 12:06 Sandrahuguet Note Added: 0113100
2019-06-28 12:06 Sandrahuguet Status resolved => closed
2019-06-28 12:06 Sandrahuguet Fixed in Version => 3.0PR19Q2.1


Copyright © 2000 - 2009 MantisBT Group
Powered by Mantis Bugtracker