Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add features for numbering #2728

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 19 additions & 0 deletions features/External/ImportData.feature
Original file line number Diff line number Diff line change
Expand Up @@ -3827,3 +3827,22 @@ Scenario: Create catalog TaxExemptionReasons objects
| 'e1cib/data/Catalog.TaxExemptionReasons?ref=b85495740888175a11ef8b9a67d20627' | 'False' | 3 | 'Tax exeption reason 2 (0%, Turkey)' | 'e1cib/data/Catalog.Countries?ref=aa78120ed92fbced11eaf113ba6c1852' | 'e1cib/data/Catalog.TaxRates?ref=aa78120ed92fbced11eaf114c59ef012' | 'Tax exeption reason 2 (0%, Turkey)' | '' | '' | '' |


Scenario: Create catalog NumeratorBasicRules, NumeratorGroups objects and Counter

And I check or create catalog "NumeratorBasicRules" objects:
| 'Ref' | 'DeletionMark' | 'Code' | 'UseCompanyPrefix' | 'UseBranchPrefix' | 'UseDocumentPrefix' | 'UseCatalogPrefix' | 'UseTransactionTypePrefix' | 'PrefixTemplate' | 'Description_en' | 'Description_hash' | 'Description_ru' | 'Description_tr' | 'NotActive' |
| 'e1cib/data/Catalog.NumeratorBasicRules?ref=b857ef6bdcc86de611efda2e71ee5283' | 'False' | 1 | 'True' | 'False' | 'True' | 'True' | 'False' | '' | 'basic(Company, Catalog, Document)' | '' | '' | '' | 'False' |

And I refill object tabular section "CompanyPrefixes":
| 'Ref' | 'Company' | 'Prefix' |
| 'e1cib/data/Catalog.NumeratorBasicRules?ref=b857ef6bdcc86de611efda2e71ee5283' | 'e1cib/data/Catalog.Companies?ref=aa78120ed92fbced11eaf113ba6c185c' | '7' |

And I check or create catalog "NumeratorGroups" objects:
| 'Ref' | 'DeletionMark' | 'Code' | 'BasicRule' | 'BeginDate' | 'EndDate' | 'ByDefault' | 'NumberingPeriod' | 'NumberTemplate' | 'StartNumber' | 'TotalLength' | 'WithoutLeadingZeros' | 'Description_en' | 'Description_hash' | 'Description_ru' | 'Description_tr' | 'NotActive' |
| 'e1cib/data/Catalog.NumeratorGroups?ref=b857ef6bdcc86de611efda2e71ee5284' | 'False' | 1 | 'e1cib/data/Catalog.NumeratorBasicRules?ref=b857ef6bdcc86de611efda2e71ee5283' | '01.01.2025 00:00:00' | '31.12.2025 00:00:00' | 'False' | 'Enum.NumberingPeriods.NoPeriod' | '[basic.company][year2][basic.document][basic.catalog][number]' | 1 | 8 | 'False' | 'Basic numerator group' | '' | '' | '' | 'False' |

And I check or create information register "NumeratorCounters" records:
| 'NumeratorRules' | 'TemplateNumber' | 'StartDate' | 'Counter' |
| 'e1cib/data/Catalog.NumeratorGroups?ref=b857ef6bdcc86de611efda2e71ee5284' | '72510000' | '01.01.0001 00:00:00' | 127 |
| 'e1cib/data/Catalog.NumeratorGroups?ref=b857ef6bdcc86de611efda2e71ee5284' | '72530000' | '01.01.0001 00:00:00' | 15 |

10 changes: 10 additions & 0 deletions features/External/Podgotovka.feature
Original file line number Diff line number Diff line change
Expand Up @@ -1644,6 +1644,16 @@ Scenario: set True value to the constant Use lock data modification
And I click "Save" button
And I close current window

Scenario: set True value to the constant Use numbering rules
Given I open hyperlink "e1cib/app/DataProcessor.FunctionalOptionSettings"
Then "Functional option settings" window is opened
And I go to line in "FunctionalOptions" table
| 'Option' |
| 'Use numbering rules' |
And I set "Use" checkbox in "FunctionalOptions" table
And I click "Save" button
And I close current window

Scenario: set False value to the constant DisableLinkedRowsIntegrity
And I execute 1C:Enterprise script at server
| "Constants.DisableLinkedRowsIntegrity.Set(False);" |
Expand Down
167 changes: 167 additions & 0 deletions features/Internal/_3000 Other/_6007NumberingRules.feature
Original file line number Diff line number Diff line change
@@ -0,0 +1,167 @@
#language: en
@tree
@Positive
@Other


