Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
BankAccounts.php does not edit OK
03-07-2017, 04:34 PM (This post was last modified: 03-07-2017 04:40 PM by PakRicard.)
Post: #1
BankAccounts.php does not edit OK
Hi all:
With latest BankAccounts.php, tried to edit some bank account and script does not show it properly. It gets cut just after "default for invocies" field (check attached file for a graphic proof).

It does not happen to all bank accounts, just to some, so it must be something data-related, but could not imagine what triggers this bug.

No error shown and nothing showed on error_log. Not sure when this behaviour appeared, has been long time since last time I used this script.


Attached File(s) Thumbnail(s)
   

Regards,
Pak Ricard
Find all posts by this user
Quote this message in a reply
03-07-2017, 06:15 PM
Post: #2
RE: BankAccounts.php does not edit OK
Hi Ricard, it is because the GL code is alpha numeric, but is not quoted in the sql. Line 407 needs to read:

$result = DB_query("SELECT invoice FROM bankaccounts where accountcode ='" . $SelectedBankAccount."'" );

and it should be ok.
Tim
Visit this user's website Find all posts by this user
Quote this message in a reply
03-08-2017, 04:04 AM
Post: #3
RE: BankAccounts.php does not edit OK
Tim's change committed to SVN.
Find all posts by this user
Quote this message in a reply
03-08-2017, 04:24 AM
Post: #4
RE: BankAccounts.php does not edit OK
Thanks Paul :-)
Visit this user's website Find all posts by this user
Quote this message in a reply
03-08-2017, 07:36 PM
Post: #5
RE: BankAccounts.php does not edit OK
(03-08-2017 04:24 AM)falkoner Wrote:  Thanks Paul :-)

Thanks both of you! That was fast.

Regards,
Pak Ricard
Find all posts by this user
Quote this message in a reply
Post Reply 


Forum Jump:


User(s) browsing this thread: 1 Guest(s)