Compiere 3.1

org.compiere.report
Class FinBalance

java.lang.Object
  extended by org.compiere.process.SvrProcess
      extended by org.compiere.report.FinBalance
All Implemented Interfaces:
ProcessCall

public class FinBalance
extends SvrProcess

Financial Balance Maintenance Engine

Version:
$Id: FinBalance.java,v 1.2 2006/07/30 00:51:05 jjanke Exp $
Author:
Jorg Janke

Field Summary
protected static CLogger s_log
          Logger
 
Fields inherited from class org.compiere.process.SvrProcess
log, MSG_InvalidArguments, MSG_SaveErrorRowNotFound
 
Constructor Summary
FinBalance()
          Financial Report Constructor
 
Method Summary
static String deleteBalance(int C_AcctSchema_ID)
          Delete Balances
protected  String doIt()
          Perform process.
static void main(String[] args)
          Test
protected  void prepare()
          Prepare - e.g., get Parameters.
static String updateBalance(int C_AcctSchema_ID, boolean deleteFirst)
          Update / Create Balances.
static String updateBalanceClient(Ctx ctx, int AD_Client_ID, boolean deleteFirst)
          Update Balance of Client
 
Methods inherited from class org.compiere.process.SvrProcess
addLog, addLog, commit, doIt, get_Trx, get_TrxName, getAD_Client_ID, getAD_PInstance_ID, getAD_User_ID, getCtx, getName, getParameter, getProcessInfo, getRecord_ID, getTable_ID, isLocked, lockObject, rollback, startProcess, unlockObject
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

s_log

protected static final CLogger s_log
Logger

Constructor Detail

FinBalance

public FinBalance()
Financial Report Constructor

Method Detail

prepare

protected void prepare()
Prepare - e.g., get Parameters.

Specified by:
prepare in class SvrProcess

doIt

protected String doIt()
               throws Exception
Perform process.

Specified by:
doIt in class SvrProcess
Returns:
Message to be translated
Throws:
Exception

deleteBalance

public static String deleteBalance(int C_AcctSchema_ID)
Delete Balances

Parameters:
C_AcctSchema_ID - accounting schema 0 for all
Returns:
Message to be translated

updateBalance

public static String updateBalance(int C_AcctSchema_ID,
                                   boolean deleteFirst)
Update / Create Balances. Called from FinReport, FactAcctReset (indirect)

Parameters:
C_AcctSchema_ID - accounting schema
deleteFirst - delete (all) balances first
Returns:
Message to be translated

updateBalanceClient

public static String updateBalanceClient(Ctx ctx,
                                         int AD_Client_ID,
                                         boolean deleteFirst)
Update Balance of Client

Parameters:
ctx - context
AD_Client_ID - client
deleteFirst - delete first
Returns:
error or ""

main

public static void main(String[] args)
Test

Parameters:
args - ignored

Compiere 3.1

Compiere® is a registered trademark of ComPiere, Inc. ©2004-2008 HumanFlash.com All rights reserved.