1

(36 replies, posted in FA Modifications)

I have the modification in the following link:
http://stuff.w3shaman.com/others/fa-autocomplete.zip

Please, remember to backup your code before using it.

Hi,

In the supplier payment page, we can only enter the payment for supplier one by one. Is it possible to enter the payment once for may suppliers?

3

(36 replies, posted in FA Modifications)

I really like this modification and I'm using it in my development. Few days ago I try to fix the problem related to TAB and lost focus I made the following modifications.

typer.onfocus = function (event) {
    # pop("block"); // I remove this.
    // Then add this line so the textfield will not lost focus if Enter is pressed.
    save_focus(typer);
    typer.select();
};

And also this one.

// I add the 9 (Tab) and 16 (Shift) so the popup list will not be displayed if tab or shift is pressed.
if(event.which!=13&&event.which!=16&&event.which!=17&&event.which!=18&&event.which!=19&&event.which!=20
    &&event.which!=27&&event.which!=35&&event.which!=36&&event.which!=37&&event.which!=38
    &&event.which!=39&&event.which!=40&&event.which!=91&&event.which!=93&&event.which!=224
    &&event.which!=16&&event.which!=9){

After that modification, the autocomplete textfield will not lose the focus when I press Enter and I can safely press Tab to move to cursor to another element.

But one issue still remains in item list that has the textfield for typing item code. In the previous traditional select, when we type the item code, the selected item in list will be changed too based on the code we type. But that's not happen now.

Anoop, I think you can consider to put this modification to GitHub so the people can contribute easier for the development smile.


Thank you

4

(36 replies, posted in FA Modifications)

Hi, I made a little modification to your Javascript like following. This modification will allow us to search string that contains the Regex special characters.

if (typer.value != '' && typer.value != null) {
    var pattern = escapeRegExp(typer.value); // Escape some Regex special character.
    var tes = new RegExp('(' + pattern + ')', "i");
    pop('block', tes);

}

I also add this new function to do the escaping process.

function escapeRegExp(str) {
  return str.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g, "\\$&");
}

5

(36 replies, posted in FA Modifications)

Looks great. I'll try it.

Thanks.

6

(10 replies, posted in Reporting)

gj6n68 wrote:

I did exactly as you mentioned, just that I need the title to be COMMERCIAL INVOICE, but still not luck.

  
                {
                    $rep->title = 'COMMERCIAL INVOICE';
                    $rep->filename = "Delivery" . $myrow['reference'] . ".pdf";
                } 

Hi, you need to take a look at reporting/includes/doctext.inc too. I think it will not difficult to find the string you need to edit there.

apmuthu wrote:

If you decide to retain the transactions for Jan-Mar in the old accounting system, then enter the march end closing balances as the April 1st opening balances by making a journal entry for the mid year Balance Sheet and P&L entries (entire Trial Balance) as of 31st March.

In the case of migrating to FA during start of a fiscal year, only the Balance Sheet closing balances of the previous fiscal need be carried forward.

Thanks for your information apmuthu.

I think set_ext_domain() is for separating .po files for each extension isn't it?
I think we need to call the add_access_extension() function in session.inc, or we should call it in each module, or we should manually add $security_areas item for the new extension in includes/access_level.inc. CMIIW.

Hi,

Is there any possibility to move the function call add_access_extensions() from index.php into the last line of includes/session.inc? Because I found a problem when I develop an extension that create an additional tab.

That new tab is appear when I click the other tab. So I'm on the URL like following:
index.php?application=stock
Because the add_access_extension is called in index.php

But when I click one menu, which point to the URL like following.
inventory/transfers.php?NewTransfer=1
My new tab is disappear and there is an error message saying undefined index SA_blablabla.
I found that was because the add_access_extension is not called in that page.

So I think we should move the add_access_extensions() function call to the includes/session.inc file which is called in every page. It could be a bug or me that was wrong, so I need the opinion from you guys about this.

Hi,

I helped one company to migrate their old system to FrontAccounting. The implementation is scheduled to be executed in April which means in the middle of current fiscal year and there are some transactions from January to March. Is there any recommendation about the best way to do this?

I also have read some references from the following links:
https://frontaccounting.com/fawiki/index.php?n=Main.OpeningBalances
https://frontaccounting.com/punbb/viewtopic.php?id=663

Is there any additional things I need to do besides the explanation from the links above?

joe wrote:

@Bogeyman2007

Your code for popup search has been implemented in 2.4. Is has been modified slightly to work with the existing list searck for customer, suppliers and items. It works well and I thank you for your contribution.

Do you want to get credited with a form of a name, please let me know.

The popup search can be disabled for those wanted that.

Joe

Hi Joe, that's nice. It's OK about the credit. What I really want is to see the popup window for searching implemented in next version. Thanks to you too for modifying and making it better.

apmuthu wrote:

10 items that match the filter is displayed. cool-autosuggest would be nice.

So we need to include jQuery for that.

apmuthu wrote:

Yes, the existing popup search functionality F2,F3, F4 and space.

See my previous post again for some edits and the attachment.

It doesn't clash with them, I've tested it smile
See my previous post too, the BOM session you talk about in the attachment in another thing that didn't related to the popup window feature.

