Configurable activity and project number (#4729)

* added configurable activity number
* added configurable project number
* fix deprecations
* added some tests for entity exporter
* better configuration of dropdown pattern for customer, project and activity
This commit is contained in:
Kevin Papst
2024-04-04 17:43:22 +02:00
committed by GitHub
parent c1f5d3def4
commit a636683dee
55 changed files with 920 additions and 136 deletions

View File

@@ -11,6 +11,9 @@ namespace App\DependencyInjection;
use App\Entity\Customer;
use App\Entity\User;
use App\Form\Helper\ActivityHelper;
use App\Form\Helper\CustomerHelper;
use App\Form\Helper\ProjectHelper;
use App\Repository\InvoiceDocumentRepository;
use App\Timesheet\Rounding\RoundingInterface;
use Symfony\Component\Config\Definition\Builder\ArrayNodeDefinition;
@@ -114,9 +117,18 @@ final class Configuration implements ConfigurationInterface
$node
->addDefaultsIfNotSet()
->children()
->scalarNode('choice_pattern')
->defaultValue(ProjectHelper::PATTERN_NAME)
->end()
->booleanNode('copy_teams_on_create')
->defaultValue(false)
->end()
->scalarNode('number_format')
->defaultValue('{pc,4}')
->end()
->booleanNode('allow_duplicate_number')
->defaultFalse()
->end()
->end()
;
@@ -132,9 +144,18 @@ final class Configuration implements ConfigurationInterface
$node
->addDefaultsIfNotSet()
->children()
->scalarNode('choice_pattern')
->defaultValue(ActivityHelper::PATTERN_NAME)
->end()
->booleanNode('allow_inline_create')
->defaultValue(false)
->end()
->scalarNode('number_format')
->defaultValue('{ac,4}')
->end()
->booleanNode('allow_duplicate_number')
->defaultFalse()
->end()
->end()
;
@@ -551,6 +572,9 @@ final class Configuration implements ConfigurationInterface
$node
->addDefaultsIfNotSet()
->children()
->scalarNode('choice_pattern')
->defaultValue(CustomerHelper::PATTERN_NAME)
->end()
->scalarNode('number_format')
->defaultValue('{cc,4}')
->end()