Changeset 157 for www/finance/bills.php
- Timestamp:
- Feb 18, 2009, 11:19:12 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
www/finance/bills.php
r156 r157 120 120 } 121 121 122 function CreateBill($SubjectId, $Items, $TimeFrom, $TimeTo, $BillCode , $Type)123 { 124 $this->Database->insert('FinanceBills', array('TimeCreate' => TimeToMysqlDateTime(time()), 'Subject' => $SubjectId, 'TimeFrom' => TimeToMysqlDateTime($TimeFrom), 'TimeTo' => TimeToMysqlDateTime($TimeTo), 'TimeDue' => TimeToMysqlDateTime($TimeFrom + 15 *24*3600), 'BillCode' => $BillCode, 'Type' => 'invoice'));122 function CreateBill($SubjectId, $Items, $TimeFrom, $TimeTo, $BillCode = '', $Type = 'invoice') 123 { 124 $this->Database->insert('FinanceBills', array('TimeCreate' => TimeToMysqlDateTime(time()), 'Subject' => $SubjectId, 'TimeFrom' => TimeToMysqlDateTime($TimeFrom), 'TimeTo' => TimeToMysqlDateTime($TimeTo), 'TimeDue' => TimeToMysqlDateTime($TimeFrom + 15 * 24 * 3600), 'BillCode' => $BillCode, 'Type' => $Type)); 125 125 $BillId = $this->Database->insert_id; 126 126 foreach($Items as $Item) … … 192 192 function HtmlToPdf($HtmlCode) 193 193 { 194 $Output = shell_exec('echo "'.addslashes( from_utf8($HtmlCode)).'"|htmldoc --no-numbered --webpage --charset 8859-2 -t pdf -');194 $Output = shell_exec('echo "'.addslashes(FromUTF8($HtmlCode)).'"|htmldoc --no-numbered --webpage --charset 8859-2 -t pdf -'); 195 195 return($Output); 196 196 }
Note:
See TracChangeset
for help on using the changeset viewer.