Changeset 902 for trunk/Modules/Finance/Manage.php
- Timestamp:
- Feb 18, 2021, 1:59:28 PM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Modules/Finance/Manage.php
r901 r902 429 429 if ($Row['File'] == null) 430 430 { 431 $this->Database->insert('File', array('Name' => '', 'Size' => 0, 'Directory' => $DirectoryId, 'Time' => 'NOW()')); 431 $this->Database->insert('File', array('Name' => '', 'Size' => 0, 'Directory' => $DirectoryId, 'Time' => 'NOW()', 432 'Hash' => 'SHA1(CONCAT(Id,Name,Size,Time))')); 432 433 $FileId = $this->Database->insert_id; 433 434 } else $FileId = $Row['File']; 434 435 $FileName = 'doklad-'.$FileId.'.pdf'; 435 436 $Bill = new BillInvoice($this->System); 436 $Bill->Database = &$this->System->Database;437 $Bill->System = &$this->System;438 437 $Bill->InvoiceId = $Row['Id']; 439 438 $FullFileName = ModuleFile::Cast($this->System->GetModule('File'))->File->GetDir($DirectoryId).$FileName; … … 460 459 { 461 460 $DbResult2 = $this->Database->insert('File', array('Name' => '', 'Size' => 0, 462 'Directory' => $DirectoryId, 'Time' => 'NOW()' ));461 'Directory' => $DirectoryId, 'Time' => 'NOW()', 'Hash' => 'SHA1(CONCAT(Id,Name,Size,Time))')); 463 462 $FileId = $this->Database->insert_id; 464 463 } else $FileId = $Row['File']; 465 464 $FileName = 'doklad2-'.$FileId.'.pdf'; 466 465 $Bill = new BillOperation($this->System); 467 $Bill->Database = &$this->System->Database;468 $Bill->System = &$this->System;469 466 $Bill->OperationId = $Row['Id']; 470 467 $FullFileName = ModuleFile::Cast($this->System->GetModule('File'))->File->GetDir($DirectoryId).$FileName;
Note:
See TracChangeset
for help on using the changeset viewer.