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/InvoiceLineV2

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#InvoiceLineV2


To the database table (C_InvoiceLine_V2) of this entity.



Property Column Constraints Type Description
id* C_Invoiceline_V2_ID Max Length: 32
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 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 java.util.Date The Created field indicates the date that this record was created.
createdBy Createdby ADUser The Created By field indicates the user who created this record.
updated Updated java.util.Date The Updated field indicates the date that this record was updated.
updatedBy Updatedby ADUser The Updated By field indicates the user who updated this record.
invoiceLine# C_InvoiceLine_ID Mandatory
InvoiceLine The Invoice Line uniquely identifies a single line of an Invoice.
invoice C_Invoice_ID Mandatory
Invoice The Invoice ID uniquely identifies an Invoice Document.
salesRepresentative SalesRep_ID ADUser Indicates the sales representative responsible for the transaction that the document specifies . A valid sales representative is a business partner marked as an employee and a sales representative.
businessPartner C_BPartner_ID Mandatory
BusinessPartner A Business Partner is anyone with whom you transact. This can include a customer, vendor, employee or any combination of these.
businessPartnerCategory C_BP_Group_ID Mandatory
BusinessPartnerCategory A way of grouping business partners together for classification and reporting purposes. Provides a method of defining certain defaults to be used when opening new business partners.
product M_Product_ID Product Identifies an item which is either purchased or sold in this organization.
productCategory M_Product_Category_ID Mandatory
ProductCategory Identifies the category which this product belongs to. Product categories are used for pricing.
invoiceDate DateInvoiced Mandatory
java.util.Date The Date Invoice indicates the date printed on the invoice.
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.
invoicedQuantity QtyInvoiced java.math.BigDecimal The Invoiced Quantity indicates the quantity of a product that have been invoiced.
listPrice PriceList Mandatory
java.math.BigDecimal The Net List Price is the official price stated by the selected pricelist and the currency of the document.
unitPrice PriceActual Mandatory
java.math.BigDecimal The actual price indicates the price for a product in source currency.
priceLimit PriceLimit Mandatory
java.math.BigDecimal The Net Price Limit indicates the lowest price for a product stated in the Price List Currency.
discount Discount java.lang.Long The Discount indicates the discount applied or taken as a percentage.
margin Margin java.math.BigDecimal The Margin indicates the margin for this product as a percentage of the limit price and selling price.
lineNetAmount LineNetAmt java.math.BigDecimal Indicates the line net amount based on the quantity and the actual price. Any additional charges or freight are not included.
lineListAmount LineListAmt java.math.BigDecimal
lineLimitAmount LineLimitAmt java.math.BigDecimal
lineDiscount LineDiscountAmt java.math.BigDecimal Indicates the discount for this line as an amount.
grossMargin LineOverLimitAmt java.math.BigDecimal
account Account_ID FinancialMgmtElementValue The (natural) account used

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.common.invoice;
 import java.math.BigDecimal;
 import java.util.Date;
 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.businesspartner.BusinessPartner;
 import org.openbravo.model.common.businesspartner.Category;
 import org.openbravo.model.common.enterprise.Organization;
 import org.openbravo.model.common.plm.Product;
 import org.openbravo.model.common.plm.ProductCategory;
 import org.openbravo.model.financialmgmt.accounting.coa.ElementValue;
  * Entity class for entity InvoiceLineV2 (stored in table C_InvoiceLine_V2).
  * NOTE: This class should not be instantiated directly. To instantiate this
  * class the {@link org.openbravo.base.provider.OBProvider} should be used.
 public class InvoiceLineV2 extends BaseOBObject implements Traceable, ClientEnabled, OrganizationEnabled, ActiveEnabled {
     private static final long serialVersionUID = 1L;
     public static final String TABLE_NAME = "C_InvoiceLine_V2";
     public static final String ENTITY_NAME = "InvoiceLineV2";
     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_INVOICELINE = "invoiceLine";
     public static final String PROPERTY_INVOICE = "invoice";
     public static final String PROPERTY_SALESREPRESENTATIVE = "salesRepresentative";
     public static final String PROPERTY_BUSINESSPARTNER = "businessPartner";
     public static final String PROPERTY_BUSINESSPARTNERCATEGORY = "businessPartnerCategory";
     public static final String PROPERTY_PRODUCT = "product";
     public static final String PROPERTY_PRODUCTCATEGORY = "productCategory";
     public static final String PROPERTY_INVOICEDATE = "invoiceDate";
     public static final String PROPERTY_ACCOUNTINGDATE = "accountingDate";
     public static final String PROPERTY_INVOICEDQUANTITY = "invoicedQuantity";
     public static final String PROPERTY_LISTPRICE = "listPrice";
     public static final String PROPERTY_UNITPRICE = "unitPrice";
     public static final String PROPERTY_PRICELIMIT = "priceLimit";
     public static final String PROPERTY_DISCOUNT = "discount";
     public static final String PROPERTY_MARGIN = "margin";
     public static final String PROPERTY_LINENETAMOUNT = "lineNetAmount";
     public static final String PROPERTY_LINELISTAMOUNT = "lineListAmount";
     public static final String PROPERTY_LINELIMITAMOUNT = "lineLimitAmount";
     public static final String PROPERTY_LINEDISCOUNT = "lineDiscount";
     public static final String PROPERTY_GROSSMARGIN = "grossMargin";
     public static final String PROPERTY_ACCOUNT = "account";
     public InvoiceLineV2() {
         setDefaultValue(PROPERTY_ACTIVE, true);
     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 InvoiceLine getInvoiceLine() {
         return (InvoiceLine) get(PROPERTY_INVOICELINE);
     public void setInvoiceLine(InvoiceLine invoiceLine) {
         set(PROPERTY_INVOICELINE, invoiceLine);
     public Invoice getInvoice() {
         return (Invoice) get(PROPERTY_INVOICE);
     public void setInvoice(Invoice invoice) {
         set(PROPERTY_INVOICE, invoice);
     public User getSalesRepresentative() {
         return (User) get(PROPERTY_SALESREPRESENTATIVE);
     public void setSalesRepresentative(User salesRepresentative) {
         set(PROPERTY_SALESREPRESENTATIVE, salesRepresentative);
     public BusinessPartner getBusinessPartner() {
         return (BusinessPartner) get(PROPERTY_BUSINESSPARTNER);
     public void setBusinessPartner(BusinessPartner businessPartner) {
         set(PROPERTY_BUSINESSPARTNER, businessPartner);
     public Category getBusinessPartnerCategory() {
         return (Category) get(PROPERTY_BUSINESSPARTNERCATEGORY);
     public void setBusinessPartnerCategory(Category businessPartnerCategory) {
         set(PROPERTY_BUSINESSPARTNERCATEGORY, businessPartnerCategory);
     public Product getProduct() {
         return (Product) get(PROPERTY_PRODUCT);
     public void setProduct(Product product) {
         set(PROPERTY_PRODUCT, product);
     public ProductCategory getProductCategory() {
         return (ProductCategory) get(PROPERTY_PRODUCTCATEGORY);
     public void setProductCategory(ProductCategory productCategory) {
         set(PROPERTY_PRODUCTCATEGORY, productCategory);
     public Date getInvoiceDate() {
         return (Date) get(PROPERTY_INVOICEDATE);
     public void setInvoiceDate(Date invoiceDate) {
         set(PROPERTY_INVOICEDATE, invoiceDate);
     public Date getAccountingDate() {
         return (Date) get(PROPERTY_ACCOUNTINGDATE);
     public void setAccountingDate(Date accountingDate) {
         set(PROPERTY_ACCOUNTINGDATE, accountingDate);
     public BigDecimal getInvoicedQuantity() {
         return (BigDecimal) get(PROPERTY_INVOICEDQUANTITY);
     public void setInvoicedQuantity(BigDecimal invoicedQuantity) {
         set(PROPERTY_INVOICEDQUANTITY, invoicedQuantity);
     public BigDecimal getListPrice() {
         return (BigDecimal) get(PROPERTY_LISTPRICE);
     public void setListPrice(BigDecimal listPrice) {
         set(PROPERTY_LISTPRICE, listPrice);
     public BigDecimal getUnitPrice() {
         return (BigDecimal) get(PROPERTY_UNITPRICE);
     public void setUnitPrice(BigDecimal unitPrice) {
         set(PROPERTY_UNITPRICE, unitPrice);
     public BigDecimal getPriceLimit() {
         return (BigDecimal) get(PROPERTY_PRICELIMIT);
     public void setPriceLimit(BigDecimal priceLimit) {
         set(PROPERTY_PRICELIMIT, priceLimit);
     public Long getDiscount() {
         return (Long) get(PROPERTY_DISCOUNT);
     public void setDiscount(Long discount) {
         set(PROPERTY_DISCOUNT, discount);
     public BigDecimal getMargin() {
         return (BigDecimal) get(PROPERTY_MARGIN);
     public void setMargin(BigDecimal margin) {
         set(PROPERTY_MARGIN, margin);
     public BigDecimal getLineNetAmount() {
         return (BigDecimal) get(PROPERTY_LINENETAMOUNT);
     public void setLineNetAmount(BigDecimal lineNetAmount) {
         set(PROPERTY_LINENETAMOUNT, lineNetAmount);
     public BigDecimal getLineListAmount() {
         return (BigDecimal) get(PROPERTY_LINELISTAMOUNT);
     public void setLineListAmount(BigDecimal lineListAmount) {
         set(PROPERTY_LINELISTAMOUNT, lineListAmount);
     public BigDecimal getLineLimitAmount() {
         return (BigDecimal) get(PROPERTY_LINELIMITAMOUNT);
     public void setLineLimitAmount(BigDecimal lineLimitAmount) {
         set(PROPERTY_LINELIMITAMOUNT, lineLimitAmount);
     public BigDecimal getLineDiscount() {
         return (BigDecimal) get(PROPERTY_LINEDISCOUNT);
     public void setLineDiscount(BigDecimal lineDiscount) {
         set(PROPERTY_LINEDISCOUNT, lineDiscount);
     public BigDecimal getGrossMargin() {
         return (BigDecimal) get(PROPERTY_GROSSMARGIN);
     public void setGrossMargin(BigDecimal grossMargin) {
         set(PROPERTY_GROSSMARGIN, grossMargin);
     public ElementValue getAccount() {
         return (ElementValue) get(PROPERTY_ACCOUNT);
     public void setAccount(ElementValue account) {
         set(PROPERTY_ACCOUNT, account);

Retrieved from ""

This page has been accessed 293 times. This page was last modified on 5 August 2014, at 13:54. Content is available under Creative Commons Attribution-ShareAlike 2.5 Spain License.