@joe: Kindly add RBI into the list of forex providers as appropriate using the list from my function.

At the moment, YAHOO does not provide Forex for FA.
Link: http://203.84.220.151/d/quotes.csv?s=INRLKR=X&f=sl1d1t1ba&e=.csv

ECB provides Forex rates for:

AUD
BGN
BRL
CAD
CHF
CNY
CZK
DKK
GBP
HKD
HRK
HUF
IDR
ILS
INR
ISK
JPY
KRW
MXN
MYR
NOK
NZD
PHP
PLN
RON
RUB
SEK
SGD
THB
TRY
USD
ZAR

Link: http://www.ecb.europa.eu/stats/eurofxref/eurofxref-daily.xml

GOOGLE works for some currencies and the list of valid currencies differs between access locations.
Link: http://finance.google.com/finance/converter?a=1&from=LKR&to=INR

BLOOMBERG has issues with some currencies like LKR.

https://www.bloomberg.com/quote/LKRINR:CUR

The search for LKRINR:CUR produced no matches. Try the symbol search.

Many symbols available on the Bloomberg Professional Service are not available on Bloomberg.com. To learn more about the Bloomberg Professional Service...

Search the Forum and Wiki first.

https://frontaccounting.com/punbb/viewtopic.php?id=4095
https://frontaccounting.com/punbb/viewtopic.php?id=3863

The template file is in lang/new_language_template/locale.inc which you need to copy over to your language folder  and make your own routines - if they are different from normal English methods on standard translations.

1,853

(2 replies, posted in Report Bugs here)

@joe: Committed

1,854

(1 replies, posted in Reporting)

The TB_PREF is a constant defined as the value of the tbpref array element in the appropriate company# in the config_db.php file. It is the table prefix for your database instance used for the company under reference, generally: 0_, 1_, etc.

All PT_* and ST_* constants among others are defined in includes/types.inc file.

The hard coded date and other parts of the sql are generally taken from the SysPrefs object or from various form fields the scripts interact with.

vTigerCRM community edition is free.

1,856

(11 replies, posted in Reporting)

Unless filtered by a specific voucher type, the number wise sorting will be erroneous as the same number can appear across different dates if they belong to different voucher types.

As the vouchers are sorted by date, all transaction numbers across all voucher types will get listed in the order they were entered by default.

In the case of rep702.php here, the list of transactions are obtained from the function get_gl_transactions() defined in gl/includes/db/gl_db_trans.inc where the sort order in line 176 is: ORDER BY tran_date, counter, the latter being the real sequence element within the transaction date.

vTigerCRM is one way to go where FA's account codes can be inserted into it and the CRM's member id can be inserted into  the chart_master.account_code2 field.

1,858

(3 replies, posted in Setup)

Done - Wiki Updated.

You can change it to whatever you want but remember that easily guessable filenames can be avoided using good entropy as obtains here. Rename it on file download to suit your needs. Consider how the files would stack up when mixed up with similar reports of different companies and / or different fiscal years in the same folder.

The filename for storage is computed in lines 971-974 in reporting/includes/pdf_report.inc:

            // do not use standard filenames or your sensitive company data 
            // are world readable
            $fname = $dir.'/'.random_id().'.pdf';
            $this->Output($fname, 'F');

Mail attachments and inline display will bear the file name provided in the 2nd parameter in the "new FrontReport" class instance's constructor as seen in line 73 of the same file:

    function __construct($title, $filename, $size = 'A4', $fontsize = 9, $orientation = 'P', $margins = NULL, $excelColWidthFactor = NULL)

and instantiated in each repXXX.php file.

Payments must be made and allocated to bills. Bills are generated from one or more sales deliveries. Each Delivery pertains to one or more items of a single sales order.

Make a Direct Invoice for Cash Sales of Tickets.
Make a Credit Sales of Membership with member details and allocate the payment to it.

If you wish to manage the membership separately, the make an extension for it.

The Payment Allocation generates a transaction entry for it in each instance. Hence the Balance Sheet AR/AP part of the Trial balance will only change and not the P&L or it's part of the Trial Balance.

Create an extension for it. Learn from the existing extensions in the FA24extensions repo.

1,863

(11 replies, posted in Reporting)

The Rep702 - List of Journal Entries is in report format and is already arranged by Date, but several vouchers are in each page to conserve space.

