Changeset 297 for trunk/finance/bills.php
- Timestamp:
- Oct 2, 2010, 8:18:49 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/finance/bills.php
r295 r297 62 62 'Datum zdanitel. plnění: '.HumanDate($Bill['TimeCreate']).'<br>'. 63 63 'Datum splatnosti: '.HumanDate($Bill['TimeDue']).'<br>'; 64 //if(($Bill['TimeFrom'] != '0000-00-00 00:00:00') and ($Bill['TimeTo'] != '0000-00-00 00:00:00'))65 // $Output .= 'Fakturované období: '.HumanDate($Bill['TimeFrom']).' - '.HumanDate($Bill['TimeTo']).'<br>';66 64 $Output .= '</td></tr>'. 67 65 '<tr><td colspan="2">'. … … 122 120 } 123 121 124 function CreateBill($SubjectId, $Items, $Time From, $TimeTo, $BillCode = '', $Type = 'invoice')125 { 126 $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));122 function CreateBill($SubjectId, $Items, $TimeCreate, $TimeDue, $BillCode = '', $Type = 'invoice') 123 { 124 $this->Database->insert('FinanceBills', array('TimeCreate' => TimeToMysqlDateTime($TimeCreate), 'Subject' => $SubjectId, 'TimeDue' => TimeToMysqlDateTime($TimeDue), 'BillCode' => $BillCode, 'Type' => $Type)); 127 125 $BillId = $this->Database->insert_id; 128 126 foreach($Items as $Item)
Note:
See TracChangeset
for help on using the changeset viewer.