View source | Discuss this page | Page history | Printable version   
Main Page
Upload file
What links here
Recent changes

PDF Books
Add page
Show collection (0 pages)
Collections help


ERP/3.0/Developers Guide/Reference/Entity Model/LandedCostCost

This article is protected against manual editing because it is automatically generated from Openbravo meta-data. Learn more about writing and translating such documents.
Back button.png   Back to ERP/3.0/Developers_Guide/Reference/Entity_Model#LandedCostCost


To the database table (M_LC_Cost) of this entity.



Property Column Constraints Type Description
id* M_LC_Cost_ID Mandatory
Max Length: 32
java.lang.String Each Landed Cost amount to be included in the Landed Cost document.
client AD_Client_ID Mandatory
ADClient A Client is a company or a legal entity. You cannot share data between Clients.
organization AD_Org_ID Mandatory
Organization An organization is a unit of your client or legal entity - examples are store, department. You can share data between organizations.
active Isactive Mandatory
java.lang.Boolean There are two methods of making records unavailable in the system: One is to delete the record, the other is to de-activate the record. A de-activated record is not available for selection, but available for reporting. There are two reasons for de-activating and not deleting records:

(1) The system requires the record for auditing purposes. (2) The record is referenced by other records. E.g., you cannot delete a Business Partner, if there are existing invoices for it. By de-activating the Business Partner you prevent it from being used in future transactions.

creationDate Created Mandatory
java.util.Date The Created field indicates the date that this record was created.
createdBy Createdby Mandatory
ADUser The Created By field indicates the user who created this record.
updated Updated Mandatory
java.util.Date The Updated field indicates the date that this record was updated.
updatedBy Updatedby Mandatory
ADUser The Updated By field indicates the user who updated this record.
landedCost# M_Landedcost_ID LandedCost Document that relates Landed Costs like Freights or Custom Taxes to Receipts
goodsShipment# M_Inout_ID MaterialMgmtShipmentInOut The Shipment ID indicates the unique document for this shipment.
landedCostType M_Lc_Type_ID Mandatory
LandedCostType Defines a type of Landed Cost Amount that can be assigned to a Receipt
invoiceLine C_Invoiceline_ID InvoiceLine The Invoice Line uniquely identifies a single line of an Invoice.
amount# Amount Mandatory
landedCostDistributionAlgorithm M_Lc_Distribution_Alg_ID Mandatory
LandedCostDistributionAlgorithm Identifies the Algorithm to be used to distribute the Landed Cost amounts through all the Receipt Lines.
description Description Max Length: 2000
java.lang.String A description is limited to 255 characters.
currency C_Currency_ID Mandatory
Currency Indicates the currency to be used when processing this document.
matched IsMatched Mandatory
java.lang.Boolean Determines that the Landed Cost Cost is completely matched and processed.
isMatchingAdjusted IsMatchingAdjusted Mandatory
java.lang.Boolean When checked the differences in the Matched documents are processed creating a Cost Adjustment
posted Posted Max Length: 1
java.lang.String An accounting status button that indicates if the transaction has already been posted to the general ledger or not. When doing the accounting manually this button can be used to post or unpost the transaction from the general ledger by hand.
processNow Processing java.lang.Boolean When this field is set as 'Y' a process is being performed on this record.
accountingDate Dateacct Mandatory
java.util.Date The date this transaction is recorded on in the general ledger. This date also indicates which accounting period within the fiscal year this transaction will be part of.
cancelMatching Cancel_Matching java.lang.Boolean Process that cancels the Matching of the Cost. In case the difference is cost adjusted the generated Cost Adjustment is canceled.
lineNo Line Mandatory
java.lang.Long Indicates the unique line for a document. It will also control the display order of the lines within a document.
documentType C_Doctype_ID DocumentType The Document Type determines document sequence and processing rules
matchingCostAdjustment Matching_Costadjustment_ID CostAdjustment
processMatching Process_Matching java.lang.Boolean
matchingAmount Matching_Amt java.math.BigDecimal
processed Processed Mandatory
java.lang.Boolean The Processed checkbox indicates that a document has been processed.
landedCostMatchedList LandedCostMatched
landedCostReceiptLineAmtList LandedCostReceiptLineAmt