The "Banking and General Ledger/Journal Inquiry" is a screen display and you can print them one by one.

If you want to print the latter as one per page then just copy the URLs to a file and run a batch file on them and then print them all in one go.

1,864

(11 replies, posted in Reporting)

State the navigation to which page you refer to.

1,865

(7 replies, posted in Report Bugs here)

I too am uncertain of what would happen if such data is exposed in the URL and whether it can be used to hijack the session even though my last attachment works. This is so even if the backwards compatibility is not even there and for PHP 5.6+ itself.

Now that these fixes have been rolled back, those who still want this functionality of using the back button on the browser instead of the back link on the FA page and then returning to the page to where they left off, can partake of the consolidated fixes attached herein.

Await @itronics words of wisdom....

1,866

(7 replies, posted in Report Bugs here)

Attached is the set of files and the diff for incorporation into the core after the last @braathwaate commit in FA and in his pull request that included backwards PHP compatibility. Kindly test and see what gives.

@joe: can check and commit.

1,867

(6 replies, posted in Accounts Receivable)

There are 2 audit tables.

The audit_trail table is for recording all transaction references where certain NULL fields will indicate what was superceded. It is also used when closing a fiscal year and purging it.

The sql_trail table is to record all sql accesses as set in the debug parameters in the config.php file.

Thanks for the feedback on how you solved your issue. Will make for a good reference for yourself and for all users as well.

This project is maintained by @joe with valuable coding by @itronics, both sys admins of the FA project. They certainly deserve the donations to keep this project going. Your mite will join others in sustaining this project. Thanks once again.

1,868

(3 replies, posted in Setup)

Refer Wiki.

1,869

(7 replies, posted in Report Bugs here)

@braathwaate has now provided backwards compatibility (using the NonSplat_fix.diff in Post #3 here) where both get_js_history() and set_posts() work. As an example, after applying the fix above, the file sales/inquiry/sales_orders_view.php works for both Ajax as well as js history of the $_POST variables from the form.

Using the attachment, test by entering a transaction_number under "#" and then moving the cursor to the next field - the ajax will refresh the filtered page.

Some of the inquiry files will need to be synched with subsequent changes in the core.

1,870

(6 replies, posted in Accounts Receivable)

The fiscal years must be numbered in order so that closing the fiscal and purging it will nor affect the newer ones as it is ID based. If you have just one fiscal year now, then just make all fiscal year id as 2 and then create the previous fiscal year with id=1. They will appear as f_year as well in the sys_prefs table.

audit_trail.fiscal_year
fiscal_year.id
sys_prefs.name='f_year'

1,871

(7 replies, posted in Setup)

Read the following posts and the l;inks therein and FA's current limitations.
Current 2018: https://frontaccounting.com/punbb/viewtopic.php?id=7270
Circa 2010: https://frontaccounting.com/punbb/viewtopic.php?id=800

1,872

(7 replies, posted in Report Bugs here)

This entire commit should be made backwards compatible as in my previous post (or a comment added that it is for PHP v5.6+ only) as the current PHP versions that FA supports cannot handle the new constructs effectively. There are no $_GET variables available when the new set_posts() function is called in this way as the session.inc erases all $_GET values except for those coming in thru Ajax - js http requests. The set_posts() however acquires the ajaxed GET variables correctly.

The persistence of the history works on substitution of ...$vars with  $vars and changing to  get_js_history(array(......)). The ChangeVar of the combo boxes do not work even with the set_posts(array(......)) fix.

For those wishing to test it further, the attachment would be useful. It contains the BraathWaate files with the existing counterparts in the core and the altered ones to incorporate this commit into the inquiry files with the backwards compatibility fix for the new functions.

1,873

(6 replies, posted in Accounts Receivable)

Create a Credit Note / Debit Note for each Balance Sheet Entry at the beginning of the blank current and first FA fiscal. Alternatively make a Journal entry for all the balance sheet figures on the last day for the previous fiscal, open a new fiscal year, close the old fiscal year and the old closing balances will get transferred as opening balances in the new fiscal. Note that the former will allow for allocation to Supplier/Customer but the latter will address non tracked payments / receipts only.

1,874

(7 replies, posted in Setup)

Setup => Access Setup => Role => Edit Role

He means to print more than 50 characters in the first post in this topic. Which report is @netracer referring to?