Package org.openbravo.costing
Class PriceDifferenceProcess
- java.lang.Object
-
- org.openbravo.costing.PriceDifferenceProcess
-
public class PriceDifferenceProcess extends Object
-
-
Constructor Summary
Constructors Constructor Description PriceDifferenceProcess()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static org.codehaus.jettison.json.JSONObject
processPriceDifference(Date date, Product product, Organization legalOrganization)
This process is going to calculate the differences in prices between the Orders and the related Invoices.static org.codehaus.jettison.json.JSONObject
processPriceDifference(Organization legalOrganization)
This process is going to calculate the differences in prices between the Orders and the related Invoices.static org.codehaus.jettison.json.JSONObject
processPriceDifferenceTransaction(MaterialTransaction materialTransaction)
-
-
-
Method Detail
-
processPriceDifferenceTransaction
public static org.codehaus.jettison.json.JSONObject processPriceDifferenceTransaction(MaterialTransaction materialTransaction) throws OBException
- Throws:
OBException
-
processPriceDifference
public static org.codehaus.jettison.json.JSONObject processPriceDifference(Organization legalOrganization)
This process is going to calculate the differences in prices between the Orders and the related Invoices. If there are any differences a Cost Adjustment Document will be created to adjust the related Transactions- Parameters:
legalOrganization
- [Mandatory] Legal Organization for which the Price Difference Process is going to be executed- Returns:
- the message to be shown to the user properly formatted and translated to the user language.
-
processPriceDifference
public static org.codehaus.jettison.json.JSONObject processPriceDifference(Date date, Product product, Organization legalOrganization) throws OBException
This process is going to calculate the differences in prices between the Orders and the related Invoices. If there are any differences a Cost Adjustment Document will be created to adjust the related Transactions- Parameters:
date
- [Optional] Date from which the Price Differences Process is going to executedproduct
- [Optional] Product for which the Price Difference Process is going to be executedlegalOrganization
- [Mandatory] Legal Organization for which the Price Difference Process is going to be executed- Returns:
- the message to be shown to the user properly formatted and translated to the user language.
- Throws:
OBException
- when there is an error that prevents the cost adjustment to be processed.
-
-