I think this would be a great feature:
When an invoice is marked as paid, a receipt (if this feature is enabled) will be automatically emailed to the payee. This receipt could be configured similarly to an invoice in the settings and the relevant bits can be copied from the original invoice to populate the receipt data.
This shouldn't be a big thing to implement but will be a very nice feature to have.
thanks guys great idea
have added it to our ideas list
http://code.google.com/p/simpleinvoices/wiki/ideas
keep posting any ideas, suggestions you have
cheers
justin
Its pretty easy to have this:
./include/class/payment.php
Change line 120 to
return $db->lastInsertId()
./modules/payments/save.php
Change to:
if($saved =='true')
{
$display_block = "Emailing Receipt to Customer<br />";
$display_block .= $LANG['save_payment_success'];^M
$invoice = getInvoice($_POST['invoice_id']);
$biller = getBiller($invoice['biller_id']);
$customer = getCustomer($invoice['customer_id']);
$spc2us_pref = "Reciept_".$result;
$pdf_file_name = $spc2us_pref . '.pdf';
$export = new export();
$export -> format = "pdf";
$export -> file_location = 'file';
$export -> module = 'payment';
$export -> id = $result;
$export -> file_name = $spc2us_pref;
$export -> execute();
$email = new email();
$email -> format = 'invoice';
$email -> from = $biller['email'];
$email -> from_friendly = $biller['name'];
$email -> to = $customer['email'];
$email -> bcc = $biller['email'];
$email -> subject = "Receipt from ".$biller['name']." is attached";
$email -> attachment = $pdf_file_name;
$message = $email -> send ();
} else {
just add " ; " on
./include/class/payment.php
like this return $db->lastInsertId();
It looks like you're new here. If you want to get involved, click one of these buttons!