Rechnungsmodul: Platzhalter für INVOICE_DATE fehlt

#1
Im Rechnungsmodul (REV-10) wird in den E-Mail Templates der Platzhalter {INVOICE_DATE} nicht berücksichtigt. Hier der Diff:

PHP:
diff --git a/interface/web/billing/invoice_message_edit.php b/interface/web/billing/invoice_message_edit.php
index f908ea6..006bf6c 100644
--- a/interface/web/billing/invoice_message_edit.php
+++ b/interface/web/billing/invoice_message_edit.php
@@ -60,7 +60,7 @@
 			$bcc = trim($company['bcc_email']);
 			
 			if($this->dataRecord['invoice_id'] > 0) {
-				$invoice = $app->db->queryOneRecord('SELECT invoice_number, idhash, invoice_amount, reminder_step FROM invoice WHERE invoice_id = '.intval($this->dataRecord['invoice_id']));
+				$invoice = $app->db->queryOneRecord('SELECT invoice_number, idhash, invoice_amount, invoice_date, reminder_step FROM invoice WHERE invoice_id = '.intval($this->dataRecord['invoice_id']));
 				$app->uses('billing_functions');
 				$invoice_filename = $app->billing_functions->get_invoice_filename($invoice['invoice_number'], $invoice['reminder_step']);
                 $client_settings = $app->db->queryOneRecord('SELECT * FROM invoice_client_settings WHERE client_id = '.intval($this->dataRecord['client_id']));
@@ -93,6 +93,7 @@
                             '{INVOICE_NUMBER}' => $invoice['invoice_number'], 
 							'{INVOICE_AMOUNT}' => $app->functions->currency_format($invoice['invoice_amount'], 'client'),
 							'{INVOICE_CURRENCY}' => $invoice_settings['currency'],
+							'{INVOICE_DATE}' => date($app->lng('conf_format_dateshort'), strtotime($invoice['invoice_date'])),
 							'{INVOICE_PAY_LINK}' => $invoice_pay_link,
 							'{CONTACT_NAME}' => $client['contact_name'], 
 							'{COMPANY_NAME}' => $client['company_name'],
 

Till

Administrator
#3
ja, wir verwenden auch git zur Entwicklung des Billingmodules hier in der Firma. Das Problem mit der invoice-date variable hatten wir schon behoben, ist also mit dem nächsten release gefixt.
 

Werbung

Top