View source | Discuss this page | Page history | Printable version   

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

Contents

C_InvoiceLine

Contains the individual items or charges on an Invoice

This table contains the following columns:

Name Nullable Data Type Description
C_InvoiceLine_ID NVARCHAR2(32)A statement displaying one item or charge in an invoice.
AD_Client_ID NVARCHAR2(32)Client for this installation.
AD_Org_ID NVARCHAR2(32)Organizational entity within client
IsActive NCHAR(1)A flag indicating whether this record is available for use or de-activated.
Created NDATEThe date that this record is completed.
CreatedBy NVARCHAR2(32)User who created this records
Updated NDATEx not implemented
UpdatedBy NVARCHAR2(32)User who updated this records
C_Invoice_ID NVARCHAR2(32)A document listing products, quantities and prices, payment terms, etc.
C_OrderLine_ID YVARCHAR2(32)Purchase Order Line
M_InOutLine_ID YVARCHAR2(32)A statement displaying one item, charge, or movement in a shipment.
Line NNUMBER(10, 0)A line stating the position of this request in the document.
Description YNVARCHAR2(2000)A space to write additional related information.
Financial_Invoice_Line NCHAR(1)This flag will decide whether we are going to book the invoice line on directly general ledger or not.
Account_ID YVARCHAR2(32)The identification code used for accounting.
M_Product_ID YVARCHAR2(32)An item produced by a process.
QtyInvoiced NNUMBERThe total number of a product included in an invoice to a business partner.
PriceList NNUMBERThe official price of a product in a specified currency.
PriceActual NNUMBERThe price that will be paid for a specified item.
PriceLimit NNUMBERThe lowest price a specified item may be sold for.
LineNetAmt NNUMBERThe final amount of a specified line, based only on quantities and prices.
C_Charge_ID YVARCHAR2(32)A cost or expense incurred during business activity.
ChargeAmt YNUMBERThe amount of a cost or expense incurred during business activity.
C_UOM_ID YVARCHAR2(32)A non monetary unit of measure.
C_Tax_ID YVARCHAR2(32)The percentage of money requested by the government for this specified product or transaction.
S_ResourceAssignment_ID YVARCHAR2(32)x not implemented
TaxAmt YNUMBERThe total sum of money requested by the government of the specified transaction.
M_AttributeSetInstance_ID YVARCHAR2(32)An attribute associated with a product as part of an attribute set.
IsDescription NCHAR(1)if true, the line is just description and no transaction
QuantityOrder YNUMBERThe number of a certain item involved in the transaction, shown in units which differ from the standard UOM.
M_Product_Uom_Id YVARCHAR2(32)The unit of measure being used for the request.
C_Invoice_Discount_ID YVARCHAR2(32)null
C_Projectline_ID YVARCHAR2(32)Task or step in a project
M_Offer_ID YVARCHAR2(32)The ability to raise or lower prices.
PriceStd NNUMBERThe regular or normal price of a product in the respective price list.
Excludeforwithholding YCHAR(1)Exclude for Withholding
Iseditlinenetamt YCHAR(1)A flag used to allow the end-user to edit Line Net Amount field.
Taxbaseamt YNUMBERThe total sum on which taxes are added.

Other Info

Check constraints

These are the check constraints for this table:

top

Indexes

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

Non Unique

Unique

top

Columns

Invoice Line

The Invoice Line uniquely identifies a single line of an Invoice.

top

Client

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

top

Organization

Foreign key column to AD_Org table, (column: AD_Org_ID)


Validation Rule AD_Org show child organizations: It only shows the child organizations of the organization's header. With the following code:

 
AD_ISORGINCLUDED(ad_org.ad_org_id, @AD_ORG_ID@, ad_org.ad_client_id)<>-1 AND IsReady='Y'

top

Active

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.

top

Creation Date

The Created field indicates the date that this record was created.

top

Created By

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

top

Updated

The Updated field indicates the date that this record was updated.

top

Updated By

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

top

Invoice

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

top

Purchase Order Line

The Purchase Order Line is a unique identifier for a line in an order.

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

