Some of the accounts are determined in Setup -> System and General GL Setup.

You can also add as many accounts as you like.

Suggest you set up a training company 1st, this will also help you understand the program.

Read the other links please

Your finished tables need to relate to each other so they are the same relationship as the customers/suppliers in sql/en_US-demo.sql

Hi,
apmuthu wrote 'Anatomy of adding 1 customer', which you can find  here
You could also have a look at sql/en_US-demo.sql which I think has only 2 customers and 2 suppliers and look at the relationship between tables:-
debtors_master
cust_branch
crm_persons
crm_contacts

There is also an ER diagram its for V2.3, but 2.4 is very similar

And there is a full how-to here.

Use the Sales order -> Sales Delivery -> Invoice method

Then use Customer payments in sales and deposits in Banking & GL you will then need to allocate the payment...  its in the wiki and even more wiki

@kvvaradha you're right I'm over thinking it.

Thanks for all your help

@kvvaradha, that works perfectly, thank you. Although I'm not 100% sure how it does though!
Edit after a little thought -
So it is declared using the new ext 'class Kvcodes_app extends application'
then construct the new extension but label it AP -'parent::__construct("AP"...
Then as @notrinos states although the module AP exists calling it again redirects to the new ext?
Is that right?

Now I know I was close last week...I think I tried redeclaring .... 'class AP_app extends applica...' which (I now realise) obviously will not work.

But part of me still thinks apmuthu had something else in mind when he wrote:-

Wiki wrote:

Extensions can provide another implementation of core FA area (which are always <100). This way installed extension can e.g. override Purchases tab with another one implemented completely differently.

Which to me means that the security code has to be re-defined...doesn't it?

I've tried adding the security area again, but still appears as an additional menu item

383

(2 replies, posted in Installation)

Could it be mysql user?

384

(3 replies, posted in Report Bugs here)

The sql output gives 40 opening brackets, but 44 closing brackets???

SELECT supp.supp_name, supp.curr_code, 0_payment_terms.terms,

        Sum(IFNULL(IF (trans.type=20 OR trans.type=2
      OR (trans.type=0 AND (trans.ov_amount + trans.ov_gst + trans.ov_discount)>0), 1, -1)*
            ABS(trans.ov_amount + trans.ov_gst + trans.ov_discount) - trans.alloc),0)) AS Balance,

        Sum(IF ((TO_DAYS('2018-06-15') - TO_DAYS(IF (trans.type=20 OR trans.type=21,trans.due_date,trans.tran_date))) > 0,IF (trans.type=20 OR trans.type=2
      OR (trans.type=0 AND (trans.ov_amount + trans.ov_gst + trans.ov_discount)>0), 1, -1)*
            ABS(trans.ov_amount + trans.ov_gst + trans.ov_discount) - trans.alloc),0)) AS Due,
        Sum(IF ((TO_DAYS('2018-06-15') - TO_DAYS(IF (trans.type=20 OR trans.type=21,trans.due_date,trans.tran_date))) > 30,IF (trans.type=20 OR trans.type=2
      OR (trans.type=0 AND (trans.ov_amount + trans.ov_gst + trans.ov_discount)>0), 1, -1)*
            ABS(trans.ov_amount + trans.ov_gst + trans.ov_discount) - trans.alloc),0)) AS Overdue1,
        Sum(IF ((TO_DAYS('2018-06-15') - TO_DAYS(IF (trans.type=20 OR trans.type=21,trans.due_date,trans.tran_date))) > 60,IF (trans.type=20 OR trans.type=2
      OR (trans.type=0 AND (trans.ov_amount + trans.ov_gst + trans.ov_discount)>0), 1, -1)*
            ABS(trans.ov_amount + trans.ov_gst + trans.ov_discount) - trans.alloc),0)) AS Overdue2,
        supp.credit_limit - Sum(IFNULL(IF(trans.type=21, -1, 1) 
            * (ov_amount + ov_gst + ov_discount),0)) as cur_credit,
        supp.tax_group_id

