Forum

Welcome to ProjeQtOr new Forum. We migrated old forum to the new website.
You will find all your posts here, with your usual account.
Just one point : you’ll have to reinitialize your password. Use “Lost password” feature.

Bill print error
 
Notifications
Clear all

Bill print error

2 Posts
2 Users
0 Reactions
2,427 Views
(@antonio-grr)
Posts: 84
Active Member
Topic starter
 
[#3789]

Hi.
I encountered a problem while trying to print a bill in pdf format from Bills page. It seems that html to pdf converterd find html tags closed in wrong order.
I fixed the bug changing the code in ObjectDetail.php from

} else if (substr($col, 0, 5) == '_spe_') { // if field is _spe_xxxx, draw the specific item xxx
$item=substr($col, 5);
if ($internalTable) echo '

';
else echo '

';
echo $obj->drawSpecificItem($item); // the method must be implemented in the corresponidng class
if ($internalTable) echo '

';
else echo '

';

to

} else if (substr($col, 0, 5) == '_spe_') { // if field is _spe_xxxx, draw the specific item xxx
$item = substr($col, 5);
if ($internalTable) {
if ($internalTable % $internalTableCols == 0) {
echo ' ' . $cr;
$internalTableCurrentRow++;
} else {
echo ' ';
}
} else {
echo '

';
}
echo $obj->drawSpecificItem($item); // the method must be implemented in the corresponidng class
if ($internalTable) {
// echo '

';
} else {
echo '

';
}

I'm not sure that this changes are safe for all usages of the module.
Best regards


 
Posted : 26 Oct 2016 17H21
babynus
(@babynus)
Posts: 14953
Main Contributor Admin
 

Hi,

Thanks for the fix.
We'll test it and include it in next release if it bring no regression elswhere.


 
Posted : 26 Oct 2016 20H07
Share:

Scroll to Top