|
#1
|
||||
|
||||
|
Hello ,
This is my first tutorial for blesta script , in this thread i will show how to add the PAID STAMP to paid invoice . ![]() ![]() open the files "inc/invoice-pdf.class.php" , serach the line : PHP Code:
PHP Code:
if you want to use external image file , use the fallowing code PHP Code:
Thanks
__________________
Naja7Host.com النجاح هوست Moroccan & Arabic Hosting as low as 15$/Year . Domain .ma as low as 30$/Year . French Language Here Arabic Blesta's Language Soon ..... Last edited by naja7host; 04-30-2010 at 02:33 AM. Reason: correct $inv['amount_due'] code |
|
#2
|
||||
|
||||
|
Thanks for the contribution!
|
|
#3
|
|||
|
|||
|
Quote:
} // Draw the stamp for paid invoice if ($i==($pages_needed-1)) { // If the invoice is paid totally if ($inv['amount_due'] <= 0 ) { $this->pdf->addPngFromFile("./stamp.png",220,700,$this->pdf->y-320,100,0); } } $this->drawInvoiceFooter($inv); } } } ?>
__________________
B.R, David. |
|
#4
|
||||
|
||||
|
I have not tested it, but it appears to be meant for the Standard PDF Engine. If you are using the TCPDF Engine, it will not work.
|
|
#5
|
||||
|
||||
|
is not working in TCPDF .
i will poste the tips for the TCPDF , i have tested and it work .
__________________
Naja7Host.com النجاح هوست Moroccan & Arabic Hosting as low as 15$/Year . Domain .ma as low as 30$/Year . French Language Here Arabic Blesta's Language Soon ..... |
|
#6
|
||||
|
||||
|
__________________
Naja7Host.com النجاح هوست Moroccan & Arabic Hosting as low as 15$/Year . Domain .ma as low as 30$/Year . French Language Here Arabic Blesta's Language Soon ..... |
![]() |
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Custom Invoice Lines | Telifon | API & Order Forms | 1 | 12-10-2008 05:05 PM |
| PAID Stamp | naja7host | Feature Requests | 10 | 11-23-2008 09:44 PM |
| cronjob probleme !!!!! | naja7host | General Discussion | 15 | 02-07-2008 11:16 PM |