Creating/Editing Journal Entry (Transaction)
select different journal
entering date
initially set the date to the highest ref_num in the ledger (previously entered date) or if that date falls outside fiscal year, set to date of beginning of fiscal year
when the user changes the year, if year beginning and year end different, modify the items in the month select to only contain the months from/to the beginning/ending of fiscal year and current year
when the user selects February, modify the items in the first day select to be 0, 1, 2, else make it 0, 1, 2, 3
if February, when the user selects 0, 1, make sure second day has 0-9, else if leap year and second day select 2 make it 0-9, else 0-8 for February
entering payee/payer
if user types in text field an entry that matches a select field entry, change the selected item to match
if user selects an item, set text field value to that item
when item selected or matched, refresh page by submitting to self in order to regenerate table with recalled/remembered data with correct number of rows
select sub entity
select account
modify the items in the subaccount to the associated values for the selected account
if bank (cash) account, put (blank), "C", "D" items
select sub account/check-deposit number
if "C" or "D" selected, put next check/deposit number in text field; if (blank) selected, text field is cleared and text is ignored when submitted
enter debit
causes credit field to be cleared
do debit/credit balance
enter credit
causes debit field to be cleared
do debit/credit balance
debit/credit balance
sum debits
sum credits
difference of sums - abs(credit-debit)
put difference in debit/credit field in first available row without account if difference is not 0
more rows button and/or automatically detect and submit when only one row left
create new account button
pass all information/data from create/edit form to create account form
get information for new account; on submit, if no errors, return to create/edit form with data passed through
items needed
fiscal year dates
last date entered
next check/deposit number for each bank account (optional)
current ledger
Transaction Entry
Double Entry
TransactionEntry.cgi stays the same.
{Refresh}{Blank} {Submit}
|Sub Entity| |Account| |Sub Account| |Debit| |Credit|
[Edit] [Edit] [Edit] [edit][Edit]
[Drop down} [dropdown][drop down]
{Enter}{Blank}
(Layer with NON editable text)
Debits
Sub Acct SubAcct Deb Cred Edit Del
[ ] [ ] [ ] [ ] [ ] E D
Credits
Sub Acct SubAcct Deb Cred Edit Del
[ ] [ ] [ ] [ ] [ ] E D
E,D = image
javascript - store values in arrays
Input Items needed
* Amount
* Sub entity
* Account
* Sub account
* Debit/Credit
Options - Refresh page
Delete - remove from layer
Edit - remove from layer, place in edit fields.
Hide Double Entry
Jnl Date Payee
Remembered Memo
(list of accounts)
(mark bank accounts, query for next check, deps)
Sub E Account Num/Sub Amount Increase Decrease
[Edit} {Edit] [Edit] [Edit] O O
[Dropdown][Dropdown]
[Submit]
Transfer To:
Sub E Account Num/Sub
{Edit] [Edit] [Edit]
[Dropdown][Dropdown]<-onBlur---set focus to Submit Button
Submit
required: date, journal
if payee is blank,
do not recall data
else
payee is new payee
else
payee is old and no account entered
else
payee is old and account entered.
else
transfer account is entered
account is not chosen
stop. eror (javascript)
account is entered
else
transfer sub account chosen but transfer account is not
Second screen
-----
| Jnl Date Payee
| Rem Memo
----
1. Transaction Balance
Sub E Acct Sub/Num Amount Inc Dec
[ ] [ ] [ ] [ ] O O
[drop] [drop] [drop]
Amount is always positive. If they enter a (-) swap the Inc. Dec. radio select
2.CounterBalance
{Submit}{Refresh}{Blank}
|Sub Entity| |Account| |Sub Account| |Debit| |Credit|
[Drop down} [dropdown][drop down] {Enter}
(Layer with NON editable text)
Sub Acct SubAcct Amount Edit Del
[ text ] [ ] [ ] [ ] E D
[ text ] [ ] [ ] [ ] E D
E,D = image
javascript - store values in arrays
Input Items needed
* Amount
* Sub entity
* Account
* Sub account
* Debit/Credit
Options - Refresh page
Delete - remove from layer
Edit - remove from layer, place in edit fields.
The sum of the amounts in counterbalance must equal transaction balance.
IF the acct in 1. has Debit_increases=true then (+) positives in 2. are credits and (-) negatives are debits.
else acct in 1. has Debit_increases=false then (-) in 2. are credits and (+) are debits.
Copyright (c) 2001 HLR
Permission is granted to copy, distribute and/or modify this document
under the terms of the GNU Free Documentation License, Version 1.1;
A copy of the license is available at
http://www.gnu.org/licenses/licenses.html#FDL.
Updated: $Id: Journal.html,v 1.1.1.1 2001/08/09 19:02:21 moreejt Exp $