Improved: Removed unused imports from groovy files in accounting component.
(OFBIZ-8484) Thanks: Suraj Khurana for contribution. git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1765057 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
@@ -17,12 +17,7 @@
|
||||
* under the License.
|
||||
*/
|
||||
|
||||
import java.util.*;
|
||||
import java.lang.*;
|
||||
import org.apache.ofbiz.entity.*;
|
||||
import org.apache.ofbiz.entity.condition.*;
|
||||
import org.apache.ofbiz.base.util.*;
|
||||
import org.apache.ofbiz.base.util.UtilMisc;
|
||||
import org.apache.ofbiz.entity.condition.EntityConditionBuilder;
|
||||
|
||||
// Optional prefix parameter to filter InvoiceItemTypes by (i.e. "INV" or "PINV") defaults to INV
|
||||
invItemTypePrefix = context.invItemTypePrefix ?: "INV";
|
||||
|
||||
@@ -17,12 +17,12 @@
|
||||
* under the License.
|
||||
*/
|
||||
|
||||
|
||||
import java.sql.Timestamp;
|
||||
import org.apache.ofbiz.base.util.UtilMisc;
|
||||
import org.apache.ofbiz.entity.condition.EntityCondition;
|
||||
import org.apache.ofbiz.entity.condition.EntityOperator;
|
||||
import org.apache.ofbiz.entity.util.EntityUtil;
|
||||
|
||||
import org.apache.ofbiz.entity.condition.EntityCondition
|
||||
import org.apache.ofbiz.entity.condition.EntityOperator
|
||||
import org.apache.ofbiz.entity.util.EntityUtil
|
||||
|
||||
import java.sql.Timestamp
|
||||
|
||||
if ("Y".equals(parameters.isSearch)) {
|
||||
fromDate = parameters.fromDate;
|
||||
|
||||
@@ -17,11 +17,13 @@
|
||||
* under the License.
|
||||
*/
|
||||
|
||||
|
||||
import org.apache.ofbiz.accounting.util.UtilAccounting
|
||||
import org.apache.ofbiz.base.util.UtilValidate;
|
||||
import org.apache.ofbiz.entity.util.EntityUtil;
|
||||
import org.apache.ofbiz.entity.condition.EntityCondition;
|
||||
import org.apache.ofbiz.entity.condition.EntityOperator;
|
||||
import org.apache.ofbiz.base.util.UtilValidate
|
||||
import org.apache.ofbiz.entity.condition.EntityCondition
|
||||
import org.apache.ofbiz.entity.condition.EntityOperator
|
||||
import org.apache.ofbiz.entity.util.EntityUtil
|
||||
|
||||
if ("Y".equals(parameters.noConditionFind)) {
|
||||
List paymentCond = [];
|
||||
payments = [];
|
||||
|
||||
@@ -17,8 +17,6 @@
|
||||
* under the License.
|
||||
*/
|
||||
|
||||
import org.apache.ofbiz.base.util.UtilMisc;
|
||||
|
||||
taxAuthorities = from('TaxAuthority').orderBy("taxAuthGeoId", "taxAuthPartyId").queryList();
|
||||
|
||||
context.taxAuthorityHavingNoGlAccountList = taxAuthorities.findAll { taxAuthority ->
|
||||
|
||||
@@ -17,9 +17,10 @@
|
||||
* under the License.
|
||||
*/
|
||||
|
||||
import org.apache.ofbiz.base.util.*;
|
||||
import org.apache.ofbiz.common.geo.*;
|
||||
import org.apache.ofbiz.entity.*;
|
||||
|
||||
import org.apache.ofbiz.base.util.UtilMisc
|
||||
import org.apache.ofbiz.base.util.UtilProperties
|
||||
import org.apache.ofbiz.common.geo.GeoWorker
|
||||
|
||||
uiLabelMap = UtilProperties.getResourceBundleMap("AccountingUiLabels", locale);
|
||||
|
||||
|
||||
@@ -17,16 +17,10 @@
|
||||
* under the License.
|
||||
*/
|
||||
|
||||
import java.util.*;
|
||||
import java.math.BigDecimal;
|
||||
import org.apache.ofbiz.entity.*;
|
||||
import org.apache.ofbiz.base.util.*;
|
||||
import org.apache.ofbiz.base.util.collections.*;
|
||||
import org.apache.ofbiz.accounting.invoice.*;
|
||||
import org.apache.ofbiz.accounting.payment.*;
|
||||
import java.text.DateFormat;
|
||||
import java.text.*;
|
||||
import java.text.NumberFormat;
|
||||
|
||||
import org.apache.ofbiz.accounting.invoice.InvoiceWorker
|
||||
|
||||
import java.text.NumberFormat
|
||||
|
||||
// @param GenericValue invoice - The Invoice entity to find payment applications for
|
||||
if (!invoice) return;
|
||||
|
||||
@@ -17,18 +17,11 @@
|
||||
* under the License.
|
||||
*/
|
||||
|
||||
import java.util.*;
|
||||
import org.apache.ofbiz.entity.*;
|
||||
import org.apache.ofbiz.entity.util.EntityUtil;
|
||||
import org.apache.ofbiz.base.util.*;
|
||||
import org.apache.ofbiz.base.util.collections.*;
|
||||
import org.apache.ofbiz.accounting.invoice.*;
|
||||
import java.text.DateFormat;
|
||||
import java.text.SimpleDateFormat;
|
||||
import java.math.BigDecimal;
|
||||
import java.math.MathContext;
|
||||
import org.apache.ofbiz.base.util.UtilNumber;
|
||||
|
||||
import org.apache.ofbiz.accounting.invoice.InvoiceWorker
|
||||
import org.apache.ofbiz.base.util.UtilNumber
|
||||
|
||||
import java.text.DateFormat
|
||||
|
||||
invoiceId = parameters.get("invoiceId");
|
||||
|
||||
@@ -37,7 +30,6 @@ context.invoice = invoice;
|
||||
|
||||
currency = parameters.currency; // allow the display of the invoice in the original currency, the default is to display the invoice in the default currency
|
||||
BigDecimal conversionRate = new BigDecimal("1");
|
||||
ZERO = BigDecimal.ZERO;
|
||||
decimals = UtilNumber.getBigDecimalScale("invoice.decimals");
|
||||
rounding = UtilNumber.getBigDecimalRoundingMode("invoice.rounding");
|
||||
|
||||
|
||||
@@ -17,13 +17,9 @@
|
||||
* under the License.
|
||||
*/
|
||||
|
||||
import org.apache.ofbiz.base.util.UtilMisc;
|
||||
import org.apache.ofbiz.entity.util.EntityUtil;
|
||||
import org.apache.ofbiz.entity.condition.EntityCondition;
|
||||
import org.apache.ofbiz.entity.condition.EntityConditionBuilder;
|
||||
import org.apache.ofbiz.entity.condition.EntityConditionList;
|
||||
import org.apache.ofbiz.entity.condition.EntityExpr;
|
||||
import org.apache.ofbiz.entity.condition.EntityOperator;
|
||||
|
||||
import org.apache.ofbiz.entity.condition.EntityConditionBuilder
|
||||
import org.apache.ofbiz.entity.util.EntityUtil
|
||||
|
||||
exprBldr = new EntityConditionBuilder();
|
||||
invoice = context.invoice;
|
||||
|
||||
@@ -17,14 +17,9 @@
|
||||
* under the License.
|
||||
*/
|
||||
|
||||
import org.apache.ofbiz.entity.util.EntityUtil;
|
||||
import org.apache.ofbiz.entity.condition.EntityCondition;
|
||||
import org.apache.ofbiz.entity.condition.EntityConditionBuilder;
|
||||
import org.apache.ofbiz.entity.condition.EntityConditionList;
|
||||
import org.apache.ofbiz.entity.condition.EntityExpr;
|
||||
import org.apache.ofbiz.entity.condition.EntityOperator;
|
||||
import org.apache.ofbiz.base.util.UtilDateTime;
|
||||
import org.apache.ofbiz.entity.util.EntityFindOptions;
|
||||
|
||||
import org.apache.ofbiz.base.util.UtilDateTime
|
||||
import org.apache.ofbiz.entity.condition.EntityConditionBuilder
|
||||
|
||||
exprBldr = new org.apache.ofbiz.entity.condition.EntityConditionBuilder();
|
||||
|
||||
|
||||
@@ -17,19 +17,11 @@
|
||||
* under the License.
|
||||
*/
|
||||
|
||||
import java.util.*;
|
||||
import org.apache.ofbiz.entity.*;
|
||||
import org.apache.ofbiz.base.util.*;
|
||||
import org.apache.ofbiz.base.util.collections.*;
|
||||
import org.apache.ofbiz.accounting.invoice.*;
|
||||
import org.apache.ofbiz.accounting.payment.*;
|
||||
import org.apache.ofbiz.accounting.util.UtilAccounting;
|
||||
import org.apache.ofbiz.entity.condition.EntityCondition;
|
||||
import org.apache.ofbiz.entity.condition.EntityConditionBuilder;
|
||||
import org.apache.ofbiz.entity.condition.EntityConditionList;
|
||||
import org.apache.ofbiz.entity.condition.EntityExpr;
|
||||
import org.apache.ofbiz.entity.condition.EntityOperator;
|
||||
import java.math.*;
|
||||
|
||||
import org.apache.ofbiz.accounting.invoice.InvoiceWorker
|
||||
import org.apache.ofbiz.accounting.payment.PaymentWorker
|
||||
import org.apache.ofbiz.base.util.UtilNumber
|
||||
import org.apache.ofbiz.entity.condition.EntityConditionBuilder
|
||||
|
||||
invoiceId = parameters.invoiceId;
|
||||
invoice = from("Invoice").where(invoiceId : invoiceId).queryOne();
|
||||
|
||||
@@ -17,10 +17,11 @@
|
||||
* under the License.
|
||||
*/
|
||||
|
||||
import java.text.DateFormat;
|
||||
import org.apache.ofbiz.accounting.invoice.InvoiceWorker;
|
||||
import org.apache.ofbiz.base.util.UtilNumber;
|
||||
import org.apache.ofbiz.entity.condition.EntityCondition;
|
||||
|
||||
import org.apache.ofbiz.accounting.invoice.InvoiceWorker
|
||||
import org.apache.ofbiz.base.util.UtilNumber
|
||||
|
||||
import java.text.DateFormat
|
||||
|
||||
invoiceDetailList = [];
|
||||
invoiceIds.each { invoiceId ->
|
||||
|
||||
@@ -17,9 +17,6 @@
|
||||
* under the License.
|
||||
*/
|
||||
|
||||
import org.apache.ofbiz.base.util.UtilMisc;
|
||||
import org.apache.ofbiz.entity.util.EntityUtil;
|
||||
|
||||
if (billingAccountId) {
|
||||
orderPaymentPreferencesList = [];
|
||||
orderList = from("OrderHeader").where('billingAccountId', billingAccountId).queryList();
|
||||
|
||||
@@ -18,7 +18,6 @@
|
||||
*/
|
||||
|
||||
import org.apache.ofbiz.accounting.payment.BillingAccountWorker;
|
||||
import org.apache.ofbiz.entity.util.EntityUtil;
|
||||
|
||||
partyId = parameters.partyId;
|
||||
currencyUomId = null;
|
||||
|
||||
@@ -16,11 +16,11 @@
|
||||
* specific language governing permissions and limitations
|
||||
* under the License.
|
||||
*/
|
||||
import org.apache.ofbiz.base.util.UtilDateTime;
|
||||
import org.apache.ofbiz.base.util.UtilValidate;
|
||||
import org.apache.ofbiz.entity.util.EntityUtil;
|
||||
import org.apache.ofbiz.entity.condition.EntityCondition;
|
||||
import org.apache.ofbiz.entity.condition.EntityOperator;
|
||||
|
||||
import org.apache.ofbiz.base.util.UtilValidate
|
||||
import org.apache.ofbiz.entity.condition.EntityCondition
|
||||
import org.apache.ofbiz.entity.condition.EntityOperator
|
||||
import org.apache.ofbiz.entity.util.EntityUtil
|
||||
|
||||
if ("Y".equals(parameters.noConditionFind)) {
|
||||
List exprListForParameters = [];
|
||||
|
||||
@@ -17,12 +17,10 @@
|
||||
* under the License.
|
||||
*/
|
||||
|
||||
import org.apache.ofbiz.service.*;
|
||||
|
||||
context.invoicePaymentInfoList = []
|
||||
|
||||
if (parameters.invoiceTypeId) { // it's not the initialisation but a real search request
|
||||
serviceCtx = dispatcher.getDispatchContext().makeValidContext("getInvoicePaymentInfoListByDueDateOffset", "IN", parameters);
|
||||
result = runService("getInvoicePaymentInfoListByDueDateOffset", serviceCtx)
|
||||
context.invoicePaymentInfoList = result.invoicePaymentInfoList
|
||||
}
|
||||
}
|
||||
|
||||
@@ -17,18 +17,13 @@
|
||||
* under the License.
|
||||
*/
|
||||
|
||||
import java.util.*;
|
||||
import org.apache.ofbiz.entity.*;
|
||||
import org.apache.ofbiz.base.util.*;
|
||||
import org.apache.ofbiz.base.util.collections.*;
|
||||
import org.apache.ofbiz.accounting.invoice.*;
|
||||
import org.apache.ofbiz.accounting.payment.*;
|
||||
import org.apache.ofbiz.accounting.util.UtilAccounting;
|
||||
import org.apache.ofbiz.entity.condition.EntityCondition;
|
||||
import org.apache.ofbiz.entity.condition.EntityOperator;
|
||||
import org.apache.ofbiz.entity.condition.EntityExpr;
|
||||
import org.apache.ofbiz.entity.condition.EntityConditionList;
|
||||
import java.math.*;
|
||||
|
||||
import org.apache.ofbiz.accounting.invoice.*
|
||||
import org.apache.ofbiz.accounting.payment.*
|
||||
import org.apache.ofbiz.base.util.UtilNumber
|
||||
import org.apache.ofbiz.base.util.collections.*
|
||||
import org.apache.ofbiz.entity.condition.EntityCondition
|
||||
import org.apache.ofbiz.entity.condition.EntityOperator
|
||||
|
||||
paymentId = parameters.paymentId;
|
||||
payment = from("Payment").where("paymentId", paymentId).queryOne();
|
||||
|
||||
@@ -17,21 +17,11 @@
|
||||
* under the License.
|
||||
*/
|
||||
|
||||
import java.util.*;
|
||||
import org.apache.ofbiz.entity.*;
|
||||
import org.apache.ofbiz.base.util.*;
|
||||
import org.apache.ofbiz.base.util.collections.*;
|
||||
import org.apache.ofbiz.accounting.invoice.*;
|
||||
import org.apache.ofbiz.accounting.payment.*;
|
||||
import org.apache.ofbiz.accounting.util.UtilAccounting;
|
||||
import java.text.DateFormat;
|
||||
import java.math.*;
|
||||
import org.apache.ofbiz.entity.condition.EntityCondition;
|
||||
import org.apache.ofbiz.entity.condition.EntityConditionList;
|
||||
import org.apache.ofbiz.entity.condition.EntityExpr;
|
||||
import org.apache.ofbiz.entity.condition.EntityOperator;
|
||||
import org.apache.ofbiz.entity.model.*;
|
||||
import java.text.NumberFormat;
|
||||
|
||||
import org.apache.ofbiz.accounting.payment.PaymentWorker
|
||||
import org.apache.ofbiz.base.util.UtilNumber
|
||||
import org.apache.ofbiz.entity.condition.EntityCondition
|
||||
import org.apache.ofbiz.entity.condition.EntityOperator
|
||||
|
||||
basePaymentId = parameters.paymentId;
|
||||
basePayment = from("Payment").where("paymentId", basePaymentId).queryOne();
|
||||
|
||||
@@ -17,8 +17,6 @@
|
||||
* under the License.
|
||||
*/
|
||||
|
||||
import org.apache.ofbiz.base.util.*;
|
||||
|
||||
// stores
|
||||
productStores = from("ProductStore").orderBy("storeName").cache(true).queryList();
|
||||
context.productStores = productStores;
|
||||
|
||||
@@ -17,13 +17,9 @@
|
||||
* under the License.
|
||||
*/
|
||||
|
||||
import java.util.ArrayList;
|
||||
import org.apache.ofbiz.base.util.UtilHttp;
|
||||
import org.apache.ofbiz.base.util.UtilMisc;
|
||||
import org.apache.ofbiz.base.util.UtilNumber;
|
||||
import org.apache.ofbiz.entity.condition.EntityCondition;
|
||||
import org.apache.ofbiz.entity.condition.EntityOperator;
|
||||
import org.apache.ofbiz.entity.util.EntityUtil;
|
||||
|
||||
import org.apache.ofbiz.base.util.UtilHttp
|
||||
import org.apache.ofbiz.base.util.UtilNumber
|
||||
|
||||
// rounding mode
|
||||
decimals = UtilNumber.getBigDecimalScale("invoice.decimals");
|
||||
|
||||
@@ -17,12 +17,6 @@
|
||||
* under the License.
|
||||
*/
|
||||
|
||||
import java.util.*;
|
||||
import java.net.*;
|
||||
import org.apache.ofbiz.security.*;
|
||||
import org.apache.ofbiz.entity.*;
|
||||
import org.apache.ofbiz.base.util.*;
|
||||
|
||||
findOrganizationPartyId = parameters.findOrganizationPartyId;
|
||||
if (findOrganizationPartyId) {
|
||||
context.findOrganizationPartyId = findOrganizationPartyId;
|
||||
|
||||
@@ -17,17 +17,17 @@
|
||||
* under the License.
|
||||
*/
|
||||
|
||||
import org.apache.ofbiz.base.util.UtilDateTime;
|
||||
import org.apache.ofbiz.base.util.UtilMisc;
|
||||
import org.apache.ofbiz.base.util.UtilProperties;
|
||||
import org.apache.ofbiz.entity.GenericValue;
|
||||
import org.apache.ofbiz.entity.condition.EntityCondition;
|
||||
import org.apache.ofbiz.entity.condition.EntityOperator;
|
||||
import org.apache.ofbiz.accounting.util.UtilAccounting;
|
||||
import org.apache.ofbiz.party.party.PartyWorker;
|
||||
|
||||
import java.sql.Date;
|
||||
import java.sql.Timestamp;
|
||||
import org.apache.ofbiz.accounting.util.UtilAccounting
|
||||
import org.apache.ofbiz.base.util.UtilDateTime
|
||||
import org.apache.ofbiz.base.util.UtilMisc
|
||||
import org.apache.ofbiz.base.util.UtilProperties
|
||||
import org.apache.ofbiz.entity.GenericValue
|
||||
import org.apache.ofbiz.entity.condition.EntityCondition
|
||||
import org.apache.ofbiz.entity.condition.EntityOperator
|
||||
import org.apache.ofbiz.party.party.PartyWorker
|
||||
|
||||
import java.sql.Timestamp
|
||||
|
||||
uiLabelMap = UtilProperties.getResourceBundleMap("AccountingUiLabels", locale);
|
||||
|
||||
@@ -430,4 +430,4 @@ context.liabilityEquityBalanceTotal = context.liabilityBalanceTotal + context.eq
|
||||
balanceTotalList.add(UtilMisc.toMap("totalName", "AccountingEquities", "balance", context.equityBalanceTotal));
|
||||
balanceTotalList.add(UtilMisc.toMap("totalName", "AccountingTotalLiabilitiesAndEquities", "balance", context.liabilityEquityBalanceTotal));
|
||||
|
||||
context.balanceTotalList = balanceTotalList;
|
||||
context.balanceTotalList = balanceTotalList;
|
||||
|
||||
@@ -17,17 +17,17 @@
|
||||
* under the License.
|
||||
*/
|
||||
|
||||
import org.apache.ofbiz.accounting.util.UtilAccounting;
|
||||
import org.apache.ofbiz.base.util.UtilDateTime;
|
||||
import org.apache.ofbiz.base.util.UtilMisc;
|
||||
import org.apache.ofbiz.base.util.UtilProperties;
|
||||
import org.apache.ofbiz.entity.GenericValue;
|
||||
import org.apache.ofbiz.entity.condition.EntityCondition;
|
||||
import org.apache.ofbiz.entity.condition.EntityOperator;
|
||||
import org.apache.ofbiz.party.party.PartyWorker;
|
||||
|
||||
import java.sql.Date;
|
||||
import java.sql.Timestamp;
|
||||
import org.apache.ofbiz.accounting.util.UtilAccounting
|
||||
import org.apache.ofbiz.base.util.UtilDateTime
|
||||
import org.apache.ofbiz.base.util.UtilMisc
|
||||
import org.apache.ofbiz.base.util.UtilProperties
|
||||
import org.apache.ofbiz.entity.GenericValue
|
||||
import org.apache.ofbiz.entity.condition.EntityCondition
|
||||
import org.apache.ofbiz.entity.condition.EntityOperator
|
||||
import org.apache.ofbiz.party.party.PartyWorker
|
||||
|
||||
import java.sql.Timestamp
|
||||
|
||||
if (!fromDate) {
|
||||
return;
|
||||
|
||||
@@ -18,9 +18,6 @@
|
||||
*/
|
||||
|
||||
import org.apache.ofbiz.base.util.UtilMisc;
|
||||
import java.math.BigDecimal;
|
||||
import java.sql.Timestamp;
|
||||
import org.apache.ofbiz.entity.util.EntityUtil;
|
||||
|
||||
assetAccountBalanceMap = [:];
|
||||
assetAccountBalanceList = [];
|
||||
|
||||
@@ -18,7 +18,6 @@
|
||||
*/
|
||||
|
||||
import org.apache.ofbiz.base.util.UtilMisc;
|
||||
import java.math.BigDecimal;
|
||||
|
||||
openingCashBalanceMap = [:];
|
||||
openingCashBalanceList = [];
|
||||
|
||||
@@ -18,7 +18,6 @@
|
||||
*/
|
||||
|
||||
import org.apache.ofbiz.base.util.UtilMisc;
|
||||
import java.math.BigDecimal;
|
||||
|
||||
revenueAccountBalanceMap = [:];
|
||||
revenueAccountBalanceList = [];
|
||||
|
||||
@@ -17,12 +17,11 @@
|
||||
* under the License.
|
||||
*/
|
||||
|
||||
import org.apache.ofbiz.base.util.UtilDateTime;
|
||||
import org.apache.ofbiz.base.util.UtilMisc;
|
||||
import org.apache.ofbiz.base.util.UtilNumber;
|
||||
import org.apache.ofbiz.entity.condition.EntityCondition;
|
||||
import org.apache.ofbiz.entity.condition.EntityOperator;
|
||||
import org.apache.ofbiz.entity.util.EntityUtil;
|
||||
|
||||
import org.apache.ofbiz.base.util.UtilDateTime
|
||||
import org.apache.ofbiz.base.util.UtilMisc
|
||||
import org.apache.ofbiz.entity.condition.EntityCondition
|
||||
import org.apache.ofbiz.entity.condition.EntityOperator
|
||||
|
||||
if (!fromDate) {
|
||||
return;
|
||||
|
||||
@@ -16,12 +16,13 @@
|
||||
* specific language governing permissions and limitations
|
||||
* under the License.
|
||||
*/
|
||||
import java.sql.Timestamp;
|
||||
import org.apache.ofbiz.base.util.UtilDateTime;
|
||||
import org.apache.ofbiz.base.util.UtilValidate;
|
||||
import org.apache.ofbiz.base.util.UtilNumber;
|
||||
import org.apache.ofbiz.accounting.util.UtilAccounting;
|
||||
import com.ibm.icu.util.Calendar;
|
||||
|
||||
import org.apache.ofbiz.accounting.util.UtilAccounting
|
||||
import org.apache.ofbiz.base.util.UtilDateTime
|
||||
import org.apache.ofbiz.base.util.UtilNumber
|
||||
import org.apache.ofbiz.base.util.UtilValidate
|
||||
|
||||
import java.sql.Timestamp
|
||||
|
||||
if (parameters.get('ApplicationDecorator|organizationPartyId')) {
|
||||
onlyIncludePeriodTypeIdList = [];
|
||||
|
||||
+4
-4
@@ -17,10 +17,10 @@
|
||||
* under the License.
|
||||
*/
|
||||
|
||||
import org.apache.ofbiz.base.util.*;
|
||||
import org.apache.ofbiz.entity.*;
|
||||
import org.apache.ofbiz.entity.condition.*;
|
||||
import org.apache.ofbiz.entity.util.*;
|
||||
|
||||
import org.apache.ofbiz.base.util.UtilMisc
|
||||
import org.apache.ofbiz.entity.condition.EntityCondition
|
||||
import org.apache.ofbiz.entity.condition.EntityOperator
|
||||
|
||||
//NOTE: this code ignores from/thru dates on the products and categories under the rootProductCategoryId!
|
||||
|
||||
|
||||
@@ -17,18 +17,15 @@
|
||||
* under the License.
|
||||
*/
|
||||
|
||||
import java.sql.Timestamp;
|
||||
|
||||
import org.apache.ofbiz.base.util.UtilDateTime;
|
||||
import org.apache.ofbiz.base.util.UtilMisc;
|
||||
import org.apache.ofbiz.entity.GenericValue;
|
||||
import org.apache.ofbiz.entity.condition.EntityCondition;
|
||||
import org.apache.ofbiz.entity.condition.EntityOperator;
|
||||
import org.apache.ofbiz.entity.util.EntityUtil;
|
||||
import org.apache.ofbiz.accounting.util.UtilAccounting
|
||||
import org.apache.ofbiz.base.util.UtilDateTime
|
||||
import org.apache.ofbiz.base.util.UtilMisc
|
||||
import org.apache.ofbiz.entity.GenericValue
|
||||
import org.apache.ofbiz.entity.condition.EntityCondition
|
||||
import org.apache.ofbiz.entity.condition.EntityOperator
|
||||
|
||||
import org.apache.ofbiz.accounting.util.UtilAccounting;
|
||||
|
||||
import java.sql.Date;
|
||||
import java.sql.Timestamp
|
||||
|
||||
if (!fromDate) {
|
||||
return;
|
||||
|
||||
@@ -16,9 +16,7 @@
|
||||
* specific language governing permissions and limitations
|
||||
* under the License.
|
||||
*/
|
||||
import java.math.BigDecimal;
|
||||
import org.apache.ofbiz.order.order.OrderReadHelper;
|
||||
import org.apache.ofbiz.base.util.UtilMisc;
|
||||
|
||||
orderId = context.orderId;
|
||||
orderPaymentPreferenceId = context.orderPaymentPreferenceId;
|
||||
|
||||
@@ -16,12 +16,10 @@
|
||||
* specific language governing permissions and limitations
|
||||
* under the License.
|
||||
*/
|
||||
import org.apache.ofbiz.order.order.OrderReadHelper;
|
||||
import org.apache.ofbiz.base.util.UtilMisc;
|
||||
import org.apache.ofbiz.entity.condition.EntityExpr;
|
||||
import org.apache.ofbiz.entity.condition.EntityOperator;
|
||||
import org.apache.ofbiz.entity.condition.EntityCondition;
|
||||
import org.apache.ofbiz.entity.util.EntityUtil;
|
||||
|
||||
import org.apache.ofbiz.entity.condition.EntityCondition
|
||||
import org.apache.ofbiz.entity.condition.EntityOperator
|
||||
import org.apache.ofbiz.entity.util.EntityUtil
|
||||
|
||||
orderId = context.orderId;
|
||||
orderPaymentPreferenceId = context.orderPaymentPreferenceId;
|
||||
|
||||
@@ -25,11 +25,9 @@
|
||||
* a backlink to the order can be created.
|
||||
*/
|
||||
|
||||
import org.apache.ofbiz.base.util.UtilMisc;
|
||||
import org.apache.ofbiz.entity.condition.EntityExpr;
|
||||
import org.apache.ofbiz.entity.condition.EntityOperator;
|
||||
import org.apache.ofbiz.entity.condition.EntityCondition;
|
||||
import org.apache.ofbiz.entity.util.EntityUtil;
|
||||
import org.apache.ofbiz.entity.condition.EntityCondition
|
||||
import org.apache.ofbiz.entity.condition.EntityOperator
|
||||
import org.apache.ofbiz.entity.util.EntityUtil
|
||||
|
||||
// get this field first, it determines which purpose this script satisfies
|
||||
orderPaymentPreferenceId = context.orderPaymentPreferenceId;
|
||||
|
||||
Reference in New Issue
Block a user