top

Goods Shipment Line

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

top

Line No.

Indicates the unique line for a document. It will also control the display order of the lines within a document.

top

Description

A description is limited to 255 characters.

top

Financial Invoice Line

This flag will decide whether we are going to book the invoice line on directly general ledger or not.

top

Account

Foreign key column to C_Glitem table, (column: C_Glitem_ID)


Reference Table C_GLItem : It is a general ledger item..


Validation Rule Financial Invoices GL Items: It is allowing only gl items that have enabled for financial invoice lines.. With the following code:

 
EnableInFinInvoices = 'Y'

Callout: SL_Invoice_Glitem

This element is linked to a callout.

Values populated for other fields is based on the glitem id changes in invoice line

It is implemented by org.openbravo.erpCommon.ad_callouts.SL_Invoice_Glitem Java class.

top

Product

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

Callout: SL_Invoice_Product

This element is linked to a callout.

It is implemented by org.openbravo.erpCommon.ad_callouts.SL_Invoice_Product Java class.

top

Invoiced Quantity

The Invoiced Quantity indicates the quantity of a product that have been invoiced.

Callout: SL_Invoice_Amt

This element is linked to a callout.

It is implemented by org.openbravo.erpCommon.ad_callouts.SL_Invoice_Amt Java class.

top

List Price

The List Price is the official price stated by the selected pricelist and the currency of the document.

top

Unit Price

The actual price indicates the price for a product in source currency.

Callout: SL_Invoice_Amt

This element is linked to a callout.

It is implemented by org.openbravo.erpCommon.ad_callouts.SL_Invoice_Amt Java class.

top

Price Limit

The Price Limit indicates the lowest price for a product stated in the Price List Currency.

top

Line Net Amount

Indicates the line net amount based on the quantity and the actual price. Any additional charges or freight are not included.

Callout: SL_Invoice_Amt

This element is linked to a callout.

It is implemented by org.openbravo.erpCommon.ad_callouts.SL_Invoice_Amt Java class.

top

Charge

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

Callout: SL_Invoice_Charge_Tax

This element is linked to a callout.

It is implemented by org.openbravo.erpCommon.ad_callouts.SL_Invoice_Charge_Tax Java class.

top

Charge Amount

The Charge Amount indicates the amount for an additional charge.

top

UOM

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

top

Tax

Foreign key column to C_Tax table, (column: C_Tax_ID)


Reference Table C_Tax Parent is NULL With the following where clause:

 
C_Tax.Parent_Tax_ID IS NULL


Validation Rule C_Tax IsSOTrx: Validate tax depending on is Sales or Purchase transaction. With the following code:

 
(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 element is linked to a callout.

It is implemented by org.openbravo.erpCommon.ad_callouts.SL_Invoice_Amt Java class.

top

Resource Assignment

The ID identifies a unique record

top

Tax Amount

The Tax Amount displays the total tax amount for a document.

top

Attribute Set Value

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

top

Description Only

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.

top

Order Quantity


Product quantity in the order uom.

Callout: SL_Invoice_Conversion

This element is linked to a callout.

It is implemented by org.openbravo.erpCommon.ad_callouts.SL_Invoice_Conversion Java class.

top

Order UOM

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


Reference Table M_Product_UOM With the following where clause:

 
M_Product_UOM.M_Product_ID = @M_Product_ID@


Callout: SL_Invoice_Conversion

This element is linked to a callout.

It is implemented by org.openbravo.erpCommon.ad_callouts.SL_Invoice_Conversion 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

The Standard Price indicates the standard or normal price for a product on this price list

top

Excludeforwithholding

top

Edit Line Amount

A flag used to allow the end-user to edit Line Net Amount field.

top

Alternate Taxable Amount

The Tax Base Amount indicates the base amount used for calculating the tax amount.

top

Related tables

Tables that link this table:

top

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

This page has been accessed 7,466 times. This page was last modified on 2 July 2011, at 20:46. Content is available under Creative Commons Attribution-ShareAlike 2.5 Spain License.