1

(10 replies, posted in Announcements)

In the previous FA version, I added @apmuthu's function https://frontaccounting.com/punbb/viewtopic.php?id=5420 to a report I customized. I tried to add it again and run on FA 2.4, but when I try to generate the report, nothing shows. I haven't looked at it really carefully, but I just wanted to know if there's something new in FA 2.4 that may be conflicting with this function or if the function has been implemented somehow in the new FA already.

Thanks

2

(10 replies, posted in Announcements)

Is this feature https://frontaccounting.com/punbb/viewtopic.php?id=5634 now implemented in the 2.4 release?

Thank you!

Sure.

In gl_db_bank_trans.inc, I added the following function to retrieve memo_:

function get_gl_trans_memo($account, $type, $trans_no)
{
    $sql = "SELECT memo_ FROM ".TB_PREF."gl_trans WHERE account="
    .db_escape($account)." AND type=".db_escape($type)
    ." AND type_no=".db_escape($trans_no);

    $result = db_query($sql, "query for gl memo_");

    $row = db_fetch_row($result);
    return $row[0];
}

--------------------------------------------------------------------------------------------------------------------------------------------------------

In rep601.php for banking report, I modified the code inside the while loop (see below) and I used the parse function provided by apmunthu to retrieve all strings stored in memo_ except the variable_values(I used the parse function  in another report that is generated through journal entry and whose variable-values I want to see).

                      while ($myrow=db_fetch($trans))
            {
                if ($zero == 0 && $myrow['amount'] == 0.0)
                    continue;
                $total += $myrow['amount'];
                               
                                $name = get_gl_trans_memo($ident,$myrow['type'],$myrow['trans_no']);  //Retrieves memo corresponding to bank transaction.
                                $name_to_store = parse_notes_params($name); //Parses memo_ string
                               

                $rep->TextCol(0, 1, $systypes_array[$myrow["type"]]);
                $rep->TextCol(1, 2,    $myrow['trans_no']);
                $rep->TextCol(2, 3,    $myrow['ref']);
                $rep->DateCol(3, 4,    $myrow["trans_date"], true);
                               
                               //Handles case for bank transaction created through a form different than journal entry.
                               if (payment_person_name($myrow["person_type_id"],$myrow["person_id"], false) == "" ){
                                    $rep->TextCol(4, 5,$name_to_store['notes']);
                                   
                                   
                                }
                               
                                $rep->TextCol(4, 5,payment_person_name($myrow["person_type_id"],$myrow["person_id"], false));
                             


-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

I found a workarounf for this. I modified one of the functions in the gl_db_bank_trans.inc file to retrieve the memo_ field of a transaction and then I call that function in the banking report using the account_code variable.


Thank you.

Without memo_, the banking report looks like this:

Type                      #     Reference         Date               Person/Item       Debit         Credit           Balance

Bank Deposit        6        2                       03/03/2015      john                  100.00                        100.00
Journal Entry       28       7                      03/23/2015                                100.00                        100.00

Person/item gets its data from the person_id and person_type_id fields in bank_trans table.

With the memo_ field it should print this:

Type                      #     Reference         Date               Person/Item       Debit         Credit           Balance

Bank Deposit        6        2                       03/03/2015      john                  100.00                        100.00
Journal Entry       28       7                      03/23/2015       george              100.00                        100.00



where george is the string stored in memo_ when creating the journal entry.

What I ultimate want is to be able to retrieve memo_ from the gl_trans table using the  keys from the bank_trans table that are present in gl_trans table. This would be only for journal entry since other transaction forms innclude the field for entering the personś id and therefore show up in the banking report.


Thank you.

Hello,

[Using FA 2.3]

I would like to know how I can get memo_ from the gl_trans table to show up in the bank statement report.

Seems like the bank statement report is made using the bank_trans table, which does not include the memo_ field.

There is no problem for entries created using payment or quick entry because they pull the person_id from the form. However, whenever I create an entry using the journal entry in the banking and general ledger section, and then proceed to print a bank statement, the memo_ field that I entered does not appear in the report.

I would like to include memo_ in the report for those entries that I create with journal entry. As of now, nothing show up for this case.


Thank you.

8

(5 replies, posted in Banking and General Ledger)

Thanks for the info Joe.

Is release 2.4 ready and available?

I want to create an extra field that would store and ID (string) value. This ID would be unique for every transaction.
For example,

+----------------+-------------+------+-----+------------+----------------+
| Field          | Type        | Null | Key | Default    | Extra          |
+----------------+-------------+------+-----+------------+----------------+
| counter        | int(11)     | NO   | PRI | NULL       | auto_increment |
| type           | smallint(6) | NO   | MUL | 0          |                |
| type_no        | bigint(16)  | NO   |     | 1          |                |
| tran_date      | date        | NO   | MUL | 0000-00-00 |                |
| account        | varchar(15) | NO   | MUL |            |                |
| memo_          | tinytext    | NO   |     | NULL       |                |
| amount         | double      | NO   |     | 0          |                |
| dimension_id   | int(11)     | NO   | MUL | 0          |                |
| dimension2_id  | int(11)     | NO   | MUL | 0          |                |
| person_type_id | int(11)     | YES  |     | NULL       |                |
| person_id      | tinyblob    | YES  |     | NULL       |                |
|tax_id          |varchar(15)|YES|      |   NULL|     |                |
+----------------+-------------+------+-----+------------+----------------+


The tax_id does not have anything to do with  the way FA assigns ID or reference numbers. It is something that the user can choose to assign.
This is required by the country accounting policies. However, since not all transactions need to be given a tax_id, tax_id field  can be left null.

In this way, if I decide to give a transaction a tax_ID, it can be stored and then used in a report.

I do not want to link the tax_id to a supplier (which I guess could be done and then just use one of the fields from supplier table in the report). The assignation of the tax_id has to be optional and occur when I´m creating and saving a new transaction. In this sense it would behave as a memo_ field, which can be left blank if a user wants to.


Thanks a lot for the help.

10

(5 replies, posted in Banking and General Ledger)

Does Frontaccounting have an option for closing entries after a month changes? I want to know if there is a way to select such option  so that one is not able to post or edit a transaction that belongs to a past month.

Thank you.

11

(5 replies, posted in FA Modifications)

So if I want to add a new column where a given field will store a sort of specific ID, would it be better to write a module?

I will still use all fields from _gl_trans table plus the one that I want to add to create a view report.

Thanks for the help.

I would like to know which files I have to modify to have a new column created in the gl_trans table whenever a new company is created.

Thank you.