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

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

Search

ERP/3.0/Developers Guide/Database Model/org.openbravo.model.common.invoice/C InvoiceLine

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/Database Model/org.openbravo.model.common.invoice


Contents

C_InvoiceLine

This table contains the following columns:

Name Nullable Data Type Description


QtyInvoiced No DECIMAL The Invoiced Quantity indicates the quantity of a product that have been invoiced.
M_Product_ID Yes VARCHAR (32) Identifies an item which is either purchased or sold in this organization.
M_Product_Uom_Id Yes VARCHAR (32) Alternative order UOM for the product.
QuantityOrder Yes DECIMAL

Product quantity in the order uom.

IsDescription No CHAR (1) If a line is Description Only, e.g. Product Inventory is not corrected. No accounting transactions are created and the amount or totals are not included in the document. This for including descriptional detail lines, e.g. for an Work Order.
M_AttributeSetInstance_ID Yes VARCHAR (32) The values of the actual Product Attributes
TaxAmt Yes DECIMAL The Tax Amount displays the total tax amount for a document.
S_ResourceAssignment_ID Yes VARCHAR (32) The ID identifies a unique record
C_Invoice_ID No VARCHAR (32) The Invoice ID uniquely identifies an Invoice Document.
Line No DECIMAL (10,0) Indicates the unique line for a document. It will also control the display order of the lines within a document.
LineNetAmt No DECIMAL Indicates the line net amount based on the quantity and the actual price. Any additional charges or freight are not included.
C_Invoice_Discount_ID Yes VARCHAR (32) The ID identifies a unique discount for the invoice
C_Projectline_ID Yes VARCHAR (32) The Project Line indicates a unique project line.
M_Offer_ID Yes VARCHAR (32) Promotion or Discount applied to a particular line (product) automatically by the system.
PriceStd No DECIMAL Net unit price before applying this promotion. In case multiple promotions are applied in cascade, this price is the one after applying all promotions with more priority than current one.

This field is populated in case the used price list does not include taxes.

grosspricestd No DECIMAL
Excludeforwithholding Yes CHAR (1)
Taxbaseamt Yes DECIMAL The Tax Base Amount indicates the base amount used for calculating the tax amount.
Iseditlinenetamt Yes CHAR (1) A flag used to allow the end-user to edit Line Net Amount field.
Financial_Invoice_Line No CHAR (1) This flag will decide whether we are going to book the invoice line on directly general ledger or not.
Account_ID Yes VARCHAR (32) The (natural) account used
Line_Gross_Amount Yes DECIMAL This is the total amount against a line ( i.e product price * quantity + taxes )
Gross_Unit_Price Yes DECIMAL This is the price that is provided when the price is inclusive of taxes.
Grosspricelist No DECIMAL The Gross List Price is the official price stated by the selected tax included pricelist and the currency of the document.
C_Bpartner_ID Yes VARCHAR (32) A Business Partner is anyone with whom you transact. This can include a customer, vendor, employee or any combination of these.
Periodnumber Yes DECIMAL Set here the number of periods to be used when deferring the revenue
DefPlanType Yes VARCHAR (60) Set the type of plan to be used when deferring revenue
A_Asset_ID Yes VARCHAR (32) Any item of economic value owned by the corporation, especially that which could be converted to cash.
C_Project_ID Yes VARCHAR (32) Identifier of a project defined within the Project & Service Management module.
C_Costcenter_ID Yes VARCHAR (32) Division that adds to the cost of an organization. Internal structure for cost allocation.
IsDeferred No CHAR (1) When flagged revenue of the product will be deferred using the plan and the number of periods
User1_ID Yes VARCHAR (32) The user defined element displays the optional elements that have been defined for this account combination.
C_Period_ID Yes VARCHAR (32) The Period indicates an exclusive range of dates for a calendar.
User2_ID Yes VARCHAR (32) The user defined element displays the optional elements that have been defined for this account combination.
Explode Yes CHAR (1) Explode the BOM product
BOM_Parent_ID Yes VARCHAR (32)
Match_Lccosts Yes CHAR (1)
Created No TIMESTAMP (7) The Created field indicates the date that this record was created.
C_InvoiceLine_ID No VARCHAR (32) The Invoice Line uniquely identifies a single line of an Invoice.
AD_Client_ID No VARCHAR (32) A Client is a company or a legal entity. You cannot share data between Clients.
IsActive No CHAR (1) 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.

