details: /erp/stable/2.50/rev/d4b797f2d604
changeset: 9350:d4b797f2d604
user: Ainhoa Pagola <ainhoa.pagola <at> openbravo.com>
date: Mon Apr 11 10:23:42 2011 +0200
summary: Fixes issue 16673. Date in Internal Consuption made read-only after
processing
details: /erp/stable/2.50/rev/ccfc117bc81d
changeset: 9351:ccfc117bc81d
user: Ainhoa Pagola <ainhoa.pagola <at> openbravo.com>
date: Mon Apr 11 12:53:48 2011 +0200
summary: Fixes issue 16741. Rounding error on Update Payment Monitor process
diffstat:
src-db/database/sourcedata/AD_COLUMN.xml | 6 +++---
src/org/openbravo/erpCommon/ad_process/PaymentMonitor.java | 4 ++--
2 files changed, 5 insertions(+), 5 deletions(-)
diffs (51 lines):
diff -r 89d9fe99bdde -r ccfc117bc81d src-db/database/sourcedata/AD_COLUMN.xml
--- a/src-db/database/sourcedata/AD_COLUMN.xml Fri Apr 08 15:05:10 2011 +0200
+++ b/src-db/database/sourcedata/AD_COLUMN.xml Mon Apr 11 12:53:48 2011 +0200
@@ -217409,6 +217409,7 @@
<!--802758--> <ISPARENT><![CDATA[N]]></ISPARENT>
<!--802758--> <ISMANDATORY><![CDATA[Y]]></ISMANDATORY>
<!--802758--> <ISUPDATEABLE><![CDATA[Y]]></ISUPDATEABLE>
+<!--802758--> <READONLYLOGIC><![CDATA[@Processed@='Y']]></READONLYLOGIC>
<!--802758--> <ISIDENTIFIER><![CDATA[N]]></ISIDENTIFIER>
<!--802758--> <SEQNO><![CDATA[110]]></SEQNO>
<!--802758--> <ISTRANSLATED><![CDATA[N]]></ISTRANSLATED>
@@ -217484,7 +217485,7 @@
<!--802760--> <ISENCRYPTED><![CDATA[N]]></ISENCRYPTED>
<!--802760--> <ISSELECTIONCOLUMN><![CDATA[N]]></ISSELECTIONCOLUMN>
<!--802760--> <AD_ELEMENT_ID><![CDATA[1047]]></AD_ELEMENT_ID>
-<!--802760--> <ISSESSIONATTR><![CDATA[N]]></ISSESSIONATTR>
+<!--802760--> <ISSESSIONATTR><![CDATA[Y]]></ISSESSIONATTR>
<!--802760--> <ISSECONDARYKEY><![CDATA[N]]></ISSECONDARYKEY>
<!--802760--> <ISDESENCRYPTABLE><![CDATA[N]]></ISDESENCRYPTABLE>
<!--802760--> <DEVELOPMENTSTATUS><![CDATA[RE]]></DEVELOPMENTSTATUS>
@@ -218076,8 +218077,7 @@
<!--802778--> <ISACTIVE><![CDATA[Y]]></ISACTIVE>
<!--802778--> <NAME><![CDATA[Order Quantity]]></NAME>
<!--802778--> <DESCRIPTION><![CDATA[The number of a certain item involved in
the transaction, shown in units which differ from the standard
UOM.]]></DESCRIPTION>
-<!--802778--> <HELP><![CDATA[
-Product quantity in the order uom.]]></HELP>
+<!--802778--> <HELP><![CDATA[Product quantity in the order uom.]]></HELP>
<!--802778--> <COLUMNNAME><![CDATA[QuantityOrder]]></COLUMNNAME>
<!--802778--> <AD_TABLE_ID><![CDATA[800169]]></AD_TABLE_ID>
<!--802778--> <AD_REFERENCE_ID><![CDATA[29]]></AD_REFERENCE_ID>
diff -r 89d9fe99bdde -r ccfc117bc81d
src/org/openbravo/erpCommon/ad_process/PaymentMonitor.java
--- a/src/org/openbravo/erpCommon/ad_process/PaymentMonitor.java Fri Apr
08 15:05:10 2011 +0200
+++ b/src/org/openbravo/erpCommon/ad_process/PaymentMonitor.java Mon Apr
11 12:53:48 2011 +0200
@@ -191,7 +191,7 @@
}
}
- if (cancelledNotPaidAmount.setScale(0).equals(BigDecimal.ZERO))
+ if (cancelledNotPaidAmount.compareTo(BigDecimal.ZERO)==0)
// The sum of all canceled not paid payments in the settlement is
zero. This means that the
// payment has been paid completely, as it was canceled with some
other pending payments
// (for example, the ones comming from a credit memo)
@@ -251,7 +251,7 @@
cancelledPayment.getClient().getId(),
cancelledPayment.getOrganization().getId()));
}
}
- if (cancelledNotPaidAmount.setScale(0).equals(BigDecimal.ZERO))
+ if (cancelledNotPaidAmount.compareTo(BigDecimal.ZERO)==0)
// The sum of all canceled not paid payments in the settlement is
zero. This means that the
// payment has been paid completely, as it was canceled with some
other pending payments
// (for example, the ones comming from a credit memo)
------------------------------------------------------------------------------
Xperia(TM) PLAY
It's a major breakthrough. An authentic gaming
smartphone on the nation's most reliable network.
And it wants your games.
http://p.sf.net/sfu/verizon-sfdev
_______________________________________________
Openbravo-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openbravo-commits