Thread Rating:
  • 0 Vote(s) - 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.)
#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 Files Thumbnail(s)
   
Regards,
Pak Ricard
Reply
03-07-2017, 06:15 PM,
#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
Reply
03-08-2017, 04:04 AM,
#3
RE: BankAccounts.php does not edit OK
Tim's change committed to SVN.
Reply
03-08-2017, 04:24 AM,
#4
RE: BankAccounts.php does not edit OK
Thanks Paul :-)
Reply
03-08-2017, 07:36 PM,
#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
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)