Package org.compiere.model
Class MShippingTransaction
java.lang.Object
org.compiere.model.PO
org.compiere.model.X_M_ShippingTransaction
org.compiere.model.MShippingTransaction
- All Implemented Interfaces:
Serializable
,Cloneable
,Comparator<Object>
,I_M_ShippingTransaction
,I_Persistent
,Evaluatee
Online shipping transaction model
- See Also:
-
Nested Class Summary
Modifier and TypeClassDescriptionclass
Sender/Recipient party value object -
Field Summary
Fields inherited from class org.compiere.model.X_M_ShippingTransaction
ACTION_AD_Reference_ID, ACTION_ProcessShipment, ACTION_RateInquiry, ACTION_VoidShipment, DELIVERYCONFIRMATIONTYPE_AD_Reference_ID, DELIVERYCONFIRMATIONTYPE_Adult, DELIVERYCONFIRMATIONTYPE_Direct, DELIVERYCONFIRMATIONTYPE_Indirect, DELIVERYCONFIRMATIONTYPE_ServiceDefault, DOTHAZARDCLASSORDIVISION_21_FlammableGas, DOTHAZARDCLASSORDIVISION_22_NonflammableGas, DOTHAZARDCLASSORDIVISION_41_FlammableSolids, DOTHAZARDCLASSORDIVISION_42_SpontaneousCombustibles, DOTHAZARDCLASSORDIVISION_43_DangerousWhenWet, DOTHAZARDCLASSORDIVISION_51_Oxidizers, DOTHAZARDCLASSORDIVISION_52_OrganicPeroxides, DOTHAZARDCLASSORDIVISION_61_ToxicSubstances, DOTHAZARDCLASSORDIVISION_62_InfectiousSubstances, DOTHAZARDCLASSORDIVISION_AD_Reference_ID, DOTHAZARDCLASSORDIVISION_Class1_Explosives, DOTHAZARDCLASSORDIVISION_Class2_Gases, DOTHAZARDCLASSORDIVISION_Class3_FlammableLiquids, DOTHAZARDCLASSORDIVISION_Class4, DOTHAZARDCLASSORDIVISION_Class5_OxidizingSubstancesAndOrganicPeroxides, DOTHAZARDCLASSORDIVISION_Class6_ToxicPoisonousAndInfectiousSubstances, DOTHAZARDCLASSORDIVISION_Class7_RadioactiveMaterial, DOTHAZARDCLASSORDIVISION_Class8_Corrosives, DOTHAZARDCLASSORDIVISION_Class9_MiscellaneousDangerousGoods, FOB_AD_Reference_ID, FOB_CFR_CostAndFreight, FOB_CIF_CostInsuranceAndFreightFedEx, FOB_CIP_CarriageAndInsurancePaidToFedEx, FOB_CPT_CarriagePaidTo, FOB_DAF_DeliveredAtFrontier, FOB_DDP_DeliveredDutyPaidFedEx, FOB_DDU_DeliveredDutyUnpaidFedEx, FOB_DEQ_DeliveredExQuay, FOB_DES_DeliveredExShip, FOB_DomesticFOBDestination, FOB_EXW_ExWorksFedEx, FOB_ExWorks, FOB_FAS_FreeAlongsideShip, FOB_FCA_FreeCarrierFedEx, FOB_FOB_FreeOnBoardFedEx, FOB_FOBOrigin, FREIGHTCHARGES_3rdParty, FREIGHTCHARGES_AD_Reference_ID, FREIGHTCHARGES_Collect, FREIGHTCHARGES_Consignee, FREIGHTCHARGES_Prepaid, FREIGHTCHARGES_PrepaidAndBill, HOMEDELIVERYPREMIUMTYPE_AD_Reference_ID, HOMEDELIVERYPREMIUMTYPE_Appointment, HOMEDELIVERYPREMIUMTYPE_DateCertain, HOMEDELIVERYPREMIUMTYPE_Evening, INSURANCE_AD_Reference_ID, INSURANCE_DoNotInsure, INSURANCE_Insure, NOTIFICATIONTYPE_AD_Reference_ID, NOTIFICATIONTYPE_Recipient, NOTIFICATIONTYPE_RecipientSender, NOTIFICATIONTYPE_Sender, PAYMENTRULE_AD_Reference_ID, PAYMENTRULE_Cash, PAYMENTRULE_Check, PAYMENTRULE_CreditCard, PAYMENTRULE_DirectDebit, PAYMENTRULE_DirectDeposit, PAYMENTRULE_MixedPOSPayment, PAYMENTRULE_OnCredit
Fields inherited from class org.compiere.model.PO
ACCESSLEVEL_ALL, ACCESSLEVEL_CLIENT, ACCESSLEVEL_CLIENTORG, ACCESSLEVEL_ORG, ACCESSLEVEL_SYSTEM, ACCESSLEVEL_SYSTEMCLIENT, ENTITYTYPE_Dictionary, ENTITYTYPE_UserMaintained, I_ZERO, LOCAL_TRX_PREFIX, log, p_ctx, p_info, UUID_NEW_RECORD, XML_ATTRIBUTE_AD_Table_ID, XML_ATTRIBUTE_Record_ID
Fields inherited from interface org.compiere.model.I_M_ShippingTransaction
accessLevel, COLUMNNAME_Action, COLUMNNAME_AD_Client_ID, COLUMNNAME_AD_Org_ID, COLUMNNAME_AD_User_ID, COLUMNNAME_Bill_Location_ID, COLUMNNAME_BoxCount, COLUMNNAME_C_BP_ShippingAcct_ID, COLUMNNAME_C_BPartner_ID, COLUMNNAME_C_BPartner_Location_ID, COLUMNNAME_C_Currency_ID, COLUMNNAME_C_Invoice_ID, COLUMNNAME_C_Order_ID, COLUMNNAME_C_UOM_Length_ID, COLUMNNAME_C_UOM_Weight_ID, COLUMNNAME_CashOnDelivery, COLUMNNAME_CODAmount, COLUMNNAME_Created, COLUMNNAME_CreatedBy, COLUMNNAME_CustomsValue, COLUMNNAME_DateReceived, COLUMNNAME_DeliveryConfirmation, COLUMNNAME_DeliveryConfirmationType, COLUMNNAME_Description, COLUMNNAME_DotHazardClassOrDivision, COLUMNNAME_DryIceWeight, COLUMNNAME_DutiesShipperAccount, COLUMNNAME_FOB, COLUMNNAME_FreightAmt, COLUMNNAME_FreightCharges, COLUMNNAME_HandlingCharge, COLUMNNAME_Height, COLUMNNAME_HoldAddress_ID, COLUMNNAME_HomeDeliveryPremiumDate, COLUMNNAME_HomeDeliveryPremiumPhone, COLUMNNAME_HomeDeliveryPremiumType, COLUMNNAME_Insurance, COLUMNNAME_InsuredAmount, COLUMNNAME_IsAccessible, COLUMNNAME_IsActive, COLUMNNAME_IsAddedHandling, COLUMNNAME_IsAlternateReturnAddress, COLUMNNAME_IsCargoAircraftOnly, COLUMNNAME_IsDryIce, COLUMNNAME_IsDutiable, COLUMNNAME_IsFutureDayShipment, COLUMNNAME_IsHazMat, COLUMNNAME_IsHoldAtLocation, COLUMNNAME_IsIgnoreZipNotFound, COLUMNNAME_IsIgnoreZipStateNotMatch, COLUMNNAME_IsPriviledgedRate, COLUMNNAME_IsResidential, COLUMNNAME_IsSaturdayDelivery, COLUMNNAME_IsSaturdayPickup, COLUMNNAME_IsVerbalConfirmation, COLUMNNAME_LatestPickupTime, COLUMNNAME_Length, COLUMNNAME_M_InOut_ID, COLUMNNAME_M_Package_ID, COLUMNNAME_M_Shipper_ID, COLUMNNAME_M_ShipperLabels_ID, COLUMNNAME_M_ShipperPackaging_ID, COLUMNNAME_M_ShipperPickupTypes_ID, COLUMNNAME_M_ShippingProcessor_ID, COLUMNNAME_M_ShippingTransaction_ID, COLUMNNAME_M_ShippingTransaction_UU, COLUMNNAME_M_Warehouse_ID, COLUMNNAME_NotificationMessage, COLUMNNAME_NotificationType, COLUMNNAME_PaymentRule, COLUMNNAME_POReference, COLUMNNAME_Price, COLUMNNAME_PriceActual, COLUMNNAME_Processed, COLUMNNAME_ReceivedInfo, COLUMNNAME_ReturnBPartner_ID, COLUMNNAME_ReturnLocation_ID, COLUMNNAME_ReturnUser_ID, COLUMNNAME_SalesRep_ID, COLUMNNAME_ShipDate, COLUMNNAME_ShipperAccount, COLUMNNAME_ShippingRespMessage, COLUMNNAME_Surcharges, COLUMNNAME_TrackingInfo, COLUMNNAME_TrackingNo, COLUMNNAME_Updated, COLUMNNAME_UpdatedBy, COLUMNNAME_Weight, COLUMNNAME_Width, Model, Table_ID, Table_Name
-
Constructor Summary
ConstructorDescriptionMShippingTransaction
(Properties ctx, int M_ShippingTransaction_ID, String trxName) MShippingTransaction
(Properties ctx, String M_ShippingTransaction_UU, String trxName) UUID based ConstructorMShippingTransaction
(Properties ctx, ResultSet rs, String trxName) -
Method Summary
Modifier and TypeMethodDescriptiongetCommodityDescription
(int M_Product_ID) getCommodityShipment
(int M_Product_ID) int
getCommodityShipmentID
(int M_Product_ID) getCountryOfManufacture
(int M_Product_ID) getExportLicenseNum
(int M_Product_ID) getHarmonizedCode
(int M_Product_ID) int
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
Submit online shipping request (shipment, rate inquiry or void shipment)void
setErrorMessage
(String errorMessage) Set error messageMethods inherited from class org.compiere.model.X_M_ShippingTransaction
get_AccessLevel, getAction, getAD_User, getAD_User_ID, getBill_Location, getBill_Location_ID, getBoxCount, getC_BP_ShippingAcct, getC_BP_ShippingAcct_ID, getC_BPartner, getC_BPartner_ID, getC_BPartner_Location, getC_BPartner_Location_ID, getC_Currency, getC_Currency_ID, getC_Invoice, getC_Invoice_ID, getC_Order, getC_Order_ID, getC_UOM_Length, getC_UOM_Length_ID, getC_UOM_Weight, getC_UOM_Weight_ID, getCODAmount, getCustomsValue, getDateReceived, getDeliveryConfirmationType, getDescription, getDotHazardClassOrDivision, getDryIceWeight, getDutiesShipperAccount, getFOB, getFreightAmt, getFreightCharges, getHandlingCharge, getHeight, getHoldAddress, getHoldAddress_ID, getHomeDeliveryPremiumDate, getHomeDeliveryPremiumPhone, getHomeDeliveryPremiumType, getInsurance, getInsuredAmount, getLatestPickupTime, getLength, getM_InOut, getM_InOut_ID, getM_Package, getM_Package_ID, getM_Shipper, getM_Shipper_ID, getM_ShipperLabels, getM_ShipperLabels_ID, getM_ShipperPackaging, getM_ShipperPackaging_ID, getM_ShipperPickupTypes, getM_ShipperPickupTypes_ID, getM_ShippingProcessor, getM_ShippingProcessor_ID, getM_ShippingTransaction_ID, getM_ShippingTransaction_UU, getM_Warehouse, getM_Warehouse_ID, getNotificationMessage, getNotificationType, getPaymentRule, getPOReference, getPrice, getPriceActual, getReceivedInfo, getReturnBPartner, getReturnBPartner_ID, getReturnLocation, getReturnLocation_ID, getReturnUser, getReturnUser_ID, getSalesRep, getSalesRep_ID, getShipDate, getShipperAccount, getShippingRespMessage, getSurcharges, getTrackingInfo, getTrackingNo, getWeight, getWidth, initPO, isAccessible, isAddedHandling, isAlternateReturnAddress, isCargoAircraftOnly, isCashOnDelivery, isDeliveryConfirmation, isDryIce, isDutiable, isFutureDayShipment, isHazMat, isHoldAtLocation, isIgnoreZipNotFound, isIgnoreZipStateNotMatch, isPriviledgedRate, isProcessed, isResidential, isSaturdayDelivery, isSaturdayPickup, isVerbalConfirmation, setAction, setAD_User_ID, setBill_Location_ID, setBoxCount, setC_BP_ShippingAcct_ID, setC_BPartner_ID, setC_BPartner_Location_ID, setC_Currency_ID, setC_Invoice_ID, setC_Order_ID, setC_UOM_Length_ID, setC_UOM_Weight_ID, setCashOnDelivery, setCODAmount, setCustomsValue, setDateReceived, setDeliveryConfirmation, setDeliveryConfirmationType, setDescription, setDotHazardClassOrDivision, setDryIceWeight, setDutiesShipperAccount, setFOB, setFreightAmt, setFreightCharges, setHandlingCharge, setHeight, setHoldAddress_ID, setHomeDeliveryPremiumDate, setHomeDeliveryPremiumPhone, setHomeDeliveryPremiumType, setInsurance, setInsuredAmount, setIsAccessible, setIsAddedHandling, setIsAlternateReturnAddress, setIsCargoAircraftOnly, setIsDryIce, setIsDutiable, setIsFutureDayShipment, setIsHazMat, setIsHoldAtLocation, setIsIgnoreZipNotFound, setIsIgnoreZipStateNotMatch, setIsPriviledgedRate, setIsResidential, setIsSaturdayDelivery, setIsSaturdayPickup, setIsVerbalConfirmation, setLatestPickupTime, setLength, setM_InOut_ID, setM_Package_ID, setM_Shipper_ID, setM_ShipperLabels_ID, setM_ShipperPackaging_ID, setM_ShipperPickupTypes_ID, setM_ShippingProcessor_ID, setM_ShippingTransaction_ID, setM_ShippingTransaction_UU, setM_Warehouse_ID, setNotificationMessage, setNotificationType, setPaymentRule, setPOReference, setPrice, setPriceActual, setProcessed, setReceivedInfo, setReturnBPartner_ID, setReturnLocation_ID, setReturnUser_ID, setSalesRep_ID, setShipDate, setShipperAccount, setShippingRespMessage, setSurcharges, setTrackingInfo, setTrackingNo, setWeight, setWidth, toString
Methods inherited from class org.compiere.model.PO
afterDelete, afterSave, beforeDelete, beforeSave, buildInsertSQL, checkImmutable, clearCrossTenantSafe, clone, columnExists, columnExists, compare, copyPO, copyValues, copyValues, createAttachment, delete, delete, delete_Accounting, delete_Tree, deleteEx, deleteEx, dump, dump, equals, get_Attribute, get_Attributes, get_ColumnCount, get_ColumnDescription, get_ColumnDisplayType, get_ColumnIndex, get_ColumnLabel, get_ColumnLookup, get_ColumnName, get_DisplayValue, get_HashMap, get_ID, get_IDOld, get_KeyColumns, get_Logger, get_OptimisticLockingColumns, get_Table_ID, get_TableName, get_Translation, get_Translation, get_Translation, get_Translation, get_Translation, get_TrxName, get_UUID, get_Value, get_Value, get_ValueAsBoolean, get_ValueAsInt, get_ValueAsInt, get_ValueAsString, get_ValueAsString, get_ValueDifference, get_ValueDifference, get_ValueE, get_ValueOfColumn, get_ValueOld, get_ValueOld, get_ValueOldAsInt, get_WhereClause, get_WhereClause, get_xmlDocument, get_xmlString, getAD_Client_ID, getAD_Org_ID, getAllIDs, getAttachment, getAttachment, getAttachmentData, getCreated, getCreatedBy, getCtx, getDoc, getFindParameter, getPdfAttachment, getUpdated, getUpdatedBy, getUUIDColumnName, getUUIDColumnName, hashCode, insert_Accounting, insert_Tree, insert_Tree, is_Changed, is_Immutable, is_new, is_UseOptimisticLocking, is_ValueChanged, is_ValueChanged, isActive, isAttachment, isColumnMandatory, isColumnUpdateable, isMandatoryOK, isPdfAttachment, isReplication, load, load, load, load, loadByUU, loadComplete, loadDefaults, loadPO, loadSpecial, lock, makeImmutable, postDelete, retrieveIdOfParentValue, retrieveIdOfParentValue, save, save, saveCrossTenantSafe, saveCrossTenantSafeEx, saveCrossTenantSafeEx, saveEx, saveEx, saveNew_afterSetID, saveNew_getID, saveNewSpecial, saveReplica, saveUpdate, set_Attribute, set_ColumnUpdateable, set_CustomColumn, set_CustomColumnReturningBoolean, set_OptimisticLockingColumns, set_TrxName, set_TrxName, set_UseOptimisticLocking, set_Value, set_Value, set_Value, set_Value, set_ValueE, set_ValueNoCheck, set_ValueNoCheckE, set_ValueOfColumn, set_ValueOfColumn, set_ValueOfColumnReturningBoolean, set_ValueOfColumnReturningBoolean, setAD_Client_ID, setAD_Org_ID, setClientOrg, setClientOrg, setCrossTenantSafe, setDoc, setDocWorkflowMgr, setIsActive, setProcessedOn, setReplication, setStandardDefaults, setUpdateable, setUpdatedBy, toInsertSQL, unlock, update_Tree, validForeignKeys
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface java.util.Comparator
reversed, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong
Methods inherited from interface org.compiere.model.I_M_ShippingTransaction
getAD_Client_ID, getAD_Org_ID, getCreated, getCreatedBy, getUpdated, getUpdatedBy, isActive, setAD_Org_ID, setIsActive
Methods inherited from interface org.compiere.model.I_Persistent
save
-
Constructor Details
-
MShippingTransaction
UUID based Constructor- Parameters:
ctx
- ContextM_ShippingTransaction_UU
- UUID keytrxName
- Transaction
-
MShippingTransaction
- Parameters:
ctx
-M_ShippingTransaction_ID
-trxName
-
-
MShippingTransaction
- Parameters:
ctx
-rs
-trxName
-
-
-
Method Details
-
getLines
- Parameters:
whereClause
-- Returns:
- array of MShippingTransactionLine
-
setErrorMessage
Set error message- Parameters:
errorMessage
-
-
getErrorMessage
- Returns:
- error message
-
processOnline
public boolean processOnline()Submit online shipping request (shipment, rate inquiry or void shipment)- Returns:
- true if success
-
getMShipper
- Returns:
- shipper
-
isInternational
public boolean isInternational()- Returns:
- true if this is an international shipment
-
getCurrencyCode
- Returns:
- currency ISO code
-
isPayBySender
public boolean isPayBySender()- Returns:
- true if freight charges will be pay by sender
-
getProductFreightID
public int getProductFreightID()- Returns:
- product id for freight charges
-
isPrintLabelAsImage
public boolean isPrintLabelAsImage()- Returns:
- true if shipping label is print as image
-
isPrintZebraLabel
public boolean isPrintZebraLabel()- Returns:
- true if shipping label is for printing via Zebra label printer
-
isPrintEltronLabel
public boolean isPrintEltronLabel()- Returns:
- true if shipping label is for printing via Eltron label printer
-
getPayorAccount
- Returns:
- payor account
-
getDutiesPayorAccount
- Returns:
- payor account for duties
-
getPayorCountryCode
- Returns:
- country code of payor
-
isCollect
public boolean isCollect()- Returns:
- true if freight charges is to be collected from receiver
-
is3rdParty
public boolean is3rdParty()- Returns:
- true if freight charges is pay by third party
-
getCommodityShipment
- Parameters:
M_Product_ID
-- Returns:
- X_M_CommodityShipment
-
getCommodityShipmentID
public int getCommodityShipmentID(int M_Product_ID) - Parameters:
M_Product_ID
-- Returns:
- M_CommodityShipment_ID
-
getCommodityDescription
- Parameters:
M_Product_ID
-- Returns:
- commodity shipment description
-
getHarmonizedCode
- Parameters:
M_Product_ID
-- Returns:
- harmonized code of community shipment
-
getExportLicenseNum
- Parameters:
M_Product_ID
-- Returns:
- export license number of commodity shipment
-
getCountryOfManufacture
- Parameters:
M_Product_ID
-- Returns:
- country code of manufacture country (from commodity shipment)
-
getSenderInfo
- Returns:
- sender details
-
getRecipientInfo
- Returns:
- recipient details
-