Hot Key to move to a specific field in a form - how is that achieved?

5,677

(12 replies, posted in Items and Inventory)

You will need to clear any browser cache left over.

I only looked into one report listing the assets. Can you list the assets correctly as a report? This extension uses functions and triggers and hence your MySQL database user must have the necessary privileges.

List each issue and what file / url shows up on the browser for each issue and what menu click sequence brought up the issue. This will help replicate and resolve the issue.

Since the extensions are not in a repo for public to refine it over time and are just packed up into pkgs with magic glue it is a little difficult for the community to contribute and appears designed to help only coders.

I am planning a git repo for the extensions from where users can manually upload extensions outside of the magic web interface - any takers? Maintaining a repo over time is time consuming and requires great commitment - the folks at FA are already doing the best they can under the circumstances and it will not be fair to burden them any more.

Whilst Charts of Accounts, Languages and Themes get updated fast, extensions take longer to get updated when they do.

Each Report will have different variables. The pdf_report.inc file is used for all reports. You must use the variable from the repXXX.php file you want after checking that it is the report being generated before inserting into the $msg string.

Actually, in such instances, a html email or plain text email can be an option for the reports along with PDF/Excel.

5,679

(12 replies, posted in Items and Inventory)

It appears that the SELECT field assets.id was erroneously made same as the GROUP BY field.

Edit Line 34 of modules/asset_register-2.3.3-9/reporting/rep_assets_list.php:

            $sql = "SELECT ".TB_PREF."asset_types.asset_type_id,

to

            $sql = "SELECT ".TB_PREF."assets.asset_id,

Code from this link may help.

Ctrl-M is an alternative Carriage Return character (CR) - 0x0D.


includes/ui/ui_controls.php has a few shortcut keys defined outside of the functions at lines 443 - 457:

/* Table editor interfaces. Key is editor type
    0 => url of editor page
    1 => hotkey code
    2 => context help
*/
$popup_editors = array(
    'customer' => array('/sales/manage/customers.php?debtor_no=', 
        113,    _("Customers"), 900, 500),
    'branch' => array('/sales/manage/customer_branches.php?SelectedBranch=', 
        114, _("Branches"), 900, 700),
    'supplier' => array('/purchasing/manage/suppliers.php?supplier_id=', 
        113, _("Suppliers"), 900, 700),
    'item' => array('/inventory/manage/items.php?stock_id=', 
        115, _("Items"), 800, 600)
);

The "F#" function keys are coded in the succeeding function:

/*
    Bind editors for various selectors.
    $type - type of editor
    $input - name of related input field
    $caller - optional function key code (available values F1-F12: 112-123,
        true: default)
*/
function set_editor($type, $input, $caller=true)
{
    global $path_to_root, $Editors, $popup_editors, $Pagehelp;

    $key = $caller===true ? $popup_editors[$type][1] : $caller;

    $Editors[$key] = array( $path_to_root . $popup_editors[$type][0], $input, 
        $popup_editors[$type][3], $popup_editors[$type][4]);
    
    $help = 'F' . ($key - 111) . ' - ';
    $help .= $popup_editors[$type][2];
    $Pagehelp[] = $help;
}

What is the current status of this issue?
Where are the hot key definitions stored?
Any report to list them?

5,682

(4 replies, posted in FA Modifications)

Are they actually the same company with different profit centres or are they a Parent and subsidiary? If the former, then use Tags and / or Dimensions.

5,683

(4 replies, posted in Report Bugs here)

Signs of the Sign! There you go.

5,684

(3 replies, posted in Reporting)

As the SQL would be different, either a flag is to be used or another report done.

5,685

(5 replies, posted in Installation)

Compare the SQL dumps of both installs and check in non transactional data for differences.

Search thru FULLTEXT using phpMyAdmin is possible.

5,687

(12 replies, posted in Items and Inventory)

Look up the sql used. It will be missing a GROUP BY clause and possibly a SUM/COUNT aggregate function as well.

5,688

(10 replies, posted in Items and Inventory)

I hope so too!

5,689

(10 replies, posted in Items and Inventory)

Hence we are not following the Debit is -ve and Credit is +ve rule for all accounts like most packages do or is it only in the presentation that there exists a difference in the P&L?

Since Cash on hand will always be debit, should not the Assets be -ve and Liabilities be +ve?
The earlier post with the example of cash withdrawal from bank actually appears to support Assets being -ve and Liabilities being +ve as seen from a gl transaction record.

5,690

(10 replies, posted in Items and Inventory)

Therefore, in FA, all debits are +ve and credits are -ve - right?
Withdraw cash from bank:
Debit Cash (+ve)
Credit Bank (-ve)

Is the above okay? If so, the signs in Post 4 will all be reversed.

5,691

(10 replies, posted in Items and Inventory)

Yes Janusz, the ledger will become correct only at the year end - after all in such businesses, most of the profit gets accumulated in stocks that appreciate in time without getting taxed - when sold, the sale price cannot be disputed since it is 'old stock' and in non-recorded condition!