AD_Org_ID No VARCHAR (32) An organization is a unit of your client or legal entity - examples are store, department. You can share data between organizations.
CreatedBy No VARCHAR (32) The Created By field indicates the user who created this record.
UpdatedBy No VARCHAR (32) The Updated By field indicates the user who updated this record.
C_OrderLine_ID Yes VARCHAR (32) A unique identifier and a reference to a sales order line (product).
Description Yes NVARCHAR (2000) A description is limited to 255 characters.
PriceList No DECIMAL The Net List Price is the official price stated by the selected pricelist and the currency of the document.
C_Charge_ID Yes VARCHAR (32) The Charge indicates a type of Charge (Handling, Shipping, Restocking)
ChargeAmt Yes DECIMAL The Charge Amount indicates the amount for an additional charge.
C_UOM_ID Yes VARCHAR (32) The UOM defines a unique non monetary unit of measure
M_InOutLine_ID Yes VARCHAR (32) The Goods Shipment Line indicates a unique line in a Shipment document
PriceLimit No DECIMAL The Net Price Limit indicates the lowest price for a product stated in the Price List Currency.
Updated No TIMESTAMP (7) The Updated field indicates the date that this record was updated.
PriceActual No DECIMAL The actual price indicates the price for a product in source currency.
C_Tax_ID Yes VARCHAR (32) The Tax indicates the type of tax for this document line.

Columns

Invoiced Quantity


Callout: SL_Invoice_Amt

This column has a callout associated.

It is implemented by [1] Java Class.

top


Product


Foreign key column to M_Product table, (column: M_Product_ID)

Callout: SL_Invoice_Product

This column has a callout associated.

It is implemented by [2] Java Class.

top


Order UOM


Foreign key column to M_Product_UOM table, (column: M_Product_Uom_Id)

Callout: SL_Invoice_Conversion

This column has a callout associated.

It is implemented by [3] Java Class.

top


Order Quantity



Callout: SL_Invoice_Conversion

This column has a callout associated.

It is implemented by [4] Java Class.

top


Description Only



top


Attribute Set Value


Foreign key column to M_AttributeSetInstance table, (column: M_AttributeSetInstance_ID)

top


Tax Amount



top


Resource Assignment


Foreign key column to S_ResourceAssignment table, (column: S_ResourceAssignment_ID)

top


Invoice

Foreign key column to C_Invoice table, (column: C_Invoice_ID)

top


Line No.


top


Line Net Amount


Callout: SL_Invoice_Amt

This column has a callout associated.

It is implemented by [5] Java Class.

top


Invoice discount


Foreign key column to C_Invoice_Discount table, (column: C_Invoice_Discount_ID)

top


Project Line


Foreign key column to C_ProjectLine table, (column: C_ProjectLine_ID)

top


Price Adjustment


Foreign key column to M_Offer table, (column: M_Offer_ID)

top


Standard Price



top


Base Gross Unit Price



top


Excludeforwithholding



top


Taxable Amount



top


Edit Line Amount



top


Financial Invoice Line



top


Account


Foreign key column to C_Glitem table, (column: C_Glitem_ID) It has a validation "Financial Invoices GL Items", with the following code

EnableInFinInvoices = 'Y'

Callout: SL_Invoice_Glitem

This column has a callout associated. Values populated for other fields is based on the glitem id changes in invoice line It is implemented by [6] Java Class.

top


Gross Amount



top


Gross Unit Price


Callout: SL_Invoice_Amt

This column has a callout associated.

It is implemented by [7] Java Class.

top


Gross List Price



top


Business Partner


Foreign key column to C_BPartner table, (column: C_BPartner_ID)

top


Period Number



top


Deferred Plan Type



List values: Accruals and Deferrals Plan Types

The allowed values for this list are:

top


Asset


Foreign key column to A_Asset table, (column: A_Asset_ID)

