applications/product/src/org/ofbiz/shipment/packing/PackingSession.java
PackingSession
has 75 methods (exceeds 20 allowed). Consider refactoring. Open
Open
@SuppressWarnings("serial")
public class PackingSession implements java.io.Serializable {
private static final Debug.OfbizLogger module = Debug.getOfbizLogger(java.lang.invoke.MethodHandles.lookup().lookupClass());
Method createPackLineItem
has 10 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
protected void createPackLineItem(int checkCode, GenericValue res, String orderId, String orderItemSeqId, String shipGroupSeqId, String productId, BigDecimal quantity, BigDecimal weight, int packageSeqId, String shipmentItemSeqId) throws GeneralException {
Method getShipmentCostEstimate
has 9 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
public synchronized BigDecimal getShipmentCostEstimate(String shippingContactMechId, String shipmentMethodTypeId, String carrierPartyId, String carrierRoleTypeId, String productStoreId, List<GenericValue> shippableItemInfo, BigDecimal shippableTotal, BigDecimal shippableWeight, BigDecimal shippableQuantity) {
Method createPackLineItem
has 9 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
protected void createPackLineItem(int checkCode, GenericValue res, String orderId, String orderItemSeqId, String shipGroupSeqId, String productId, BigDecimal quantity, BigDecimal weight, int packageSeqId) throws GeneralException {
Method addOrIncreaseLine
has 8 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
public synchronized void addOrIncreaseLine(String orderId, String orderItemSeqId, String shipGroupSeqId, String productId, BigDecimal quantity, int packageSeqId, BigDecimal weight, boolean update) throws GeneralException {
Method checkLineForAdd
has 8 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
protected int checkLineForAdd(GenericValue res, String orderId, String orderItemSeqId, String shipGroupSeqId, String productId, BigDecimal quantity, int packageSeqId, boolean update) {
Method getShipmentCostEstimate
has 6 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
public synchronized BigDecimal getShipmentCostEstimate(GenericValue orderItemShipGroup, String productStoreId, List<GenericValue> shippableItemInfo, BigDecimal shippableTotal, BigDecimal shippableWeight, BigDecimal shippableQuantity) {
Method findLine
has 6 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
public synchronized PackingSessionLine findLine(String orderId, String orderItemSeqId, String shipGroupSeqId, String productId, String inventoryItemId, int packageSeq) {
Method getPackedQuantity
has 6 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
public synchronized BigDecimal getPackedQuantity(String orderId, String orderItemSeqId, String shipGroupSeqId, String productId, String inventoryItemId, int packageSeq) {
Consider simplifying this complex logical expression. Open
Open
if (orderId.equals(line.getOrderId()) &&
orderItemSeqId.equals(line.getOrderItemSeqId()) &&
shipGroupSeqId.equals(line.getShipGroupSeqId()) &&
productId.equals(line.getProductId()) &&
inventoryItemId.equals(line.getInventoryItemId()) &&
Method getPackedQuantity
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
public synchronized BigDecimal getPackedQuantity(String orderId, String orderItemSeqId, String shipGroupSeqId, String productId, int packageSeq) {
Method addOrIncreaseLine
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
public synchronized void addOrIncreaseLine(String orderId, String orderItemSeqId, String shipGroupSeqId, BigDecimal quantity, int packageSeqId) throws GeneralException {