- Added comprehensive AI Assistant system (aiassist/ directory): * Vector search and embedding capabilities * Typebot proxy integration * Elastic search functionality * Message classification and chat history * MCP proxy for external integrations - Implemented Court Status API (GetCourtStatus.php): * Real-time court document status checking * Integration with external court systems * Comprehensive error handling and logging - Enhanced S3 integration: * Improved file backup system with metadata * Batch processing capabilities * Enhanced error logging and recovery * Copy operations with URL fixing - Added Telegram contact creation API - Improved error logging across all modules - Enhanced callback system for AI responses - Extensive backup file storage with timestamps - Updated documentation and README files - File storage improvements: * Thousands of backup files with proper metadata * Fix operations for broken file references * Project-specific backup and recovery systems * Comprehensive file integrity checking Total: 26,461+ files added/modified including AWS SDK, vendor dependencies, and extensive backup system.
112 lines
3.8 KiB
PHP
112 lines
3.8 KiB
PHP
<?php
|
||
/*+**********************************************************************************
|
||
* The contents of this file are subject to the vtiger CRM Public License Version 1.1
|
||
* ("License"); You may not use this file except in compliance with the License
|
||
* The Original Code is: SalesPlatform Ltd
|
||
* The Initial Developer of the Original Code is SalesPlatform Ltd.
|
||
* All Rights Reserved.
|
||
* If you have any questions or comments, please email: devel@salesplatform.ru
|
||
************************************************************************************/
|
||
|
||
include_once 'include/InventoryPDFController.php';
|
||
|
||
class Vtiger_ActPDFController extends Vtiger_InventoryPDFController {
|
||
|
||
}
|
||
|
||
|
||
//SalesPlatform.ru begin
|
||
|
||
include_once 'includes/SalesPlatform/PDF/ProductListPDFController.php';
|
||
require_once 'modules/SalesOrder/SalesOrder.php';
|
||
require_once 'modules/Accounts/Accounts.php';
|
||
|
||
class SalesPlatform_ActPDFController extends SalesPlatform_PDF_ProductListDocumentPDFController{
|
||
|
||
function buildDocumentModel() {
|
||
global $app_strings;
|
||
|
||
try {
|
||
$model = parent::buildDocumentModel();
|
||
|
||
$this->generateEntityModel($this->focus, 'Act', 'act_', $model);
|
||
|
||
//SalesPaltform.ru begin
|
||
$entity = CRMEntity::getInstance('SalesOrder');
|
||
//$entity = new SalesOrder();
|
||
//SalesPaltform.ru end
|
||
|
||
if($this->focusColumnValue('salesorder_id')) {
|
||
$entity->retrieve_entity_info($this->focusColumnValue('salesorder_id'), 'SalesOrder');
|
||
}
|
||
$this->generateEntityModel($entity, 'SalesOrder', 'salesorder_', $model);
|
||
|
||
//SalesPaltform.ru begin
|
||
$entity = CRMEntity::getInstance('Contacts');
|
||
//$entity = new Contacts();
|
||
//SalesPaltform.ru end
|
||
|
||
if($this->focusColumnValue('contact_id')) {
|
||
$entity->retrieve_entity_info($this->focusColumnValue('contact_id'), 'Contacts');
|
||
}
|
||
$this->generateEntityModel($entity, 'Contacts', 'contact_', $model);
|
||
|
||
//SalesPaltform.ru begin
|
||
$entity = CRMEntity::getInstance('Accounts');
|
||
//$entity = new Accounts();
|
||
//SalesPaltform.ru end
|
||
|
||
if($this->focusColumnValue('account_id')) {
|
||
$entity->retrieve_entity_info($this->focusColumnValue('account_id'), 'Accounts');
|
||
}
|
||
$this->generateEntityModel($entity, 'Accounts', 'account_', $model);
|
||
|
||
$this->generateUi10Models($model);
|
||
$this->generateRelatedListModels($model);
|
||
|
||
$model->set('act_no', $this->focusColumnValue('act_no'));
|
||
|
||
return $model;
|
||
|
||
} catch (Exception $e) {
|
||
echo '<meta charset="utf-8" />';
|
||
if($e->getMessage() == $app_strings['LBL_RECORD_DELETE']) {
|
||
echo $app_strings['LBL_RECORD_INCORRECT'];
|
||
echo '<br><br>';
|
||
} else {
|
||
echo $e->getMessage();
|
||
echo '<br><br>';
|
||
}
|
||
return null;
|
||
}
|
||
}
|
||
|
||
function getWatermarkContent() {
|
||
return '';
|
||
}
|
||
|
||
function russianDate($date){
|
||
$date=explode("-", $date);
|
||
switch ($date[1]){
|
||
case 1: $m='Января'; break;
|
||
case 2: $m='Февраля'; break;
|
||
case 3: $m='Марта'; break;
|
||
case 4: $m='Апреля'; break;
|
||
case 5: $m='Мая'; break;
|
||
case 6: $m='Июня'; break;
|
||
case 7: $m='Июля'; break;
|
||
case 8: $m='Августа'; break;
|
||
case 9: $m='Сентября'; break;
|
||
case 10: $m='Октября'; break;
|
||
case 11: $m='Ноября'; break;
|
||
case 12: $m='Декабря'; break;
|
||
}
|
||
|
||
return $date[2].' '.$m.' '.$date[0].' г.';
|
||
}
|
||
}
|
||
|
||
//SalesPlatform.ru end
|
||
?>
|
||
|