Package org.openbravo.erpCommon.ad_forms
Class DocFINReconciliation
- java.lang.Object
-
- org.openbravo.erpCommon.ad_forms.AcctServer
-
- org.openbravo.erpCommon.ad_forms.DocFINReconciliation
-
public class DocFINReconciliation extends AcctServer
-
-
Field Summary
Fields Modifier and Type Field Description static String
TRXTYPE_BankFee
static String
TRXTYPE_BPDeposit
Transaction type - Financial Accountstatic String
TRXTYPE_BPWithdrawal
-
Fields inherited from class org.openbravo.erpCommon.ad_forms.AcctServer
ACCTTYPE_BankAsset, ACCTTYPE_BankInTransit, ACCTTYPE_BankInTransitDefault, ACCTTYPE_C_Receivable, ACCTTYPE_CashAsset, ACCTTYPE_CashDifference, ACCTTYPE_CashExpense, ACCTTYPE_CashReceipt, ACCTTYPE_CashTransfer, ACCTTYPE_Charge, ACCTTYPE_ConvertChargeDefaultAmt, ACCTTYPE_ConvertChargeGainAmt, ACCTTYPE_ConvertChargeLossAmt, ACCTTYPE_ConvertGainDefaultAmt, ACCTTYPE_DiscountExp, ACCTTYPE_DiscountRev, ACCTTYPE_InterestExp, ACCTTYPE_InterestRev, ACCTTYPE_InvDifferences, ACCTTYPE_NotInvoicedReceipts, ACCTTYPE_PaymentSelect, ACCTTYPE_PPVOffset, ACCTTYPE_ProjectAsset, ACCTTYPE_ProjectWIP, ACCTTYPE_UnallocatedCash, ACCTTYPE_V_Liability, ACCTTYPE_V_Liability_Services, ACCTTYPE_WriteOff, ACCTTYPE_WriteOff_Revenue, ACCTTYPE_WriteOffDefault, ACCTTYPE_WriteOffDefault_Revenue, AD_Client_ID, AD_Org_ID, AD_OrgTrx_ID, AD_Table_ID, Amounts, AMTTYPE_Allocation, AMTTYPE_Charge, AMTTYPE_Discount, AMTTYPE_Gross, AMTTYPE_Invoice, AMTTYPE_Net, AMTTYPE_WriteOff, batchSize, BP_C_SalesRegion_ID, C_Activity_ID, C_BankAccount_ID, C_BPartner_ID, C_BPartner_Location_ID, C_Campaign_ID, C_CashBook_ID, C_Charge_ID, C_Costcenter_ID, C_Currency_ID, C_DocType_ID, C_LocFrom_ID, C_LocTo_ID, C_Period_ID, C_Project_ID, C_SalesRegion_ID, ChargeAmt, connectionProvider, dateAcct, DateAcct, DateDoc, DOCTYPE_Allocation, DOCTYPE_Amortization, DOCTYPE_APCredit, DOCTYPE_APInvoice, DOCTYPE_APPayment, DOCTYPE_ARCredit, DOCTYPE_ARInvoice, DOCTYPE_ARProForma, DOCTYPE_ARReceipt, DOCTYPE_BankStatement, DOCTYPE_CashJournal, DOCTYPE_CostAdjustment, DOCTYPE_DPManagement, DOCTYPE_FinAccTransaction, DOCTYPE_FinBankStatement, DOCTYPE_GLJournal, DOCTYPE_LandedCost, DOCTYPE_LandedCostCost, DOCTYPE_MatInternalConsumption, DOCTYPE_MatInventory, DOCTYPE_MatMatchInv, DOCTYPE_MatMatchPO, DOCTYPE_MatMovement, DOCTYPE_MatProduction, DOCTYPE_MatReceipt, DOCTYPE_MatShipment, DOCTYPE_POrder, DOCTYPE_Reconciliation, DOCTYPE_RMSalesInvoice, DOCTYPE_SOrder, DocumentNo, DocumentType, errors, EXCHANGE_DOCTYPE_Invoice, EXCHANGE_DOCTYPE_Payment, EXCHANGE_DOCTYPE_Transaction, FIN_Financial_Account_ID, GL_Category_ID, groupLines, IsReturn, IsReversal, m_as, m_debt_payments, m_fact, m_IsOpening, M_Product_ID, m_Record_Id2, M_Warehouse_ID, MultiCurrency, Name, NO_CURRENCY, p_lines, Posted, Qty, Record_ID, Status, STATUS_BackgroundDisabled, STATUS_DocumentDisabled, STATUS_DocumentLocked, STATUS_Error, STATUS_InvalidAccount, STATUS_InvalidCost, STATUS_NoAccountingDate, STATUS_NoRelatedPO, STATUS_NotBalanced, STATUS_NotCalculatedCost, STATUS_NotConvertible, STATUS_NotPosted, STATUS_PeriodClosed, STATUS_Posted, STATUS_PostPrepared, STATUS_TableDisabled, strDateColumn, TABLEID_GLJournal, TABLEID_Invoice, TABLEID_Payment, TABLEID_Reconciliation, TABLEID_Transaction, tableName, TaxIncluded, User1_ID, User2_ID, ZERO
-
-
Constructor Summary
Constructors Constructor Description DocFINReconciliation()
DocFINReconciliation(String AD_Client_ID, String AD_Org_ID, ConnectionProvider connectionProvider)
-
Method Summary
-
Methods inherited from class org.openbravo.erpCommon.ad_forms.AcctServer
applyRate, checkDocuments, checkDocuments, convertAmount, convertAmount, filterDatesCheckDocuments, get, getAccount, getAccount, getAccountBPartner, getAccountBPartner, getAccountBPartnerAllowanceForDoubtfulDebt, getAccountBPartnerBadDebt, getAccountFee, getAccountGLItem, getAmount, getAmount, getConnectionProvider, getConversionDate, getConversionRateDoc, getConversionRatePrecision, getConvertedAmt, getConvertedAmt, getConvertedAmt, getConvertionRate, getInfo, getInfo, getInvalidAccountParameters, getInvalidCostParameters, getMessageResult, getNotCalculatedCostParameters, getObjectFieldProvider, getPaymentDetailAmount, getPaymentDetailIdWriteOffAndAmount, getPaymentDetailWriteOffAndAmount, getPaymentDetailWriteOffAndAmount, getPaymentDetailWriteOffAndAmount, getServletInfo, getStatus, insertNote, isBackground, isBalanced, isConvertible, isPeriodOpen, loadDocument, loadDocument, loadDocumentType, loadDocumentType, match, post, reloadAcctSchemaArray, run, run, set, setBackground, setBatchSize, setC_Period_ID, setMessageResult, setMessageResult, setMessageResult, setMessageResult, setObjectFieldProvider, setStatus
-
-
-
-
Field Detail
-
TRXTYPE_BPDeposit
public static final String TRXTYPE_BPDeposit
Transaction type - Financial Account- See Also:
- Constant Field Values
-
TRXTYPE_BPWithdrawal
public static final String TRXTYPE_BPWithdrawal
- See Also:
- Constant Field Values
-
TRXTYPE_BankFee
public static final String TRXTYPE_BankFee
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
DocFINReconciliation
public DocFINReconciliation()
-
DocFINReconciliation
public DocFINReconciliation(String AD_Client_ID, String AD_Org_ID, ConnectionProvider connectionProvider)
-
-
Method Detail
-
loadDocumentDetails
public boolean loadDocumentDetails(FieldProvider[] data, ConnectionProvider conn)
- Specified by:
loadDocumentDetails
in classAcctServer
-
loadLinesFieldProvider
public FieldProviderFactory[] loadLinesFieldProvider(String Id)
-
getTransactionList
public List<FIN_FinaccTransaction> getTransactionList(FIN_Reconciliation reconciliation)
-
loadLinesPaymentDetailsFieldProvider
public FieldProviderFactory[] loadLinesPaymentDetailsFieldProvider(FIN_FinaccTransaction transaction)
-
loadLinesPaymentFieldProvider
public FieldProviderFactory[] loadLinesPaymentFieldProvider(FIN_FinaccTransaction transaction)
-
loadLinesGLItemFieldProvider
public FieldProviderFactory[] loadLinesGLItemFieldProvider(FIN_FinaccTransaction transaction)
-
loadLinesFeeFieldProvider
public FieldProviderFactory[] loadLinesFeeFieldProvider(FIN_FinaccTransaction transaction)
-
createFact
public Fact createFact(AcctSchema as, ConnectionProvider conn, Connection con, VariablesSecureApp vars) throws javax.servlet.ServletException
Description copied from class:AcctServer
Create Facts (the accounting logic)- Specified by:
createFact
in classAcctServer
- Parameters:
as
- accounting schema- Returns:
- Fact
- Throws:
javax.servlet.ServletException
-
createFactFee
public Fact createFactFee(DocLine_FINReconciliation line, AcctSchema as, ConnectionProvider conn, Fact fact, String Fact_Acct_Group_ID) throws javax.servlet.ServletException
- Throws:
javax.servlet.ServletException
-
createFactPayment
public Fact createFactPayment(DocLine_FINReconciliation line, AcctSchema as, ConnectionProvider conn, Fact fact, String Fact_Acct_Group_ID) throws javax.servlet.ServletException
- Throws:
javax.servlet.ServletException
-
createFactPayment
public Fact createFactPayment(DocLine_FINReconciliation line, AcctSchema as, ConnectionProvider conn, Fact fact, String Fact_Acct_Group_ID, String Fact_Acct_Group_ID2) throws javax.servlet.ServletException
- Throws:
javax.servlet.ServletException
-
createFactPaymentDetails
@Deprecated public Fact createFactPaymentDetails(DocLine_FINReconciliation line, AcctSchema as, ConnectionProvider conn, Fact fact, String Fact_Acct_Group_ID) throws javax.servlet.ServletException
Deprecated.- Throws:
javax.servlet.ServletException
-
createFactPaymentDetails
public Fact createFactPaymentDetails(DocLine_FINReconciliation line, FIN_PaymentDetail paymentDetail, AcctSchema as, ConnectionProvider conn, Fact fact, String Fact_Acct_Group_ID) throws javax.servlet.ServletException
- Throws:
javax.servlet.ServletException
-
createFactPaymentDetails
public Fact createFactPaymentDetails(DocLine_FINReconciliation line, FIN_PaymentDetail paymentDetail, AcctSchema as, ConnectionProvider conn, Fact fact, String Fact_Acct_Group_ID, String Fact_Acct_Group_ID2) throws javax.servlet.ServletException
- Throws:
javax.servlet.ServletException
-
createFactGLItem
public Fact createFactGLItem(DocLine_FINReconciliation line, AcctSchema as, ConnectionProvider conn, Fact fact, String Fact_Acct_Group_ID) throws javax.servlet.ServletException
- Throws:
javax.servlet.ServletException
-
getBalance
public BigDecimal getBalance()
Transactions lines comes from glitem in reconciliation are always balanced hence it is ZERO When transaction lines comes from a payment, the payment process check that lines are balanced.- Specified by:
getBalance
in classAcctServer
- Returns:
- ZERO
-
getDocumentPaymentConfirmation
public boolean getDocumentPaymentConfirmation(FIN_Payment payment)
-
getDocumentTransactionConfirmation
public boolean getDocumentTransactionConfirmation(FIN_FinaccTransaction transaction)
-
getDocumentConfirmation
public boolean getDocumentConfirmation(ConnectionProvider conn, String strRecordId)
- Specified by:
getDocumentConfirmation
in classAcctServer
-
loadObjectFieldProvider
public void loadObjectFieldProvider(ConnectionProvider conn, String strAD_Client_ID, String Id) throws javax.servlet.ServletException
- Specified by:
loadObjectFieldProvider
in classAcctServer
- Throws:
javax.servlet.ServletException
-
getWithdrawalAccount
public Account getWithdrawalAccount(AcctSchema as, FIN_FinancialAccount finAccount, ConnectionProvider conn) throws javax.servlet.ServletException
- Throws:
javax.servlet.ServletException
-
getDepositAccount
public Account getDepositAccount(AcctSchema as, FIN_FinancialAccount finAccount, ConnectionProvider conn) throws javax.servlet.ServletException
- Throws:
javax.servlet.ServletException
-
getAccountTransaction
public Account getAccountTransaction(ConnectionProvider conn, FIN_FinancialAccount finAccount, AcctSchema as, boolean bIsReceipt) throws javax.servlet.ServletException
- Throws:
javax.servlet.ServletException
-
getAccountTransactionPayment
public Account getAccountTransactionPayment(ConnectionProvider conn, FIN_Payment payment, AcctSchema as) throws javax.servlet.ServletException
- Throws:
javax.servlet.ServletException
-
getClearOutAccount
public Account getClearOutAccount(AcctSchema as, FIN_FinancialAccount finAccount, ConnectionProvider conn) throws javax.servlet.ServletException
- Throws:
javax.servlet.ServletException
-
getClearInAccount
public Account getClearInAccount(AcctSchema as, FIN_FinancialAccount finAccount, ConnectionProvider conn) throws javax.servlet.ServletException
- Throws:
javax.servlet.ServletException
-
getAccount
public Account getAccount(ConnectionProvider conn, FIN_FinancialAccount finAccount, AcctSchema as, boolean bIsReceipt) throws javax.servlet.ServletException
- Throws:
javax.servlet.ServletException
-
getAccountPayment
@Deprecated public Account getAccountPayment(ConnectionProvider conn, FIN_FinancialAccount finAccount, AcctSchema as, boolean bIsReceipt) throws javax.servlet.ServletException
Deprecated.- Throws:
javax.servlet.ServletException
-
getAccountPayment
public Account getAccountPayment(ConnectionProvider conn, FIN_Payment payment, AcctSchema as) throws javax.servlet.ServletException
- Throws:
javax.servlet.ServletException
-
getAccountReconciliation
public Account getAccountReconciliation(ConnectionProvider conn, FIN_Payment payment, AcctSchema as) throws javax.servlet.ServletException
- Throws:
javax.servlet.ServletException
-
-