I have been struggling to try and find a way to display the payment type on the printable invoice. I counldn't find anything in the forums either. I havent worked much the smarty template system, and am not a php/mySQL expert. So is this even possible?
I see that the payments/details.tpl calls the {$paymentType.pt_description|escape:html} so there must be some way to call it in the invoice template? I guess i must be missing some functions in the modules folder. Are there functions that need to be added to preform this? If anyone knows if this is possible can you let me know where to start looking. -thx
Look at how he calls all the other info from the tables in the database.
$TableName.FieldName, and then usually some info after it. Try copying a line near where you want to put this info, then change the call to the database info, and see if it appears on the invoice. If it does, but doesn't look like you want, you have a bit more editing to do.
bmcgonag, thx for the reply but i was looking for more specific help if possible.
I think what im wondering is if the functions are availible across the modules. And my non educated guess is no, because if i use the same command fro the payments templates ie. {$paymentType.pt_description|escape:html} which displays the payment type/method for a particular invoice. It actually make the whole invoice blank. Im trying to find out where the function is that does this for the payment module. I was thinking that i could get something from the payments/xml.php but i noticed that the $sort = is slightly different.
But then agian, im still not sure if i can use a commands for any template inside another. That would be much easier than making a new function i guess.
I am still a noob at this so please excuse me if non of this makes sense :)
hey guys
i don't remember coding anyting like this - so i would say there are no function in Simple Invoices that currently do this
to do this you would
1 - have to have payments recorded against this invoice
2 - create a query to select the payment type from payments where invoice id = current_invoice_id etc..
3 - and then display thsi on the template
cheers
justin
Are there some news in this? I also need to display payment type on invoice. It's little bit strange to set up payment types in Settings, choose default payment type and then not to have chance to display it in invoice. In this time I am using Custom field to fill (write) payment type for each invoice. Are there some plans for this? I don't know what for are payment types in Settings now if I can not use them for invoices.
Please don't take my comment bad dev guys. SI is very good app.
Has this been taken care of ? We invoice people who pay us multiple times in the course of a month and would like to show the listing of payment amounts in an area on the invoice. Is that possible or can it be done on the receipt?
It looks like you're new here. If you want to get involved, click one of these buttons!