Java Entity Class

  * The contents of this file are subject to the Openbravo  Public  License
  * Version  1.1  (the  "License"),  being   the  Mozilla   Public  License
  * Version 1.1  with a permitted attribution clause; you may not  use this
  * file except in compliance with the License. You  may  obtain  a copy of
  * the License at
  * Software distributed under the License  is  distributed  on  an "AS IS"
  * basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the
  * License for the specific  language  governing  rights  and  limitations
  * under the License.
  * The Original Code is Openbravo ERP.
  * The Initial Developer of the Original Code is Openbravo SLU
  * All portions are Copyright (C) 2008-2014 Openbravo SLU
  * All Rights Reserved.
  * Contributor(s):  ______________________________________.
 package org.openbravo.model.materialmgmt.cost;
 import java.math.BigDecimal;
 import java.util.ArrayList;
 import java.util.Date;
 import java.util.List;
 import org.openbravo.base.structure.ActiveEnabled;
 import org.openbravo.base.structure.BaseOBObject;
 import org.openbravo.base.structure.ClientEnabled;
 import org.openbravo.base.structure.OrganizationEnabled;
 import org.openbravo.base.structure.Traceable;
 import org.openbravo.model.common.currency.Currency;
 import org.openbravo.model.common.enterprise.DocumentType;
 import org.openbravo.model.common.enterprise.Organization;
 import org.openbravo.model.common.invoice.InvoiceLine;
 import org.openbravo.model.materialmgmt.transaction.ShipmentInOut;
  * Entity class for entity LandedCostCost (stored in table M_LC_Cost).
  * NOTE: This class should not be instantiated directly. To instantiate this
  * class the {@link org.openbravo.base.provider.OBProvider} should be used.
 public class LandedCostCost extends BaseOBObject implements Traceable, ClientEnabled, OrganizationEnabled, ActiveEnabled {
     private static final long serialVersionUID = 1L;
     public static final String TABLE_NAME = "M_LC_Cost";
     public static final String ENTITY_NAME = "LandedCostCost";
     public static final String PROPERTY_ID = "id";
     public static final String PROPERTY_CLIENT = "client";
     public static final String PROPERTY_ORGANIZATION = "organization";
     public static final String PROPERTY_ACTIVE = "active";
     public static final String PROPERTY_CREATIONDATE = "creationDate";
     public static final String PROPERTY_CREATEDBY = "createdBy";
     public static final String PROPERTY_UPDATED = "updated";
     public static final String PROPERTY_UPDATEDBY = "updatedBy";
     public static final String PROPERTY_LANDEDCOST = "landedCost";
     public static final String PROPERTY_GOODSSHIPMENT = "goodsShipment";
     public static final String PROPERTY_LANDEDCOSTTYPE = "landedCostType";
     public static final String PROPERTY_INVOICELINE = "invoiceLine";
     public static final String PROPERTY_AMOUNT = "amount";
     public static final String PROPERTY_LANDEDCOSTDISTRIBUTIONALGORITHM = "landedCostDistributionAlgorithm";
     public static final String PROPERTY_DESCRIPTION = "description";
     public static final String PROPERTY_CURRENCY = "currency";
     public static final String PROPERTY_MATCHED = "matched";
     public static final String PROPERTY_ISMATCHINGADJUSTED = "isMatchingAdjusted";
     public static final String PROPERTY_POSTED = "posted";
     public static final String PROPERTY_PROCESSNOW = "processNow";
     public static final String PROPERTY_ACCOUNTINGDATE = "accountingDate";
     public static final String PROPERTY_CANCELMATCHING = "cancelMatching";
     public static final String PROPERTY_LINENO = "lineNo";
     public static final String PROPERTY_DOCUMENTTYPE = "documentType";
     public static final String PROPERTY_MATCHINGCOSTADJUSTMENT = "matchingCostAdjustment";
     public static final String PROPERTY_PROCESSMATCHING = "processMatching";
     public static final String PROPERTY_MATCHINGAMOUNT = "matchingAmount";
     public static final String PROPERTY_PROCESSED = "processed";
     public static final String PROPERTY_LANDEDCOSTMATCHEDLIST = "landedCostMatchedList";
     public static final String PROPERTY_LANDEDCOSTRECEIPTLINEAMTLIST = "landedCostReceiptLineAmtList";
     public LandedCostCost() {
         setDefaultValue(PROPERTY_ACTIVE, true);
         setDefaultValue(PROPERTY_CREATIONDATE, new Date());
         setDefaultValue(PROPERTY_UPDATED, new Date());
         setDefaultValue(PROPERTY_MATCHED, false);
         setDefaultValue(PROPERTY_ISMATCHINGADJUSTED, false);
         setDefaultValue(PROPERTY_POSTED, "N");
         setDefaultValue(PROPERTY_PROCESSNOW, false);
         setDefaultValue(PROPERTY_CANCELMATCHING, false);
         setDefaultValue(PROPERTY_PROCESSMATCHING, false);
         setDefaultValue(PROPERTY_PROCESSED, false);
         setDefaultValue(PROPERTY_LANDEDCOSTMATCHEDLIST, new ArrayList<Object>());
         setDefaultValue(PROPERTY_LANDEDCOSTRECEIPTLINEAMTLIST, new ArrayList<Object>());
     public String getEntityName() {
         return ENTITY_NAME;
     public String getId() {
         return (String) get(PROPERTY_ID);
     public void setId(String id) {
         set(PROPERTY_ID, id);
     public Client getClient() {
         return (Client) get(PROPERTY_CLIENT);
     public void setClient(Client client) {
         set(PROPERTY_CLIENT, client);
     public Organization getOrganization() {
         return (Organization) get(PROPERTY_ORGANIZATION);
     public void setOrganization(Organization organization) {
         set(PROPERTY_ORGANIZATION, organization);
     public Boolean isActive() {
         return (Boolean) get(PROPERTY_ACTIVE);
     public void setActive(Boolean active) {
         set(PROPERTY_ACTIVE, active);
     public Date getCreationDate() {
         return (Date) get(PROPERTY_CREATIONDATE);
     public void setCreationDate(Date creationDate) {
         set(PROPERTY_CREATIONDATE, creationDate);
     public User getCreatedBy() {
         return (User) get(PROPERTY_CREATEDBY);
     public void setCreatedBy(User createdBy) {
         set(PROPERTY_CREATEDBY, createdBy);
     public Date getUpdated() {
         return (Date) get(PROPERTY_UPDATED);
     public void setUpdated(Date updated) {
         set(PROPERTY_UPDATED, updated);
     public User getUpdatedBy() {
         return (User) get(PROPERTY_UPDATEDBY);
     public void setUpdatedBy(User updatedBy) {
         set(PROPERTY_UPDATEDBY, updatedBy);
     public LandedCost getLandedCost() {
         return (LandedCost) get(PROPERTY_LANDEDCOST);
     public void setLandedCost(LandedCost landedCost) {
         set(PROPERTY_LANDEDCOST, landedCost);
     public ShipmentInOut getGoodsShipment() {
         return (ShipmentInOut) get(PROPERTY_GOODSSHIPMENT);
     public void setGoodsShipment(ShipmentInOut goodsShipment) {
         set(PROPERTY_GOODSSHIPMENT, goodsShipment);
     public LandedCostType getLandedCostType() {
         return (LandedCostType) get(PROPERTY_LANDEDCOSTTYPE);
     public void setLandedCostType(LandedCostType landedCostType) {
         set(PROPERTY_LANDEDCOSTTYPE, landedCostType);
     public InvoiceLine getInvoiceLine() {
         return (InvoiceLine) get(PROPERTY_INVOICELINE);
     public void setInvoiceLine(InvoiceLine invoiceLine) {
         set(PROPERTY_INVOICELINE, invoiceLine);
     public BigDecimal getAmount() {
         return (BigDecimal) get(PROPERTY_AMOUNT);
     public void setAmount(BigDecimal amount) {
         set(PROPERTY_AMOUNT, amount);
     public LCDistributionAlgorithm getLandedCostDistributionAlgorithm() {
         return (LCDistributionAlgorithm) get(PROPERTY_LANDEDCOSTDISTRIBUTIONALGORITHM);
     public void setLandedCostDistributionAlgorithm(LCDistributionAlgorithm landedCostDistributionAlgorithm) {
         set(PROPERTY_LANDEDCOSTDISTRIBUTIONALGORITHM, landedCostDistributionAlgorithm);
     public String getDescription() {
         return (String) get(PROPERTY_DESCRIPTION);
     public void setDescription(String description) {
         set(PROPERTY_DESCRIPTION, description);
     public Currency getCurrency() {
         return (Currency) get(PROPERTY_CURRENCY);
     public void setCurrency(Currency currency) {
         set(PROPERTY_CURRENCY, currency);
     public Boolean isMatched() {
         return (Boolean) get(PROPERTY_MATCHED);
     public void setMatched(Boolean matched) {
         set(PROPERTY_MATCHED, matched);
     public Boolean isMatchingAdjusted() {
         return (Boolean) get(PROPERTY_ISMATCHINGADJUSTED);
     public void setMatchingAdjusted(Boolean isMatchingAdjusted) {
         set(PROPERTY_ISMATCHINGADJUSTED, isMatchingAdjusted);
     public String getPosted() {
         return (String) get(PROPERTY_POSTED);
     public void setPosted(String posted) {
         set(PROPERTY_POSTED, posted);
     public Boolean isProcessNow() {
         return (Boolean) get(PROPERTY_PROCESSNOW);
     public void setProcessNow(Boolean processNow) {
         set(PROPERTY_PROCESSNOW, processNow);
     public Date getAccountingDate() {
         return (Date) get(PROPERTY_ACCOUNTINGDATE);
     public void setAccountingDate(Date accountingDate) {
         set(PROPERTY_ACCOUNTINGDATE, accountingDate);
     public Boolean isCancelMatching() {
         return (Boolean) get(PROPERTY_CANCELMATCHING);
     public void setCancelMatching(Boolean cancelMatching) {
         set(PROPERTY_CANCELMATCHING, cancelMatching);
     public Long getLineNo() {
         return (Long) get(PROPERTY_LINENO);
     public void setLineNo(Long lineNo) {
         set(PROPERTY_LINENO, lineNo);
     public DocumentType getDocumentType() {
         return (DocumentType) get(PROPERTY_DOCUMENTTYPE);
     public void setDocumentType(DocumentType documentType) {
         set(PROPERTY_DOCUMENTTYPE, documentType);
     public CostAdjustment getMatchingCostAdjustment() {
         return (CostAdjustment) get(PROPERTY_MATCHINGCOSTADJUSTMENT);
     public void setMatchingCostAdjustment(CostAdjustment matchingCostAdjustment) {
         set(PROPERTY_MATCHINGCOSTADJUSTMENT, matchingCostAdjustment);
     public Boolean isProcessMatching() {
         return (Boolean) get(PROPERTY_PROCESSMATCHING);
     public void setProcessMatching(Boolean processMatching) {
         set(PROPERTY_PROCESSMATCHING, processMatching);
     public BigDecimal getMatchingAmount() {
         return (BigDecimal) get(PROPERTY_MATCHINGAMOUNT);
     public void setMatchingAmount(BigDecimal matchingAmount) {
         set(PROPERTY_MATCHINGAMOUNT, matchingAmount);
     public Boolean isProcessed() {
         return (Boolean) get(PROPERTY_PROCESSED);
     public void setProcessed(Boolean processed) {
         set(PROPERTY_PROCESSED, processed);
     public List<LCMatched> getLandedCostMatchedList() {
       return (List<LCMatched>) get(PROPERTY_LANDEDCOSTMATCHEDLIST);
     public void setLandedCostMatchedList(List<LCMatched> landedCostMatchedList) {
         set(PROPERTY_LANDEDCOSTMATCHEDLIST, landedCostMatchedList);
     public List<LCReceiptLineAmt> getLandedCostReceiptLineAmtList() {
     public void setLandedCostReceiptLineAmtList(List<LCReceiptLineAmt> landedCostReceiptLineAmtList) {
         set(PROPERTY_LANDEDCOSTRECEIPTLINEAMTLIST, landedCostReceiptLineAmtList);

Retrieved from ""

This page has been accessed 312 times. This page was last modified on 2 February 2015, at 14:02. Content is available under Creative Commons Attribution-ShareAlike 2.5 Spain License.