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

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

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_Invoice

This table contains the following columns:

Name Nullable Data Type Description


User1_ID Yes VARCHAR (32) The user defined element displays the optional elements that have been defined for this account combination.
User2_ID Yes VARCHAR (32) The user defined element displays the optional elements that have been defined for this account combination.
DateAcct No TIMESTAMP (7) 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.
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.

C_Activity_ID Yes VARCHAR (32) Activities indicate tasks that are performed and used to utilize Activity based Costing
A_Asset_ID Yes VARCHAR (32) Any item of economic value owned by the corporation, especially that which could be converted to cash.
C_BPartner_ID No VARCHAR (32) A Business Partner is anyone with whom you transact. This can include a customer, vendor, employee or any combination of these.
C_Alternate_Location_ID Yes VARCHAR (32) Different delivery location where to deliver the order. This location does not have to be part of business partner locations. Used just once, so no need to store it as part of the business partner locations.
Calculate_Promotions Yes VARCHAR (1)
Iscashvat No CHAR (1) Cash VAT tax rate
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.
AD_Client_ID No VARCHAR (32) A Client is a company or a legal entity. You cannot share data between Clients.
CopyFrom Yes CHAR (1) Copy lines (products) from another document of the same type.
C_Costcenter_ID Yes VARCHAR (32) Division that adds to the cost of an organization. Internal structure for cost allocation.
CreateFrom Yes CHAR (1) A process that allows the user to copy lines (products) from an existing document different from the one being copied into. For example, in case of entering a new Goods Shipment, the user can copy lines (products) from an existing Sales Order or Sales Invoice.
Createfromorders Yes CHAR (1) A process that allows the user to copy lines (products) from an existing document different from the one being copied into. For example,the user can copy lines (products) from an existing Sales Order or Purchase Order.
Createfrominouts Yes CHAR (1) A process that allows the user to copy lines (products) from an existing document different from the one being copied into. For example,the user can copy lines (products) from an existing Goods Shipment/Receipt.
CreatedBy No VARCHAR (32) The Created By field indicates the user who created this record.
Created No TIMESTAMP (7) The Created field indicates the date that this record was created.
C_Currency_ID No VARCHAR (32) Indicates the currency to be used when processing this document.
DatePrinted Yes TIMESTAMP (7) Indicates the Date that a document was printed.
Daysoutstanding Yes DECIMAL
DaysTillDue No DECIMAL Number of days left for the next due date
Description Yes NVARCHAR (255) A description is limited to 255 characters.
DocAction No VARCHAR (60)

You find the current status in the Document Status field. The options are listed in a popup

DocumentNo No NVARCHAR (30) The document number is usually automatically generated by the system and determined by the document type of the document. If the document is not saved, the preliminary number is displayed in "<>". If the document type of your document has no automatic document sequence defined, the field will be empty when creating a new document. This is for documents which usually have an external number (like vendor invoice). If you leave the field empty, the system will generate a document number for you. The document sequence used for this fallback number is defined in the "Document Sequence" window with the name "DocumentNo_<TableName>", where TableName is the actual name of the table inside the database (e.g. C_Order).
DocStatus No VARCHAR (60) The Document Status indicates the status of a document at this time. To change the status of a document, use one of the buttons usually located at the bottom of the document window.
C_DocType_ID No VARCHAR (32) The Document Type determines document sequence and processing rules
DueAmt No DECIMAL Total amount due
EM_APRM_Addpayment Yes CHAR (1) Launches a process to add a payment to the selected invoice.
EM_APRM_Processinvoice Yes VARCHAR (60)
Einvoice_ExternalID Yes VARCHAR (120) Reference to the e-invoice document in an external system
Einvoice_Generated Yes TIMESTAMP (7) When the e-invoice document was generated
Einvoice_Send_Status Yes VARCHAR (60)
Einvoice_Sent Yes TIMESTAMP (7) Date when the e-invoice document was sent to an external system
Einvoice_Status Yes VARCHAR (60) The status of the e-invoice generation
BPartner_ExtRef Yes NVARCHAR (256) This field stores the business partner reference to an external CRM system. This is useful only when the business partner management is done outside Openbravo. In this case Openbravo will internally use the anonymous customer but it will track the real customer in the external system through this field.
FIN_Payment_Priority_ID Yes VARCHAR (32) Sets the priority of the payment plans generated when processing the invoice or order.

The distribution algorithm will be driven by this priority. The pending payments for order or payments will be displayed ordered by the payment priority first and then by the due date.

