So looking at the file rep109.php i try to add below code on line 82 inside the IF code then the filename generated normally, i am not a programmer can someone look at this and see if the change would not have bad impact?

code wrote:

$rep->filename = $myrow['reference'] . ".pdf";}

Regards,
SiKumbang

Need Help,

Everytime i generate email for Sales Order, the attachment is sent without fillename on the mail only show .PDF this only happens on Sales Order when i try with Invoice the attachment filename is normal showing invoice reference number as the filename

Please Help.

Regards,
SiKumbang

3

(2 replies, posted in Reporting)

Hi Netracer,

try to solve the same issue,

did you mean this code on line 146 rep301.php

code wrote:

$dec = user_price_dec();

change into

change wrote:

$dec = 2;

try that but did not do any effect it stil show 5 digit of decimal

Regards,
SiKumbang

4

(2 replies, posted in Reporting)

Hey Phuong, that is exactly what i needed, thanks a lot man, really appreciate it.

Regards,
Andi.

5

(2 replies, posted in Reporting)

Need Help,

Try to add signature on invoice, found the wiki and i try to add the code on file rep107 but it did not show any different, i put it in the print_invoice() module

code wrote:

if ($this->formData['doctype'] == ST_SALESINVOICE)
{
    $txt = "test";
    $this->TextWrapLines($ccol, $this->row, $right - $ccol, $txt, 'C')
}

should it be put on a specific line?

Regards,
SiKumbang.

6

(8 replies, posted in Report Bugs here)

Test sending mail from PHP works fine but the problem is in FA itself, so finally i reinstall FA, then problem is solved, dont know what causing it to break, but thanks a lot for all the help.

Regards,
SiKumbang.

7

(8 replies, posted in Report Bugs here)

Hi Boxygen,

After PHPMailer is set, SMTP info is input on the mail sending setup then i test to send order confirmation, but still the same as before, there is no notification if the mail is successfully sent or not, and i did not receive the email.

can you help me test my smtp on your server to see if it can send or not?

Regards,
SiKumbang

8

(8 replies, posted in Report Bugs here)

Guys, needs some enlightment.
So i setup ssmtp and edit the ssmtp.conf as well as sendmail path in php.ini to be /usr/sbin/ssmtp -t but email funtion in FA is not working
I test with order confirmation, email address is set on the customer contact for order confirmation, then when i click the button "Email this order" there is no notification if the mail is successfull or not

what i did was
1. test the ssmtp function through terminal, it did work 

mail.log wrote:

Sep 27 15:53:27 vps661017 sSMTP[8719]: Sent mail for fa@kbn-indo.com (221 srv76.niagahoster.com closing connection) uid=0 username=root outbytes=363
Sep 27 16:09:21 vps661017 sSMTP[8968]: Creating SSL connection to host
Sep 27 16:09:21 vps661017 sSMTP[8968]: SSL connection using ECDHE_RSA_AES_256_GCM_SHA384
Sep 27 16:09:28 vps661017 sSMTP[8968]: Sent mail for fa@kbn-indo.com (221 srv76.niagahoster.com closing connection) uid=0 username=root outbytes=359
Sep 27 16:11:55 vps661017 sSMTP[9048]: Creating SSL connection to host
Sep 27 16:11:55 vps661017 sSMTP[9048]: SSL connection using ECDHE_RSA_AES_256_GCM_SHA384

2. i create this php file to test sending from a php

code wrote:

<?php
    ini_set( 'display_errors', 1 );
    error_reporting( E_ALL );
    $from = "test@hostinger-tutorials.com";
    $to = "test@gmail.com";
    $subject = "Checking PHP mail";
    $message = "PHP mail works just fine";
    $headers = "From:" . $from;
    mail($to,$subject,$message, $headers);
    echo "The email message was sent.";
?>

it did successfully sent

mail.log wrote:

Sep 27 16:12:02 vps661017 sSMTP[9048]: Sent mail for fa@kbn-indo.com (221 srv76.niagahoster.com closing connection) uid=33 username=www-data outbytes=387
Sep 27 16:14:20 vps661017 sSMTP[9077]: Creating SSL connection to host
Sep 27 16:14:21 vps661017 sSMTP[9077]: SSL connection using ECDHE_RSA_AES_256_GCM_SHA384
Sep 27 16:14:25 vps661017 sSMTP[9077]: Sent mail for fa@kbn-indo.com (221 srv76.niagahoster.com closing connection) uid=33 username=www-data outbytes=387
[27-Sep-2019 16:15:57 Asia/Jakarta] mail() on [/var/www/html/FA/testmail.php:9]: To: andi.budiman@gmail.com -- Headers: From:fa@kbn-indo.com -- Subject: Checking PHP mail
Sep 27 16:15:57 vps661017 sSMTP[9090]: Creating SSL connection to host
Sep 27 16:15:57 vps661017 sSMTP[9090]: SSL connection using ECDHE_RSA_AES_256_GCM_SHA384
Sep 27 16:16:02 vps661017 sSMTP[9090]: Sent mail for fa@kbn-indo.com (221 srv76.niagahoster.com closing connection) uid=33 username=www-data outbytes=387