The real reason, however, is that there are no clerks to enter such consumption vouchers as and when it occurs. Also, such businesses do accounting just because the Govt / Statutory bodies require it - transactions being purely on trust, interest-free credit and mostly on cash and carry basis. That is why such businesses thrive - unnecessary white collar salaries that do not contribute to the bottom line. At best the ledger folio of Suppliers and Creditors would suffice for them to manage Payables and Receivables.

Yes Joe, the Calculated return bridges both Profit and Loss and both sides of the divide, but for those coming from conventional manual accounting, especially vernacular ones (an old Indian one has audit tracking using a daybook-cum-ledger accounting that the Indian money lenders of the British Empire used to transfer the pay of British troops back home - look up a building that is 4th from Buckingham Palace - 1878), it is a tad offbeat to contend with in the short run.

Thanks for the inputs and clarifications!

What sign convention do we use in FA? The loss seems +ve in the Balance Sheet - the one I am converting from Tally.....

Is this okay:

Assets +ve
Liabilities -ve
Income +ve
Expense -ve
P & L = -ve of (Income+Expense) placed alongside Liabilities in the Balance Sheet

5,692

(6 replies, posted in Wish List)

FA uses hooks. The devs can incorporated one for such email message parameter tweaks, CAPTCHA auth addons, etc., in the base code of FA.

5,693

(10 replies, posted in Items and Inventory)

In Indian Accounting for many small enterprises with just one trusted accountant / owner,
1. whenever there is a purchase it goes into the purchase account,
2. but whenever there is an issue to production / consumption, it is not accounted for till the year end
3. At the year end it is determined as:

Consumption = Opening Stock + Purchases - Closing Stock

This may be an extension of the closed post for Belgian Accounting.

The words Calculated Return need to be changed to Profit (when there is profit) or Loss (when there is a loss) and needs to appear in the appropriate side of the Balance Sheet. This is imperative for such users who wish to migrate from Tally to FA.

5,694

(38 replies, posted in Accounts Receivable)

Thank Joe. HG Changeset 3178 did it.

Now in order to leverage it, we need new config variables or sys_prefs entries to switch between
the default (current for backwards compatibility) Comapny Name and Company EMail and
the optional User Real name and User EMail
in determining the mail sender name and Reply-to name.
Sys_prefs would be preferable as they can be set on a per company basis. It should be coded to fall back to the other if one is absent.

Try the FA v2.3.14 HG Build 3175 available in post 11 of a thread[ here and see if the problem persists.

5,696

(10 replies, posted in Announcements)

FA v2.3.14 Mercurial Build 3175 dated 2013-02-01.

5,697

(6 replies, posted in Accounts Receivable)

GIT repo can also be in a normal ubuntu desktop as well. Can run a Win "Box" on Ubuntu in VMWare / Virtual Box as well or Win Apps in Wine.

5,698

(7 replies, posted in Setup)

Mere deletion of data records is insufficient.
The auto_increment counter has to be reset as well if used.
Hence a TRUNCATE command is better suited for purges.

Also, some of the data should not be purges as they may pertain to
  permissions,
  logical inter-relationships used in code,
  drop-down list and other form element choices,
  sys_prefs choices.

The recomended way: After FA is setup and tweaked (extensions, languages, roles, prefs) the way you want it. take a backup and use it to restore for purges later on. Remember the passwords as well for the restored state.

5,699

(38 replies, posted in Accounts Receivable)

@ed10: thanks for the info.

Since the users.email field is not being used anywhere in the code if acquired using get_user_by_login() (as is done here in line 81 of includes/current_user.inc), the following patch will ensure it's availability in any script that uses it:

--- old/includes/current_user.inc    Thu Jan 17 19:16:02 2013
+++ new/includes/current_user.inc    Mon Feb 04 05:42:49 2013
@@ -22,6 +22,7 @@
     var $loginname;
     var $username;
     var $name;
+    var $email;
     var $company; // user's company
     var $pos;
     var $access;
@@ -120,6 +121,7 @@
                 $this->username = $this->loginname;
                 $this->prefs = new user_prefs($myrow);
                 $this->user = @$myrow["id"];
+                $this->email = @$myrow["email"];
                 update_user_visitdate($this->username);
                 $this->logged = true;
                 $this->last_act = time();

5,700

(6 replies, posted in Accounts Receivable)

Safest way is to have your own GIT repo in a local win box. Take a WinMerge2 diff at each change pulled into GIT and upload the diffs alone. Have a set of non-fa-repo code that needs to be matched with changes in their scripts in the fa_repo and then merge carefully. Since such scripts will be only a handful, it might be better off than conflict resolution in HG. By the way IMHO, HG is not very user friendly to the newbie (YMMV). Git is fantastic. GitHub is a fine online store for it.

To make it easier for the community, I place the diffs in the FA Release Announcement posts from time to time. The Wiki has the bash scripts to do a pull and roll up of the bleeding edge HG code. My request for an online HG snapshot enablement in SF has gone unheeded till date.