UPDATE: OK.. I see about the whitespace problem.. Thank you...

apmuthu wrote:

I do hope they do not clash with the new popup search functionality in FA 2.4 and the existing one in FA 2.3.

Whenever you make changes to the core files, make sure you make all your white space changes first and then do a commit before the actual commit with your code changes. This will make it easier to follow the real changes.

Do you mean the popup when we press F2, F3, or F4? About the whitespace, yea that's my bad. At first I forgot to change my editor configuration because I use 2 spaces for tab at first.

UPDATE: Sorry, actually the BOM session changes is not related to the popup window. That's another change from me, a new feature to manage BOM together with new manufactured item creation or when the we update manufactured item.

Hello,

I just made some modifications to add popup window for searching items, suppliers, customers, or GL accounts. Basically I just add a clickable icon right beside the dropdown list and when the icon is clicked a popup window will appear and we can do the search there. When we made the selection to the search list, the selected item will be selected in the dropdown list too.

The modified source is available on GitHub:
https://github.com/w3shaman/FA

The detailed list of files that modified for this change is written on my blog post:
http://w3shaman.com/article/using-popup-window-search-item-frontaccounting

I haven't prepared the demo yet.

15

(6 replies, posted in Accounts Payable)

joe wrote:

Hello,

Use your petty cash account. This should be established as a bank account. Then you can use this at both selling and purchasing.
Even if it is called a bank account, it is your own cash register account.

Joe

Hi Joe,
Thanks for your reply. So I guess I need to add one supplier (for the example I give its name "Cash"). And then in manage supplier page, I use Petty Cash Account for the "Accounts Payable Account". Is it correct?

EDIT:
Or I just need to enter direct invoice and then enter the payment and choose Petty Cash Account  in "From Bank Account" option?

16

(6 replies, posted in Accounts Payable)

Hi,
I have some items which purchased with cash.  I want to know what is the correct way to input the item purchasing with cash?

Thanks in advance.

17

(1 replies, posted in Items and Inventory)

Hi, I'm trying to implement FrontAccounting in a company which sells vegetables. Sometimes they buy it from another farmer but sometimes they harvest some vegetables from their own farm. My question is how to add the inventory stock  if items is produced from their own farm? I guess I can't use purchasing module for this.

Thanks in advance.

18

(5 replies, posted in Report Bugs here)

apmuthu wrote:

Apache 2.4.3 ?
I've tested it on WinXP-XAMPP and Debian Squeeze with Apache 2.2+ and PHP 5.3.x on WindowsXP/7/8.1 clients
Please use the FA v2.3.24+ snapshot instead of the release version and see if that makes a difference.

Does this have anything to do with the LinuxMint GUI on the client side? Check with FireFox versions like 37.0.2 (after which the http port on the client PC was opened up for the browser) or older.

Even though the insert.js is the one controlling the keystrokes and their intended functionality, it is possible that the underlying OS (LinuxMint) does not allow it's international functionality and controls to be overridden.

I've tried in Windows 7 and got the same problem when I open the demo site (http://demo.frontaccounting.eu). Let's make this more clear. Here are the steps to reproduce the problem:
1. Login to FrontAccounting
2. Click on any tab (eg. Items and Inventory)
3. Press Alt + Tab to navigate through the opened windows and back again to FrontAccounting page
4. Click on another tab (eg. Manufacturing) and there will be no respond.

If we are entering data on a form, we can still continue the input process and submit it. We only can't click another link to move to another page after we press Alt + Tab and navigate to another window.

NOTE: If I press "Alt" (just Alt button) once again or press F5, the link is just working normally and I can go to another page.

I don't know if it's only me who experience this, but I will try what you have suggested. I'll try the snapshot version.

Thank you.

19

(5 replies, posted in Report Bugs here)

apmuthu wrote:

FA v2.3.24+ works fine with no fix done. Tested on FireFox 34+ and XAMPP 1.7+ on standard default theme.

What browser and what server and client OSes did you test it on and what themes needed it?

Is it that you are using a very old version of FA.

The entire revision set history for the said file from v2.2.1 onwards (Dec 2009) till date version wise is here.

The history from Aug 2008 on a commit-wise basis is here.

Is this raking up this old post?

Hey, that's really surprising me because I'm using FA v2.3.24 with default theme too. Here are my software specification when I tested it.
- Browser : Firefox 40, Google Chrome 44
- OS : Linux Mint 17.2
- Web server : Apache 2.4.3
- PHP : 5.4.7
- MySQL : 5.5.27

20

(5 replies, posted in Report Bugs here)

After we navigate through every windows with Alt + Tab and go back to FrontAccounting page, clicking any link is not taking any effect.

I made the fix in inserts.js file based on the following link after searching on Google:
https://frontaccounting.cvs.sourceforge.net/viewvc/frontaccounting/frontaccount/js/inserts.js?r1=1.6&r2=1.7

To reproduce this problem:
Navigate through every windows with Alt + Tab and go back to FrontAccounting page.

Here is the file. Don't forget to clear the cache before trying it.
https://drive.google.com/file/d/0B4yGh9VGW9V4bzRuSkczN2J5NjQ/view?usp=sharing