Finalsettlement Yes TIMESTAMP (7)
GenerateTo Yes CHAR (1) A button that creates documents
GrandTotal No DECIMAL The Grand Total displays the total amount including Tax and Freight in document currency
C_Invoice_ID No VARCHAR (32) The Invoice ID uniquely identifies an Invoice Document.
DateInvoiced No TIMESTAMP (7) The Date Invoice indicates the date printed on the invoice.
LastCalculatedOnDate Yes TIMESTAMP (7) Last Calculated On Date for payment monitor
DateOrdered Yes TIMESTAMP (7) Indicates the Date an item was ordered.
POReference Yes NVARCHAR (20) This can be used to input a reference for this specific transaction. For example, a Purchase Order number can be input on a Sales Order for easier reference.
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.
OutstandingAmt No DECIMAL Outstanding Amount. Amount pending to be paid
Paidamtatinvoicing Yes DECIMAL
C_BPartner_Location_ID No VARCHAR (32) The Partner address indicates the location of a Business Partner
Ispaid No CHAR (1) The document is paid for.
FIN_Paymentmethod_ID No VARCHAR (32)
C_PaymentTerm_ID No VARCHAR (32) Payment Terms identify the method and timing of payment for this transaction.
Percentageoverdue Yes DECIMAL
Posted No VARCHAR (60) 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.
Prepaymentamt No DECIMAL
M_PriceList_ID No VARCHAR (32)

Price Lists are used to determine the pricing, margin and cost of items purchased or sold.

IsTaxIncluded Yes CHAR (1) The Tax Included checkbox indicates if the prices include tax. This is also known as the gross price.
IsPrinted No CHAR (1) The Printed checkbox indicates if this document or line will included when printing.
IsDiscountPrinted No CHAR (1) The Discount Printed Checkbox indicates if the discount will be printed on the document.
Processing Yes CHAR (1) When this field is set as 'Y' a process is being performed on this record.
Processed No CHAR (1) The Processed checkbox indicates that a document has been processed.
C_Project_ID Yes VARCHAR (32) Identifier of a project defined within the Project & Service Management module.
C_Campaign_ID Yes VARCHAR (32) The Campaign defines a unique marketing program. Projects can be associated with a pre defined Marketing Campaign. You can then report based on a specific Campaign.
C_Order_ID Yes VARCHAR (32) Unique identifier and a reference to a Sales Order originating from the document sequence defined for this document type.
SalesRep_ID Yes VARCHAR (32) 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.
IsSOTrx No CHAR (1) The Sales Transaction checkbox indicates if this item is a Sales Transaction.
IsSelfService No CHAR (1) Self-Service allows users to enter data or update their data. The flag indicates, that this record was entered or created via Self-Service or that the user can change it via the Self-Service functionality.
TotalLines No DECIMAL The Total amount displays the total of all lines in document currency
Taxdate Yes TIMESTAMP (7) Tax Date
Totalpaid No DECIMAL Total amount paid.
C_DocTypeTarget_ID No VARCHAR (32) Specifies document subtype (eg. POS Order, Return Material, etc.) that each document (such as Sales Invoice, Purchase Order, etc.). Various document subtypes usually differ on the consequences they have. You can convert document types (e.g. from Offer to Order). The conversion is then reflected in the current type.
AD_OrgTrx_ID Yes VARCHAR (32) The organization which performs or initiates this transaction (for another organization). The owning Organization may not be the transaction organization in a service bureau environment, with centralized services, and inter-organization transactions.
Updated No TIMESTAMP (7) The Updated field indicates the date that this record was updated.
UpdatedBy No VARCHAR (32) The Updated By field indicates the user who updated this record.
AD_User_ID Yes VARCHAR (32) The User identifies a unique user in the system. This could be an internal user or a business partner contact
C_Withholding_ID Yes VARCHAR (32) The Withholding indicates the type of withholding to be calculated.
Withholdingamount Yes DECIMAL

Columns

1st Dimension


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

top


2nd Dimension


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

top


Accounting Date



Callout: SE_Invoice_TaxDate

This column has a callout associated.

It is implemented by [1] Java Class.

top


Active



top


Activity


Foreign key column to C_Activity table, (column: C_Activity_ID)

top


Asset


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

top


Business Partner


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

Callout: SE_Invoice_BPartner

This column has a callout associated.

It is implemented by [2] Java Class.

top


C_Alternate_Location_ID


Foreign key column to C_Location table, (column: C_Location_ID)

top


Calculate_Promotions



top


Cash VAT



top


Charge


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

top


Charge Amount



top


Client


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

top


Copy from



top


Costcenter


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

top


Create Lines From



top


Create Lines From Order



top


Create Lines From Shipment



top


Created By


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

top


Creation Date



top


Currency


Foreign key column to C_Currency table, (column: C_Currency_ID)

top


Date printed



top


Days Sales Outstanding



top


Days till due



top


Description



top


Document Action



List values: All_Document Action

The allowed values for this list are:

top


Document No.


top


Document Status



List values: All_Document Status

The allowed values for this list are:

top


Document Type


Foreign key column to C_DocType table, (column: C_DocType_ID)

top


Due amount



top


EM_APRM_Addpayment



top


EM_APRM_Processinvoice



List values: All_Document Action

The allowed values for this list are:

top


Einvoice_ExternalID



top


Einvoice_Generated



top


Einvoice_Send_Status



List values: e-Invoice Sent Status

The allowed values for this list are:

top


Einvoice_Sent



top


Einvoice_Status



List values: e-invoice Generation Status

The allowed values for this list are:

top


External Business Partner Reference



top


FIN_Payment_Priority_ID


Foreign key column to FIN_Payment_Priority table, (column: FIN_Payment_Priority_ID)

top


Final Settlement Date



top