But everytime i test on FA, mail.log did not show anything, it was like the mail function just not run
Please help.

Regards,
SiKumbang

notrinos wrote:

Try font files attached here, this is the files that I'm using on my system with the same setting without bold issue
https://www.dropbox.com/s/s2tj56yo2qrlb … s.zip?dl=0

Notrinos... you are the man! it works!
thanks a lot, really really apreciate it.

Hi kvvaradha,
my problem is now fixed with that font file from notrinos, thanks for the heads up.

Hi Rafat,
so here is content of my installed_language.inc

installed_language wrote:

<?php

/* How to make new entries here for non-packaged languages:

-- 'code' should match the name of the directory for the language under \lang
.-- 'name' is the name that will be displayed in the language selection list (in Users and Display Setup)
-- 'rtl' only needs to be set for right-to-left languages like Arabic and Hebrew
-- 'encoding' used in translation file
-- 'version' always set to '' for manually installed languages.
-- 'path' installation path related to FA root (e.g. 'lang/en_US').
*/


$installed_languages = array (
  0 =>
  array (
    'code' => 'C',
    'name' => 'English',
    'encoding' => 'iso-8859-1',
  ),
  1 =>
  array (
    'code' => 'en_US',
    'name' => 'Indo',
    'path' => 'lang/en_US',
    'encoding' => 'iso-8859-1',
    'rtl' => false,
    'package' => '',
    'version' => '',
  ),
  2 =>
  array (
    'name' => 'Indonesian',
    'package' => 'id_ID',
    'code' => 'id_ID',
    'encoding' => 'utf-8',
    'version' => '2.4.1-3',
    'path' => 'lang/id_ID',
  ),
);

$dflt_lang = 'id_ID';

location of .po and.mo files is in each language folder
/var/www/html/FA/lang/id_ID/LC_MESSAGES
/var/www/html/FA/lang/en_US/LC_MESSAGES
Linux version ubuntu 18.04 LTS

Hi Notrinos,
Try to put the dejavusans (.php, .z, .ctg.z) and dejavusanb (.php, .z, .ctg.z) files on reporting/fonts then choose Indonesia as the language when opening the invoice it returns TCPDF error: Could not include font definition file: dejavusans.php
try tp change the line 160 of class.pdf.inc with dejavusansb it return the same error,
if i set to Indo it works, translated correctly with bold text, but the menu and sub menu still in english.

Hi Notrinos,

After restart apache service document go back to english, now only the login page that translated.
So i repeat it from the start, delete the code section of en_US in the installed_language.inc, delete the folder en_US, then repeat from the start, but before changing the language to Indo i restart the apache service, result is the same as before, document translated correctly with Bold text, login page also translated correctly but the main menu and sub menu still in English.

Hi Notrinos,

so after i add it manually the language still in English, then i change the default language to Indonesia (not indo) then the document is translated correctly with Bold text, login page also translated correctly, but the main menu and sub menu is still in english.

notrinos wrote:

open lang/installed_languages.inc find your language array then replace 'encoding' => 'utf-8' with 'encoding' => 'iso-8859-1'

Hi Notrinos,

before i update the encoding, the settings were already in indonesian, after i change the encoding and login to the system language become English eventhough the language in the display settings is Indonesia, i refert back the encoding but still the language stays in English, the language in display settings have no effect even if i change it back and forth from English to indonesia it will stay in English,  i must remove the indonesia and reinstall then it go back to normal but still the Bold text did not show.

when i use translation language, font on the document no longer Bold, how to fix this?

example, in invoice on English language the title Item Code, Item Description, Quantity Unit, Price, Discount %, Total, TOTAL INVOICE and amount in words is Bold, but when i use translation language Indonesia installed from the extension, it is no longer bold.

notrinos wrote:

try replace the inventory/includes/stock_transfers_ui.inc with this code (also in attachment) then check if any problem

Hey Notrinos, thanks a lot for your help it sure works! really appreciate it.

i try to do inventory location transfer for kit items but the kit code is not available to be selected, is there a way to enable this?