Feature: check numbering rules

Variables:
Path = "{?(ValueIsFilled(ПолучитьСохраненноеЗначениеИзКонтекстаСохраняемого("Path")), ПолучитьСохраненноеЗначениеИзКонтекстаСохраняемого("Path"), "#workingDir#")}"
Tag = "{?(ValueIsFilled(ПолучитьСохраненноеЗначениеИзКонтекстаСохраняемого("Tag")), ПолучитьСохраненноеЗначениеИзКонтекстаСохраняемого("Tag"), "#Tag#")}"
webPort = "{?(ValueIsFilled(ПолучитьСохраненноеЗначениеИзКонтекстаСохраняемого("webPort")), ПолучитьСохраненноеЗначениеИзКонтекстаСохраняемого("webPort"), "#webPort#")}"
Publication = "{?(ValueIsFilled(ПолучитьСохраненноеЗначениеИзКонтекстаСохраняемого("Publication")), ПолучитьСохраненноеЗначениеИзКонтекстаСохраняемого("Publication"), "#Publication#")}"


Background:
Given I launch TestClient opening script or connect the existing one


Scenario: _607700 preparation (check numbering rules)
When set True value to the constant
When set True value to the constant Use numbering rules
* Load info
When Create catalog ObjectStatuses objects
When Create catalog BusinessUnits objects
When Create catalog ItemKeys objects
When Create catalog ItemTypes objects
When Create catalog Partners objects
When Create catalog Units objects
When Create catalog Items objects
When Create catalog PriceTypes objects
When Create catalog Specifications objects
When Create chart of characteristic types AddAttributeAndProperty objects
When Create catalog AddAttributeAndPropertySets objects
When Create catalog AddAttributeAndPropertySets objects for ITO and item
When Create catalog AddAttributeAndPropertyValues objects
When Create catalog PartnersBankAccounts objects
When Create catalog CancelReturnReasons objects
When Create catalog Currencies objects
When Create catalog Companies objects (Main company)
When Create catalog Stores objects
When Create catalog Partners objects (Ferron BP)
When Create catalog Partners objects (Kalipso)
When Create catalog Companies objects (partners company)
When Create catalog Countries objects
When Create information register PartnerSegments records
When Create catalog PartnerSegments objects
When Create catalog Agreements objects
When Create chart of characteristic types CurrencyMovementType objects
When Create catalog TaxRates objects
When Create catalog Taxes objects
When Create information register TaxSettings records
When Create information register PricesByItemKeys records
When Create catalog IntegrationSettings objects
When Create catalog IntegrationSettings objects (db connection)
When Create catalog Users objects
When Create information register CurrencyRates records
When Create information register Barcodes records
When Create catalog ExternalFunctions objects
When Create information register Taxes records (VAT)
When Create catalog NumeratorBasicRules, NumeratorGroups objects and Counter
When Create document PurchaseOrder objects (check movements, GR before PI, not Use receipt sheduling)
When Create document PurchaseOrder objects (check movements, GR before PI, Use receipt sheduling)
When Create document InventoryTransferOrder objects (check movements)
When Create document InternalSupplyRequest objects (check movements)
When Create document PurchaseInvoice objects
* Settings for numerator
* ConfigurationMetadata
Given I open hyperlink "e1cib/list/Catalog.ConfigurationMetadata"
And I go to line in "List" table
| "Description" |
| "Partner terms" |
And I select current line in "List" table
And I remove checkbox named "Unused"
And I click "Save and close" button
* NumeratorBasicRules
Given I open hyperlink "e1cib/data/Catalog.NumeratorBasicRules?ref=b857ef6bdcc86de611efda2e71ee5283"
And I move to the tab named "GroupCatalogPrefixes"
And in the table "CatalogPrefixes" I click the button named "CatalogPrefixesAdd"
And I select "Partner terms" by string from the drop-down list named "CatalogPrefixesCatalog" in "CatalogPrefixes" table
And I activate field named "CatalogPrefixesPrefix" in "CatalogPrefixes" table
And I input "1" text in the field named "CatalogPrefixesPrefix" of "CatalogPrefixes" table
And I finish line editing in "CatalogPrefixes" table
And I move to the tab named "GroupDocumentPrefixes"
And in the table "DocumentPrefixes" I click the button named "DocumentPrefixesAdd"
And I select "sales invoice" by string from the drop-down list named "DocumentPrefixesDocument" in "DocumentPrefixes" table
And I activate field named "DocumentPrefixesPrefix" in "DocumentPrefixes" table
And I input "3" text in the field named "DocumentPrefixesPrefix" of "DocumentPrefixes" table
And I finish line editing in "DocumentPrefixes" table
And in the table "DocumentPrefixes" I click the button named "DocumentPrefixesAdd"
And I select "Purchase invoice" by string from the drop-down list named "DocumentPrefixesDocument" in "DocumentPrefixes" table
And I activate field named "DocumentPrefixesPrefix" in "DocumentPrefixes" table
And I input "3" text in the field named "DocumentPrefixesPrefix" of "DocumentPrefixes" table
And I finish line editing in "DocumentPrefixes" table
And in the table "DocumentPrefixes" I click the button named "DocumentPrefixesAdd"
And I select "Sales order" by string from the drop-down list named "DocumentPrefixesDocument" in "DocumentPrefixes" table
And I activate field named "DocumentPrefixesPrefix" in "DocumentPrefixes" table
And I input "2" text in the field named "DocumentPrefixesPrefix" of "DocumentPrefixes" table
And I finish line editing in "DocumentPrefixes" table
And I click "Save and close" button
* NumeratorGroups
Given I open hyperlink "e1cib/data/Catalog.NumeratorGroups?ref=b857ef6bdcc86de611efda2e71ee5284"
And I move to "For documents" tab
And in the table "Documents" I click the button named "DocumentsAdd"
And I select "sales invoice" from "Document" drop-down list by string in "Documents" table
And I finish line editing in "Documents" table
And in the table "Documents" I click the button named "DocumentsAdd"
And I select "Purchase invoice" from "Document" drop-down list by string in "Documents" table
And I finish line editing in "Documents" table
And in the table "Documents" I click the button named "DocumentsAdd"
And I select "Sales order" from "Document" drop-down list by string in "Documents" table
And I move to "For catalogs" tab
And I finish line editing in "Documents" table
And in the table "Catalogs" I click the button named "CatalogsAdd"
And I select "Partner terms" from "Catalog" drop-down list by string in "Catalogs" table
And I activate field named "CatalogsNumberName" in "Catalogs" table
And I click choice button of the attribute named "CatalogsNumberName" in "Catalogs" table
And I select "Number" by string from the drop-down list named "CatalogsNumberName" in "Catalogs" table
And I finish line editing in "Catalogs" table
And I activate "Date attribute name" field in "Catalogs" table
And I select current line in "Catalogs" table
And I click choice button of "Date attribute name" attribute in "Catalogs" table
And I select "Date" from "Date attribute name" drop-down list by string in "Catalogs" table
And I finish line editing in "Catalogs" table
And I click "Save and close" button
And I close all client application windows


