Browse Source

Merge pull request #4 from fusionpbx/master

14
blackc2004 9 năm trước cách đây
mục cha
commit
3722e908b8
1 tập tin đã thay đổi với 2 bổ sung1 xóa
  1. 2 1
      invoices/invoice_pdf.php

+ 2 - 1
invoices/invoice_pdf.php

@@ -17,7 +17,7 @@
 
 	The Initial Developer of the Original Code is
 	Mark J Crane <[email protected]>
-	Portions created by the Initial Developer are Copyright (C) 2008-2012
+	Portions created by the Initial Developer are Copyright (C) 2008-2016
 	the Initial Developer. All Rights Reserved.
 
 	Contributor(s):
@@ -93,6 +93,7 @@ else {
 	$sql = "select * from v_contact_addresses ";
 	$sql .= "where domain_uuid = '$domain_uuid' ";
 	$sql .= "and contact_uuid = '$contact_uuid_from' ";
+	$sql .= "order by address_primary desc ";
 	$prep_statement = $db->prepare(check_sql($sql));
 	$prep_statement->execute();
 	$result = $prep_statement->fetchAll(PDO::FETCH_NAMED);