top


Project


Foreign key column to C_Project table, (column: C_Project_ID)

top


Costcenter


Foreign key column to C_Costcenter table, (column: C_Costcenter_ID)

top


Deferred



top


1st Dimension


Foreign key column to User1 table, (column: User1_ID)

top


Period


Foreign key column to C_Period table, (column: C_Period_ID) It has a validation "C_Period - Org Calendar Period", with the following code

 exists (select 1 from c_year where c_period.c_year_id = c_year.c_year_id and (select c_calendar_id from ad_org where ad_org_id = ad_org_getcalendarowner (@AD_Org_ID@)) = c_year.c_calendar_id) and periodtype = 'S'

top


2nd Dimension


Foreign key column to User2 table, (column: User2_ID)

top


Explode



top


BOM_Parent_ID


Foreign key column to C_InvoiceLine table, (column: C_InvoiceLine_ID)

top


Match LC Costs



top


Creation Date



top


Invoice Line



top


Client


Foreign key column to AD_Client table, (column: AD_Client_ID)

top


Active



top


Organization


Foreign key column to AD_Org table, (column: AD_Org_ID) It has a validation "AD_Org show child organizations", with the following code

AD_ISORGINCLUDED(ad_org.ad_org_id, CASE WHEN (@Parent_AD_Org@ IS NULL OR @Parent_AD_Org@ = ) THEN @AD_ORG_ID@ ELSE @Parent_AD_Org@ END, ad_org.ad_client_id)<>-1 AND IsReady='Y'

top


Created By


Foreign key column to AD_User table, (column: AD_User_ID)

top


Updated By


Foreign key column to AD_User table, (column: AD_User_ID)

top


Sales Order Line


Foreign key column to C_OrderLine table, (column: C_OrderLine_ID)

top


Description



top


List Price



top


Charge


Foreign key column to C_Charge table, (column: C_Charge_ID)

Callout: SL_Invoice_Charge_Tax

This column has a callout associated.

It is implemented by [8] Java Class.

top


Charge Amount



top


UOM


Foreign key column to C_UOM table, (column: C_UOM_ID)

top


Goods Shipment Line


Foreign key column to M_InOutLine table, (column: M_InOutLine_ID)

top


Price Limit



top


Updated



top


Unit Price


Callout: SL_Invoice_Amt

This column has a callout associated.

It is implemented by [9] Java Class.

top


Tax


Foreign key column to C_Tax table, (column: C_Tax_ID) It has a validation "C_Tax_IsSOTrx_Date", with the following code

C_TAX.VALIDFROM<=COALESCE(@DateInvoiced@,@DateOrdered@) AND (C_TAX.SOPOTYPE =(CASE WHEN @IsSOTrx@ = 'Y' THEN 'S' ELSE 'P' END) OR C_TAX.SOPOTYPE = 'B') AND C_TAX.AD_CLIENT_ID=@AD_CLIENT_ID@ AND C_TAX.C_TAX_ID=(CASE WHEN @IsSOTrx@ = 'Y' AND EXISTS(SELECT 1 FROM AD_ORGINFO WHERE ISTAXUNDEDUCTABLE='Y' AND AD_ORG_ID=@AD_ORG_ID@) THEN (SELECT C_TAX_ID FROM AD_ORGINFO WHERE ISTAXUNDEDUCTABLE='Y' AND AD_ORG_ID=@AD_ORG_ID@) ELSE C_TAX.C_TAX_ID END)

Callout: SL_Invoice_Amt

This column has a callout associated.

It is implemented by [10] Java Class.

top


Other Info

Indices

These are the indices for this table (for each index there is a list of all the columns included within it):

top

Check Constraints

These are the check constraints for this table:

top

Back button.png   Back to org.openbravo.model.common.invoice

Retrieved from "http://wiki.openbravo.com/wiki/ERP/3.0/Developers_Guide/Database_Model/org.openbravo.model.common.invoice/C_InvoiceLine"

This page has been accessed 1,977 times. This page was last modified on 1 September 2016, at 02:29. Content is available under Creative Commons Attribution-ShareAlike 2.5 Spain License.