1,151

(27 replies, posted in Installation)

Verify with the stock sql/en_US-new.sql for any schema changes and unused tables and field orders.

Work Done - Supplier Invoice:
Cr John $98
Cr Witholding Tax Payable $2
Dr Repairs and Maintenance (Actual Invoice Amount) $100

Supplier Paid / Allocated
Dr John $98
Cr Bank/Cash $98

Witholding Tax Payment (consolidating all such payables like many $2 or such taxes)
Dr Witholding Tax Payable $2
Cr Bank/Cash $2

@joe: any fixes to the core?

1,154

(5 replies, posted in Setup)

Study existing themes in the FA24extensions repo.

1,155

(5 replies, posted in Setup)

Create a brand new theme with your icons in place and other customisations.

May need direct DB intervention. Test with debug turned on.

1,157

(8 replies, posted in Translations)

Upload your Dutch translations and paste the link here.
Compare with those in the FA24extensions repo and in Transifex.

The mobile IP keeps getting changed frequently - try searching the forum for a post on disabling IP hijack code in FA.

1,159

(14 replies, posted in Setup)

For Windows, use the following and schedule them as desired:

FTP Code File

To transfer the file from C:\Users\Admin\Desktop\Test\myfile.zip to the /backupfolder in a remote FTP server we create a file , viz., myremote.ftp in the same folder where our file to be transferred resides having the following text contents:

open <IP of FTP Server>
<FTP Username>
<FTP Password>
lcd /D "C:\Users\Admin\Desktop\Test\"
cd /backupfolder
binary
mput <file to be backed up - wildcards accepted>
disconnect
quit

Windows Batch File

Create a file zipftp.bat to zip up the set of files to be backed up (to a remote FTP server with the above credentials) having the following text contents:

SET MYFILE="myfile.zip"
IF EXIST %MYFILE% DEL /F %MYFILE%
 
"C:\Program Files\7-Zip\7z.exe" a -tzip %MYFILE% myFAfolder
 
sleep 1
 
# A remote file is automatically overwritten when a local file that
# is PUT or MPUT has the same name as the remote file.
 
ftp -i -s:myremote.ftp

1,160

(5 replies, posted in Setup)

The various icons are in the themes/*/images folder.

Use a Journal Voucher. When an advance is given it will be either in cash or by bank entry or notional / abstract value like royalty / goodwill / goods. Use the appropriate contra account that was the source of funding in the first place.

Check stale session variables and the need to clear some $_GET variables and acquire it afresh in context.

There could also be several forms on a page that need to be refreshed whilst Ajax addresses only one form at a time.

1,163

(1 replies, posted in Banking and General Ledger)

The file includes/errors.inc has a function frindly_db_error() that is responsible for this. Check the context in which this error appears and then trace it. The said function is called only from within the said file's other function check_db_error(). This means that you will need to watch the parameters that come into the latter function and check which db table record is duplicate based on the sql passed in.

Making the Memo field a textarea instead of text input will do the job. All memo fields are TINYTEXT and hence can support reasonably sized multi line textarea content.

# grep memo sql/en_US-new.sql
  `memo_` tinytext NOT NULL,
  `memo_` tinytext,
  `memo_` tinytext NOT NULL,
  `memo` tinytext NOT NULL,
  `memo_` tinytext,
  `memo` tinytext,
  `memo_` tinytext NOT NULL,

Unless the whole page is refreshed (no need for Ajax then) as in a regular Submit, other parts of the page are generally not refreshed.

Ajax, by it's very purpose of use is intended to address small / localised tag specific changes on the occurrence of some event generally the change in a field value.

Multiple such Ajax updates can be triggered by such a change to simulate a full page refresh but alignments and overflow of content will need to be handled gracefully.

Unless the Ajax submit specifically restricts variable passing, in general, all $_POST / $_GET elements will be sent in to maintain state with the form at hand and be available globally. Any other variables needed inside of any function must suitably be brought in as arguments or be declared global with it.

1,167

(12 replies, posted in Translations)

All strings in your screenshot are already there in the po file and hence in the mo file. The official repo provides ar_EG v2.4.1-3 but my repo provides ar_EG v2.4.3-1. This will need to be changed in the lang/installed_languages.inc file as well if manually updated.

See attachment for all strings properly translated.

The ar_EG language is part of the Transifex translations from where one can take the latest translations.

Check scope and visibility of the variables concerned at the place where they should be available. Also check the case sensitivity of the parameters passed in for comparison.

1,169

(12 replies, posted in Translations)

Making translation changes to the .po file and then compiling the official FA strings into a .mo file and replacing them in the FA language folder will make the changes visible possibly after a restart of the webserver.

Have a look at the compiled versions in the FA24extensions repo for ar_EG.

1,170

(12 replies, posted in Translations)

The only Arabic translation in FA for now is the Egyptian version - ar_EG.

Unless the original string is in the empty.po, it is not referred to in the FA codebase.
empty.po should not be ordinarily edited.
A copy of the empty.po is taken and translated for each language.
If you are making a new module, then keep the language files for it in it's codebase and not in the FA core.

Must you have to urlencode the link?

1,172

(12 replies, posted in Translations)

There is no "Current Assets" (Google Translated الأصول الحالية) string in the official language template empty.po.

1,173

(1 replies, posted in Setup)

Set the following variable in config.php:

$help_base_url = null;

This will suppress the Help link on the top right menu.

@joe: are we using a stale session here?

These are for CSS Styling classes. If the function argument is a scalar, then it goes into an array and if an array it is passed on as is.