Generate To



top


Grand Total Amount


top


Invoice



top


Invoice Date


Callout: SE_Invoice_AccountingDate

This column has a callout associated. Populates invoice date into accounting date for invoices It is implemented by [3] Java Class.

top


Last Calculated On Date



top


Order Date



top


Order Reference



top


Organization


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

AD_ORG_ID <> '0'

Callout: SE_Invoice_Organization

This column has a callout associated.

It is implemented by [4] Java Class.

top


Outstanding Amount



top




top


Partner Address


Foreign key column to C_BPartner_Location table, (column: C_BPartner_Location_ID) It has a validation "C_BPartner Location - Bill To", with the following code

C_BPartner_Location.C_BPartner_ID=@C_BPartner_ID@ AND C_BPartner_Location.IsBillTo='Y' AND C_BPartner_Location.IsActive='Y'

Callout: SE_Invoice_BPartnerLocation

This column has a callout associated.

It is implemented by [5] Java Class.

top


Payment Complete



top


Payment Method


Foreign key column to FIN_PaymentMethod table, (column: Fin_Paymentmethod_ID) It has a validation "FIN_PaymentMethodsWithAccountIsSOTrxControl", with the following code

EXISTS (SELECT 1 FROM FIN_FinAcc_PaymentMethod fapm WHERE FIN_PaymentMethod.FIN_PaymentMethod_ID=fapm.FIN_PaymentMethod_ID

AND fapm.Payin_Allow = (SELECT CASE WHEN '@IsSOTrx@'='Y' THEN 'Y' ELSE fapm.Payin_Allow END FROM DUAL) AND fapm.Payout_Allow = (SELECT CASE WHEN '@IsSOTrx@'='N' THEN 'Y' ELSE fapm.Payout_Allow END FROM DUAL))

Callout: SE_Invoice_BPartner

This column has a callout associated.

It is implemented by [6] Java Class.

top


Payment Terms


Foreign key column to C_PaymentTerm table, (column: C_PaymentTerm_ID)

top


Percentage Overdue



top


Posted


List values: All_Posted Status

The allowed values for this list are:

top


Prepaymentamt



top


Price List


Foreign key column to M_PriceList table, (column: M_PriceList_ID) It has a validation "Price List isSOTrx", with the following code

M_PriceList.issopricelist = @isSOTrx@

Callout: SL_Invoice_PriceList

This column has a callout associated.

It is implemented by [7] Java Class.

top


Price includes Tax



top


Print



top


Print Discount



top


Process Now



top


Processed



top


Project


Foreign key column to C_Project table, (column: C_Project_ID) It has a validation "C_Project based on status and bpartner", with the following code

C_Project.projectstatus in ('OP', 'OR') and (C_Project.c_bpartner_id=@C_BPartner_ID@ or '@IsSOTrx@'='N') or C_Project.c_project_id = @c_project_id@

Callout: SE_Invoice_Project

This column has a callout associated.

It is implemented by [8] Java Class.

top


Sales Campaign


Foreign key column to C_Campaign table, (column: C_Campaign_ID)

top


Sales Order


Foreign key column to C_Order table, (column: C_Order_ID)

top


Sales Representative


Foreign key column to AD_User table, (column: AD_User_ID) It has a validation "AD_User - Org Tree", with the following code

AD_ISORGINCLUDED(@AD_Org_ID@, td0.AD_Org_ID, @#AD_Client_ID@) <> '-1'

top


Sales Transaction



top


Self-Service



top


Summed Line Amount



top


Tax Date



top


Total paid



top


Transaction Document


Foreign key column to C_DocType table, (column: C_DocType_ID) It has a validation "C_DocType AR/AP Invoices and Credit Memos", with the following code

C_DocType.DocBaseType IN ('ARI', 'API','ARC','APC','ARI_RM') AND C_DocType.IsSOTrx='@IsSOTrx@' AND (AD_ISORGINCLUDED(@AD_Org_ID@,C_DocType.AD_Org_ID, @#AD_Client_ID@) <> '-1' OR COALESCE(@AD_Org_ID@,'-1')='-1')

Callout: SL_Invoice_DocType

This column has a callout associated.

It is implemented by [9] Java Class.

top


Trx Organization


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

top


Updated



top


Updated By


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

top


User/Contact


Foreign key column to AD_User table, (column: AD_User_ID) It has a validation "AD_User C_BPartner User/Contacts", with the following code

AD_User.C_BPartner_ID=@C_BPartner_ID@

top


Withholding


Foreign key column to C_Withholding table, (column: C_Withholding_ID) It has a validation "Business Partner Withholding", with the following code

EXISTS (SELECT 1
             FROM C_BP_Withholding w , C_BPartner b
             WHERE w.C_BPartner_ID=b.C_BPartner_ID
             AND w.C_Withholding_ID=C_Withholding.C_Withholding_ID
             AND W.C_BPartner_ID=@C_BPartner_ID@)

top


Withholdingamount



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_Invoice"

This page has been accessed 10,719 times. This page was last modified on 4 September 2023, at 01:58. Content is available under Creative Commons Attribution-ShareAlike 2.5 Spain License.