Changeset 901 for trunk/Modules/Finance/Manage.php
- Timestamp:
- Feb 17, 2021, 9:27:32 PM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Modules/Finance/Manage.php
r887 r901 135 135 136 136 $Year = date('Y', $TimeCreation); 137 $BillCode = $Finance->GetNextDocumentLineNumberId($Group['DocumentLine'], $Year);137 $BillCode = ModuleDocument::Cast($this->System->GetModule('Document'))->GetNextDocumentLineNumberId($Group['DocumentLine'], $Year); 138 138 $SumValue = 0; 139 139 foreach ($Items as $Item) { … … 377 377 $Title = 'Pravidelné vyúčtování služeb'; 378 378 $Content = 'Vyúčtovaní zákazníka <strong>'.$Subject['Name'].'</strong> zastoupeného uživatelem <strong>'. 379 $User['Name'].'</strong> ke dni <strong>'. $this->System->HumanDate(time()).'</strong>.<br/><br/>'."\n".379 $User['Name'].'</strong> ke dni <strong>'.Core::Cast($this->System)->HumanDate(time()).'</strong>.<br/><br/>'."\n". 380 380 'Vaše aktuální služby: '; 381 381 $DbResult = $this->Database->query('SELECT GROUP_CONCAT(`Service`.`Name`) AS `Name` FROM `ServiceCustomerRel` LEFT JOIN `Service` '. … … 441 441 if (file_exists($FullFileName)) 442 442 { 443 $this->Database->update('File', 'Id='.$FileId, array('Name' => $FileName, 'Size' => filesize($FullFileName) ));443 $this->Database->update('File', 'Id='.$FileId, array('Name' => $FileName, 'Size' => filesize($FullFileName), 'Hash' => 'SHA1(CONCAT(Id,Name,Size,Time))')); 444 444 $this->Database->update('FinanceInvoice', 'Id='.$Row['Id'], array('File' => $FileId)); 445 445 $Output .= 'Faktura '.$Row['Id'].' vygenerována do souboru '.$FileName.'<br/>'."\n"; … … 472 472 if (file_exists($FullFileName)) 473 473 { 474 $this->Database->update('File', 'Id='.$FileId, array('Name' => $FileName, 'Size' => filesize($FullFileName) ));474 $this->Database->update('File', 'Id='.$FileId, array('Name' => $FileName, 'Size' => filesize($FullFileName), 'Hash' => 'SHA1(CONCAT(Id,Name,Size,Time))')); 475 475 $this->Database->update('FinanceOperation', 'Id='.$Row['Id'], array('File' => $FileId)); 476 476 $Output .= 'Doklad pro platbu '.$Row['Id'].' vygenerován do souboru '.$FileName.'<br/>'."\n";
Note:
See TracChangeset
for help on using the changeset viewer.