Scenario: _607700 check preparation
When check preparation

Scenario: _607701 check numeration for documents (continuous numbering is used for PI and SI, SO separate)
And I close all client application windows
* Create SI
Given I open hyperlink "e1cib/list/Document.SalesInvoice"
And I click "Create" button
And I select from the drop-down list named "Company" by "Main Company" string
And I click "Save" button
Then the form attribute named "DocumentNumber" became equal to "72530016"
* Create PI
Given I open hyperlink "e1cib/list/Document.PurchaseInvoice"
And I click "Create" button
And I select from the drop-down list named "Company" by "Main Company" string
And I click "Save" button
Then the form attribute named "DocumentNumber" became equal to "72530017"
* Create SO
Given I open hyperlink "e1cib/list/Document.SalesOrder"
And I click "Create" button
And I select from the drop-down list named "Company" by "Main Company" string
And I click "Save" button
Then the form attribute named "DocumentNumber" became equal to "72520001"


Scenario: _607701 check numeration for catalog (partner term)
And I close all client application windows
* Create Partber term
Given I open hyperlink "e1cib/list/Catalog.Agreements"
And I click "Create" button
And I select from the drop-down list named "Company" by "Main Company" string
And I input "test" text in "ENG" field
And I select from "Multi currency movement type" drop-down list by "eu" string
And I expand "Agreement info" group
And I input "24.01.2025" text in the field named "Date"
And I change the radio button named "Type" value to "Customer"
And I click "Save" button
Then the form attribute named "DocumentNumber" became equal to "72510128"
And I close all client application windows