details:   https://code.openbravo.com/erp/devel/pi/rev/bca89372cadc
changeset: 16490:bca89372cadc
user:      Rafa de Miguel <rafael.demiguel <at> openbravo.com>
date:      Thu May 10 17:50:29 2012 +0200
summary:   Fix issue 0020469: Product without Guaranteed Days breaks

diffstat:

 src/org/openbravo/erpCommon/ad_actionButton/CreateStandards.java |  3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diffs (13 lines):

diff -r 78d28661d80a -r bca89372cadc 
src/org/openbravo/erpCommon/ad_actionButton/CreateStandards.java
--- a/src/org/openbravo/erpCommon/ad_actionButton/CreateStandards.java  Thu May 
10 17:43:01 2012 +0200
+++ b/src/org/openbravo/erpCommon/ad_actionButton/CreateStandards.java  Thu May 
10 17:50:29 2012 +0200
@@ -305,7 +305,8 @@
             if (attSet.isExpirationDate()) {
               Date movementdate = ((productionPlan.getProductionplandate() != 
null) ? productionPlan
                   .getProductionplandate() : 
productionPlan.getProduction().getMovementDate());
-              int days = attSet.getGuaranteedDays().intValue();
+              int days = (attSet.getGuaranteedDays() == null ? 0 : 
attSet.getGuaranteedDays()
+                  .intValue());
               
attSetInstance.setGuaranteeDate(dateToString(addDays(movementdate, days)));
             }
             OBError createAttributeInstanceError = 
attSetInstance.setAttributeInstance(conn, vars,

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Openbravo-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openbravo-commits

Reply via email to