I think the problem is here 4 opening brackets - 5 closing:-
\purchasing\includes\db\suppliers_db.inc

94:         $value = "IF (trans.type=".ST_SUPPINVOICE." OR trans.type=".ST_BANKDEPOSIT."
95:       OR (trans.type=".ST_JOURNAL." AND (trans.ov_amount + trans.ov_gst + trans.ov_discount)>0), 1, -1)*
96:             ABS(trans.ov_amount + trans.ov_gst + trans.ov_discount) - trans.alloc)";

Which makes sense as the OR is called 4 times...

I cannot find when this was changed...

From my understanding of the above Line 96 should be:-

96:             ABS(trans.ov_amount + trans.ov_gst + trans.ov_discount) - trans.alloc";

Reading https://frontaccounting.com/fawiki/inde … ccessSetup near the bottom states:-

Wiki wrote:

Extensions can provide another implementation of core FA area (which are always <100). This way installed extension can e.g. override Purchases tab with another one implemented completely differently.

How is this done exactly?

For example if I wanted to replace the 'Fixed assets' tab with 'My New Extension' tab

Or

Replace the menu item in Dimensions -> 'Dimension Tags' with 'My New Menu Item'

I've tried using the same security codes as the existing menu item, but it keeps appearing as a new menu item.

Hi, Dimensions (Cost Centers) are what you need, read about them in the wiki
As you are new to FA, you may want to set up an additional installation (or company) of FA for testing, etc, you can then experiment with dimensions without affecting your company accounts

Maybe relevant? SO question

388

(1 replies, posted in Fixed Assets)

You can assign the same class, category, etc to say a motor and then use the same depreciation method for the remaining period of time which will give you the same result

But when you look at page history its all there?

Is it a permissions issue?

Anyone else have problems viewing the wiki? As in empty pages.

Tried the usual Ctrl + F5, cleared browser cache, different browsers, different pc, different ip.

Anyone else have similar?

391

(3 replies, posted in Reporting)

1st you'll need to modify or create an extension with the modified, sales quotation, sales order, direct delivery & direct sales forms to accept your new 'Gross Rate' column, so thats at least sales/sales_order_entry.php and probably a few others.
Then you will need to modify reports 107, 109 110 and 111, and possibly header2.inc which are all in the reporting folder

392

(3 replies, posted in Reporting)

There is an option to sell at wholesale or retail rate, would that help?

The invoice is 107 and the receipt is 112 as per here

You may want to look at https://tcpdf.org/

But from what I understand FA uses a customised older version (I think) but most should be relevant.

FA's tcpdf.php file is in reporting/includes do not modify this file! but each function is very well commented so is useful.

Hope this helps

395

(5 replies, posted in Reporting)

Report numbers and other info are here in the wiki

May not solve your problem as used for ordering, but could help:-

stack-overflow mysql order varchar field as integer not sure how you could use this to select next, but maybe you can?

More here @ DBA SE pad the front with zeros or use CAST

Another one here uses a different method to sort by length 1st... the article also mentions a php function natsort() which may be worth investigating

Could this be used for products of a limited shelf life - food, medicine, etc?

398

(10 replies, posted in Setup)

So, looking at https://imgur.com/HXysVQP you will see the top of the table of transaction references which is accessed by Setup -> Transaction References, for each existing reference you have the option to edit or delete, you also have the option to create a new transaction reference at the bottom of the table.
To edit an existing transaction reference click the edit icon and you will see this screen:- https://imgur.com/1Nbyczu, now you may or may  not be able to edit the prefix (in this case the prefix is 'PB') depending if you have entered transactions using this reference or not; but even if you have you can change the prefix by creating a new reference and if necessary making it the default for this type.
For added functionality you can also use placeholders discussed here and here.

399

(3 replies, posted in Accounts Payable)

All in the wiki 5th heading labeled "Sales Return and De-Allocation". Suggest you read all the relevant parts of the rest of the wiki too.

This post may also be of interest to you

400

(3 replies, posted in Accounts Payable)

Do you mean a credit note?