details: https://code.openbravo.com/erp/devel/pi/rev/c8818ab4e234
changeset: 18973:c8818ab4e234
user: Eduardo Argal Guibert <eduardo.argal <at> openbravo.com>
date: Wed Dec 05 13:52:19 2012 +0100
summary: Fixes API break. Some missing methods
diffstat:
modules/org.openbravo.advpaymentmngt/src/org/openbravo/advpaymentmngt/dao/AdvPaymentMngtDao.java
| 26 +++++++
modules/org.openbravo.advpaymentmngt/src/org/openbravo/advpaymentmngt/process/FIN_AddPayment.java
| 36 ++++++++++
2 files changed, 62 insertions(+), 0 deletions(-)
diffs (82 lines):
diff -r 2d71b774275e -r c8818ab4e234
modules/org.openbravo.advpaymentmngt/src/org/openbravo/advpaymentmngt/dao/AdvPaymentMngtDao.java
---
a/modules/org.openbravo.advpaymentmngt/src/org/openbravo/advpaymentmngt/dao/AdvPaymentMngtDao.java
Wed Dec 05 13:06:33 2012 +0100
+++
b/modules/org.openbravo.advpaymentmngt/src/org/openbravo/advpaymentmngt/dao/AdvPaymentMngtDao.java
Wed Dec 05 13:52:19 2012 +0100
@@ -624,6 +624,32 @@
}
/**
+ * Returns a new FIN_PaymentScheduleDetail for the given accounting
dimensions
+ *
+ * @param organization
+ * @param amount
+ * @param businessPartner
+ * accounting dimension
+ * @param product
+ * accounting dimension
+ * @param project
+ * accounting dimension
+ * @param campaign
+ * accounting dimension
+ * @param activity
+ * accounting dimension
+ * @param salesRegion
+ * accounting dimension
+ * @return
+ */
+ public FIN_PaymentScheduleDetail getNewPaymentScheduleDetail(Organization
organization,
+ BigDecimal amount, BusinessPartner businessPartner, Product product,
Project project,
+ Campaign campaign, ABCActivity activity, SalesRegion salesRegion) {
+ return getNewPaymentScheduleDetail(organization, amount, businessPartner,
product, project,
+ campaign, activity, salesRegion, null, null, null);
+ }
+
+ /**
* Creates a new payment schedule
*
*/
diff -r 2d71b774275e -r c8818ab4e234
modules/org.openbravo.advpaymentmngt/src/org/openbravo/advpaymentmngt/process/FIN_AddPayment.java
---
a/modules/org.openbravo.advpaymentmngt/src/org/openbravo/advpaymentmngt/process/FIN_AddPayment.java
Wed Dec 05 13:06:33 2012 +0100
+++
b/modules/org.openbravo.advpaymentmngt/src/org/openbravo/advpaymentmngt/process/FIN_AddPayment.java
Wed Dec 05 13:52:19 2012 +0100
@@ -488,6 +488,42 @@
}
/**
+ * It adds to the Payment a new Payment Detail with the given GL Item,
amount and accounting
+ * dimensions
+ *
+ * @param payment
+ * Payment where the new Payment Detail needs to be added.
+ * @param glitemAmount
+ * Amount of the new Payment Detail.
+ * @param glitem
+ * GLItem to be set in the new Payment Detail.
+ * @param businessPartner
+ * accounting dimension
+ * @param product
+ * accounting dimension
+ * @param project
+ * accounting dimension
+ * @param campaign
+ * accounting dimension
+ * @param activity
+ * accounting dimension
+ * @param salesRegion
+ * accounting dimension
+ * @param costCenter
+ * accounting dimension
+ * @param user1
+ * accounting dimension
+ * @param user2
+ * accounting dimension
+ */
+ public static void saveGLItem(FIN_Payment payment, BigDecimal glitemAmount,
GLItem glitem,
+ BusinessPartner businessPartner, Product product, Project project,
Campaign campaign,
+ ABCActivity activity, SalesRegion salesRegion) {
+ saveGLItem(payment, glitemAmount, glitem, businessPartner, product,
project, campaign,
+ activity, salesRegion, null, null, null);
+ }
+
+ /**
* Removes the Payment Detail from the Payment when the Detail is related to
a GLItem
*
* @param payment
------------------------------------------------------------------------------
LogMeIn Rescue: Anywhere, Anytime Remote support for IT. Free Trial
Remotely access PCs and mobile devices and provide instant support
Improve your efficiency, and focus on delivering more value-add services
Discover what IT Professionals Know. Rescue delivers
http://p.sf.net/sfu/logmein_12329d2d
_______________________________________________
Openbravo-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openbravo-commits