Hi,
i have 3 years data in old adempiere data structure. I'm investigate some hours to understand how new cashbook works in IDempiere and how can i migrate data from AD ti ID.
PLEASE comment it. maybe should be done from code, but if customer multiple years and thousands of documents then we need a proper solution (see below).
Please be patient, i'm consultant not a developer so this is big picture now - its proof of concept !
Carlos, you design this new approach please confirm it if you have a little time. Should help others to understand.
setup new cashbook
- select POS Cash or create new one (C_Bank)
- create new Cashbook (Account/table: C_BankAccount)
- set type to cash, set currency, other details
- create documents - for printout
- create cashin/cashout doctype
- create cash/in out printout
usage (same as bank statement)
- user selects bank/cash statement
- create new record, select org, account, statement, initial status etc.
- create new line
- select invoice->create payment (how system know which payment type must be using)
- select charge -> simple booking
- select existing payment
- Print Cash Out/In (from payment window) - would be nice auto-print
POTENTIAL SOLUTION: New PROCES> migration from ADcashbook (Cash Journal) subsystem to IDCashbook (bank/cashbook)
Migration logic: process selects each cash journal and his lines and generate transactions follor to new db structure:
- remove accounting entries
- create payment from c_cashline to c_payment
- cash journal doesn’t have type->neg. amount lines payment type as payment positive as receipt
- invert amount prefix (neg amounts to positive vice versa)
- connect payments to existing allocations -> C_AllocationLine.c_cashline_id >> C_Payment_ID (use new payment id’s)
- create C_BankStatementLine based on/map from c_cashline
- case invoice payment (use new payment id instead cashline)
- case charge (use regular charge_id)
- case over/under (over/underpayment needs to be mapped too - not in base )
- bank transfer (old bank transfer create’s payments - can we reuse them ?)
- 4. create C_BankStatement map from c_cash (connect bankstatementline to one bank statement (rule: if cashbook)
remark: after migration run accounting processor and compare balances.
Proces parameters be follow (on running)
- cashbook from (define cashbook from data will be loaded)
- cash/bank account (target cashbook)
- period - period from data will be transferred
- cash in payment type (define C_DocType - list only doc base type payment)
- cashout payment type (define C_DocType - list only doc base type payment)
THANKS.