Академический Документы
Профессиональный Документы
Культура Документы
Visit as at www.openbravo.com
Table of Contents
I. Introduction.........................................................................................................................3
II. C_Invoice Accounting........................................................................................................5
II.1 -ARI & ARF: Account Receivable Invoice and Account Receivable ProForma..........5
II.2 ARC: Account Receivable Credit Memo....................................................................7
II.3 API: Account Payable Vendor Invoice........................................................................9
II.4 APC: Vendor Credit Memo.......................................................................................11
III. C_Order Accounting.......................................................................................................13
IV. C_Bank Accounting........................................................................................................14
V. C_Cash Accounting.........................................................................................................16
VI. C_DP_Management Accounting....................................................................................20
VII. A_Amortization Accounting...........................................................................................22
VIII. M_InOut Accounting.....................................................................................................24
VIII.1 Material shipment..................................................................................................24
VIII.2 Material receipt......................................................................................................24
IX. M_Inventory Accounting.................................................................................................26
X. M_Movement Accounting................................................................................................28
XI. C_Settlement Accounting...............................................................................................29
XI.1 Settlement...............................................................................................................29
XI.1.1 Collection cancellation (when they are paid).............................................................................29
XI.1.2 Payment cancellation (when they are paid)..............................................................................30
XI.1.3 Collection cancellation for manual collections(which are not direct posting and are paid)........32
XI.1.4 Payment cancellation for manual payments (which are not direct posting and are paid)..........33
XI.1.5 Payment transformation............................................................................................................35
XI.1.6 Collections transformation.........................................................................................................36
XI.2 Manual settlement (only if they are not direct posting debt/payments)..................37
XI.2.1 Collection generation................................................................................................................37
XI.2.2 Payment generation..................................................................................................................38
I. Introduction
In this document, the accounting in Openbravo is going to be studied, from the
point of view of the database. Accounting in Openbravo is leaded through
documents. All the application documents are reviewed in this documentation, and
for each of them, it is going to be studied which database tables are affected by
posting that document.
This is the way this operations are explained in this documentation:
All the document types that generate accounting are reviewed:
For example, the accounting associated to invoice documents.
For each document type, all documents of the application related with that
document type are reviewed:
For example, ARI and ARF.
Afterwards, each of the lines of the accounting entry are explained more
deeply:
First of all, the location where the accounting account to be used is set.
For example, by traveling to the window business partner -> the tab
Customer -> the subTab Customer Accounting -> and the Field Customer
Receivables. You can choose any of the accounting accounts of the
accounting tree. Then, that accounting account will be used to create the
accounting entry when posting an invoice.
Then, in which column and table is saved the value of that account.
For example, the column C_Receivable_Acct of the table
C_BP_Customer_Acct will have the value of the account where the amount
of the invoice is charged.
At last, the default account value associated to this account. It means, the
default account in the chart of accounts associated to this accounting entry.
For example, the C_Receivable_Acct default account.
Accounts:
- Customer Receivables:
➢ Window : Business Partner
➢ Tab : Customer/Customer Accounting
➢ Field: Customer Receivables
➢ Table: C_BP_Customer_Acct
➢ Column: C_Receivable_Acct
- Charge Revenue:
➢ Window : Charge
➢ Tab : Accounting
➢ Field: Charge Revenue
➢ Table: C_Charge_Acct
➢ Column: CH_Revenue_Acct
➢ Window : Tax
➢ Tab : Accounting
➢ Field: Tax Due
➢ Table: C_Tax_Acct
➢ Column: T_Due_Acct
- Product Revenue:
➢ Window : Product
➢ Tab : Accounting
➢ Field: Product Revenue
➢ Table: M_Product_Acct
➢ Column: P_Revenue_Acct
Amounts:
- Grand Total: Refers to the grand total of the invoice header
- ChargeAmt: Refers to the charge amount of the invoice header
- TaxAmt: Refers to the tax amount of each invoice tax line
- LineNetAmt: Refers to the line net amount of each invoice line
Accounts:
- Customer Receivables:
➢ Window : Business Partner
➢ Tab : Customer/Customer Accounting
➢ Field: Customer Receivables
➢ Table: C_BP_Customer_Acct
➢ Column: C_Receivable_Acct
- Charge Revenue:
➢ Window : Charge
➢ Tab : Accounting
➢ Field: Charge Revenue
➢ Table: C_Charge_Acct
➢ Column: CH_Revenue_Acct
➢ Table: C_Tax_Acct
➢ Column: T_Due_Acct
- Product Revenue:
➢ Window : Product
➢ Tab : Accounting
➢ Field: Product Revenue
➢ Table: M_Product_Acct
➢ Column: P_Revenue_Acct
Amounts:
- Grand Total: Refers to the grand total of the invoice header
- ChargeAmt: Refers to the charge amount of the invoice header
- TaxAmt: Refers to the tax amount of each invoice tax line
- LineNetAmt: Refers to the line net amount of each invoice line
Accounts:
- Vendor Liability:
➢ Window : Business Partner
➢ Tab : Vendor/Vendor Accounting
➢ Field: Vendor Liability
➢ Table: C_BP_Vendor_Acct
➢ Column: V_Liability_Acct
- Charge Expense:
➢ Window : Charge
➢ Tab : Accounting
➢ Field: Charge Expense
➢ Table: C_Charge_Acct
➢ Column: CH_Expense_Acct
- Tax Credit:
➢ Window : Tax
➢ Tab : Accounting
➢ Field: Tax Credit
➢ Table: C_Tax_Acct
➢ Column: T_Credit_Acct
- Product Expense:
➢ Window : Product
➢ Tab : Accounting
➢ Field: Product Expense
➢ Table: M_Product_Acct
➢ Column: P_Expense_Acct
Amounts:
- Grand Total: Refers to the grand total of the invoice header
- ChargeAmt: Refers to the charge amount of the invoice header
- TaxAmt: Refers to the tax amount of each invoice tax line
- LineNetAmt: Refers to the line net amount of each invoice line
Accounts:
- Vendor Liability:
➢ Window : Business Partner
➢ Tab : Vendor/Vendor Accounting
➢ Field: Vendor Liability
➢ Table: C_BP_Vendor_Acct
➢ Column: V_Liability_Acct
- Charge Expense:
➢ Window : Charge
➢ Tab : Accounting
➢ Field: Charge Expense
➢ Table: C_Charge_Acct
➢ Column: CH_Expense_Acct
- Tax Credit:
➢ Window : Tax
➢ Tab : Accounting
➢ Field: Tax Credit
➢ Table: C_Tax_Acct
➢ Column: T_Credit_Acct
- Product Expense:
➢ Window : Product
➢ Tab : Accounting
➢ Field: Product Expense
➢ Table: M_Product_Acct
➢ Column: P_Expense_Acct
Amounts:
- Grand Total: Refers to the grand total of the invoice header
- ChargeAmt: Refers to the charge amount of the invoice header
- TaxAmt: Refers to the tax amount of each invoice tax line
- LineNetAmt: Refers to the line net amount of each invoice line
The accounting of bank statement depends on the sign of the line amount.
Accounts:
- Bank Asset:
➢ Window : Bank
➢ Tab : Accounting
➢ Field: Bank Asset
➢ Table: C_BankAccount_Acct
➢ Column: B_Asset_Acct
- Bank In Transit:
➢ Window : Accounting Schema
➢ Tab : Defaults
➢ Field: Bank In Transit
➢ Table: C_Acctschema_Default
➢ Column: B_Intransit_Acct
- Bank Expense:
➢ Window : Bank
➢ Tab : Accounting
➢ Field: Bank Expense
➢ Table: C_Bankaccount_Acct
➢ Column: B_Expense_Acct
➢ Table: C_BankAccount_Acct
➢ Column: B_Revaluationloss_Acct, B_Revaluationgain_Acct
➢ Import file: B_REVALUATIONLOSS_ACCT,
B_REVALUATIONGAIN_ACCT
Amounts:
- Stmt Amount: Refers to the statement amount of the bank statement line
- Trx Amount: Refers to the transaction amount of the bank statement line
- Charge Amount: Refers to the charge amount of the bank statement line
- Convert charge Amt: Refers to the converted charge amount of the bank
statement line
V. C_Cash Accounting
Accounts:
- Cash Book Asset:
➢ Window : Cashbook
➢ Tab : Accounting
➢ Field: Cash Book Asset
➢ Table: C_CashBook_Acct
➢ Column: CB_Asset_Acct
➢ Table: C_CashBook_Acct
➢ Column: CB_Expense_Acct
➢ Table: C_CashBook_Acct
➢ Column: CB_Receipt_Acct
- Charge Expense:
➢ Window : Charge
➢ Tab : Accounting
➢ Field: Charge Expense
➢ Table: C_Charge_Acct
➢ Column: CH_Expense_Acct
- Charge Revenue:
➢ Window : Charge
➢ Tab : Accounting
➢ Field: Charge Revenue
➢ Table: C_Charge_Acct
➢ Column: CH_Revenue_Acct
➢ Tab : Accounting
➢ Field: Cash Book Differences
➢ Table: C_CashBook_Acct
➢ Column: CB_Differences_Acct
- Cash Transfer:
➢ Window : Cashbook
➢ Tab : Accounting
➢ Field: Cash Transfer
➢ Table: C_CashBook_Acct
➢ Column: CB_CashTransfer_Acct
- Bank In Transit:
➢ Window : Accounting Schema
➢ Tab : Defaults
➢ Field: Bank In Transit
➢ Table: C_Acctschema_Default
➢ Column: B_Intransit_Acct
Amounts:
Accounts:
- Customer Receivables:
➢ Window : Business Partner
➢ Tab : Customer/Customer Accounting
➢ Field: Customer Receivables
➢ Table: C_BP_Customer_Acct
➢ Column: C_Receivable_Acct
- Vendor Liability:
➢ Window : Business Partner
➢ Tab : Vendor/Vendor Accounting
➢ Field: Vendor Liability
➢ Table: C_BP_Vendor_Acct
➢ Column: V_Liability_Acct
Amounts:
- Amount: Refers to the amount of the line debt/payment
Accounts:
- Depreciation:
➢ Window : Assets
➢ Tab : Asset Accounting
➢ Field: Depreciation
➢ Table: A_Asset_Acct
➢ Column: A_Depreciation_Acct
- Accumulated Depreciation:
➢ Window : Assets
➢ Tab : Asset Accounting
➢ Field: Accumulated Depreciation
➢ Table: A_Asset_Acct
➢ Column: A_AccumDepreciation_Acct
Amounts:
- Amount: Refers to the amortization amount of the amortization line
Accounts:
- Product COGS:
➢ Window : Product
➢ Tab : Accounting
➢ Field: Product COGS
➢ Table: M_Product_Acct
➢ Column: P_Cogs_Acct
- Product Asset:
➢ Window : Product
➢ Tab : Accounting
➢ Field: Product Asset
➢ Table: M_Product_Acct
➢ Column: P_Asset_Acct
- Not-invoiced Receipts:
➢ Window : Business Partner Group
➢ Tab : Accounting
➢ Field: Not-invoiced Receipts
➢ Table: C_BP_Group_Acct
➢ Column: NotInvoicedReceipts_Acct
Amounts:
- Costs: Refers to the line cost (quantity x cost of the product)
The accounting of physical inventory depends on the sign of the quantity count to update
inventory valuation.
Accounts:
- Product Asset:
➢ Window : Product
➢ Tab : Accounting
➢ Field: Product Asset
➢ Table: M_Product_Acct
➢ Column: P_Asset_Acct
- Warehouse Differences:
➢ Window : Warehouse
➢ Tab : Accounting
➢ Field: Warehouse Differences
➢ Table: M_Warehouse_Acct
➢ Column: W_Differences_Acct
Amounts:
- Costs: Refers to the line cost (quantity x cost of the product)
X. M_Movement Accounting
Accounts:
- Product Asset:
➢ Window : Product
➢ Tab : Accounting
➢ Field: Product Asset
➢ Table: M_Product_Acct
➢ Column: P_Asset_Acct
Amounts:
- Costs: Refers to the line cost (quantity x cost of the product)
XI.1 Settlement
XI.1.1 Collection cancellation (when they are paid)
Accounts:
- Customer Receivables:
➢ Window : Business Partner
➢ Tab : Customer/Customer Accounting
➢ Field: Customer Receivables
➢ Table: C_BP_Customer_Acct
➢ Column: C_Receivable_Acct
- Bank In Transit:
➢ Window : Accounting Schema
➢ Tab : Defaults
➢ Field: Bank In Transit
➢ Table: C_Acctschema_Default
➢ Column: B_Intransit_Acct
➢ Table: C_Acctschema_Default
➢ Column: B_Revaluationgain_Acct
➢ Table: C_Acctschema_Default
➢ Column: B_Revaluationloss_Acct
Accounts:
- Vendor Liability:
➢ Window : Business Partner
➢ Tab : Vendor/Vendor Accounting
➢ Field: Vendor Liability
➢ Table: C_BP_Vendor_Acct
➢ Column: C_ Liability_Acct
- Bank In Transit:
➢ Window : Accounting Schema
➢ Tab : Defaults
➢ Field: Bank In Transit
➢ Table: C_Acctschema_Default
➢ Column: B_Intransit_Acct
➢ Table: C_Acctschema_Default
➢ Column: B_Revaluationgain_Acct
➢ Table: C_Acctschema_Default
➢ Column: B_Revaluationloss_Acct
Accounts:
- Glitem Acct:
➢ Window : GL Item
➢ Tab : Gl Item Acct
➢ Field: Glitem Credit Acct
➢ Table: C_Glitem_Acct
➢ Column: Glitem_Credit_Acct
➢ Import file: - -
- Bank In Transit:
➢ Window : Accounting Schema
➢ Tab : Defaults
➢ Field: Bank In Transit
➢ Table: C_Acctschema_Default
➢ Column: B_Intransit_Acct
➢ Tab : Defaults
➢ Field: Bank Revaluation Gain
➢ Table: C_Acctschema_Default
➢ Column: B_Revaluationgain_Acct
➢ Table: C_Acctschema_Default
➢ Column: B_Revaluationloss_Acct
XI.1.4 Payment cancellation for manual payments (which are not direct
posting and are paid)
Accounts:
- Glitem (debit or credit) acct:
➢ Window : GL Item
➢ Tab : Gl Item Acct
➢ Field: Glitem (debit or credit) acct
➢ Table: C_Glitem_Acct
➢ Column: Glitem_Debit_Acct or Glitem_Credit_Acct
➢ Import file: - -
- Bank In Transit:
➢ Window : Accounting Schema
➢ Tab : Defaults
➢ Field: Bank In Transit
➢ Table: C_Acctschema_Default
➢ Column: B_Intransit_Acct
➢ Table: C_Acctschema_Default
➢ Column: B_Revaluationgain_Acct
➢ Table: C_Acctschema_Default
➢ Column: B_Revaluationloss_Acct
Amounts:
- Costs: Refers to the line cost (quantity x cost of the product)
Accounts:
- Vendor Liability:
➢ Window : Business Partner
➢ Tab : Vendor/Vendor Accounting
➢ Field: Vendor Liability
➢ Table: C_BP_Vendor_Acct
➢ Column: C_Liability_Acct
➢ Table: C_Acctschema_Default
➢ Column: B_Revaluationgain_Acct
➢ Table: C_Acctschema_Default
➢ Column: B_Revaluationloss_Acct
Accounts:
- Customer Receivables:
➢ Window : Business Partner
➢ Tab : Customer/Customer Accounting
➢ Field: Customer Receivables
➢ Table: C_BP_Customer_Acct
➢ Column: C_Receivable_Acct
➢ Table: C_Acctschema_Default
➢ Column: B_Revaluationgain_Acct
➢ Table: C_Acctschema_Default
➢ Column: B_Revaluationloss_Acct
Accounts:
- Glitem (debit or credit) acct:
➢ Window : GL Item
➢ Tab : Gl Item Acct
➢ Field: Glitem (debit or credit) acct
➢ Table: C_Glitem_Acct
➢ Import file: - -
Accounts:
- Glitem (debit or credit) acct:
➢ Window : GL Item
➢ Tab : Gl Item Acct
➢ Field: Glitem (debit or credit) acct
➢ Table: C_Glitem_Acct
➢ Column: Glitem_Debit_Acct or Glitem_Credit_Acct
➢ Import file: - -