feat: Refactor CRM and Finances modules
- Updated client-edit template to change 'Firma' to 'Nazwa' and added 'Nazwa firmy' input field. - Modified main-view template to reflect the new naming conventions for clients. - Enhanced finances main-view to display a list of clients with revenue details. - Added client selection dropdown in operation-edit template. - Improved work-time template by adding keyboard shortcut for task confirmation. - Introduced CrmController for handling client-related actions. - Created FinancesController to manage finance operations and categories. - Implemented ClientRepository for client data management. - Developed FinanceRepository for finance operations and data handling.
This commit is contained in:
@@ -3,12 +3,19 @@ global $db;
|
||||
ob_start();
|
||||
?>
|
||||
<?= \Html::input( [
|
||||
'label' => 'Firma',
|
||||
'label' => 'Nazwa',
|
||||
'name' => 'firm',
|
||||
'id' => 'firm',
|
||||
'value' => $this -> client -> firm,
|
||||
'inline' => true
|
||||
] );?>
|
||||
<?= \Html::input( [
|
||||
'label' => 'Nazwa firmy',
|
||||
'name' => 'firm_name',
|
||||
'id' => 'firm_name',
|
||||
'value' => $this -> client -> firm_name,
|
||||
'inline' => true
|
||||
] );?>
|
||||
<?= \Html::input( [
|
||||
'label' => 'Emaile',
|
||||
'name' => 'emails',
|
||||
|
||||
@@ -9,7 +9,7 @@ $grid = new \grid( 'crm_client' );
|
||||
$grid -> debug = true;
|
||||
$grid -> gdb_opt = $gdb;
|
||||
$grid -> search = [
|
||||
[ 'name' => 'Firma', 'db' => 'firm', 'type' => 'text' ],
|
||||
[ 'name' => 'Nazwa', 'db' => 'firm', 'type' => 'text' ],
|
||||
[ 'name' => 'Status', 'db' => 'status', 'type' => 'select', 'replace' => [ 'array' => \factory\Crm::$status ] ],
|
||||
];
|
||||
$grid -> order = [ 'column' => 'firm', 'type' => 'ASC' ];
|
||||
@@ -27,8 +27,11 @@ $grid -> columns_view = [
|
||||
'php' => 'echo date( "Y-m-d H:i", strtotime( "[date_update]" ) );',
|
||||
'sort' => true
|
||||
], [
|
||||
'name' => 'Firma',
|
||||
'name' => 'Nazwa',
|
||||
'db' => 'firm',
|
||||
], [
|
||||
'name' => 'Nazwa firmy',
|
||||
'db' => 'firm_name',
|
||||
], [
|
||||
'name' => 'Telefony',
|
||||
'db' => 'phones',
|
||||
|
||||
Reference in New Issue
Block a user