<commit_before>Feature: Account Close

  [KFSQA-551/KFSQA-587] As a KFS Chart Manager, the Account cannot be
                        closed with open encumbrances.

  @KFSQA-551 @KFSQA-587 @AcctClose @Bug @FP @KFSMI-6347 @nightly-jobs @tortoise
  Scenario: As a KFS Chart Manager, the Account cannot be closed with open encumbrances.
    Given I am logged in as a KFS Chart Manager
    And   I clone a random Account with the following changes:
      | Name        | Test Account             |
      | Chart Code  | IT                       |
      | Description | [KFSQA-551] Test Account |
    Given I am logged in as a KFS Chart Administrator
    When  I blanket approve a Pre-Encumbrance Document that encumbers the random Account
    Then  the Pre-Encumbrance posts a GL Entry with one of the following statuses
      | PENDING   |
      | COMPLETED |
      | PROCESSED |
      | FINAL     |
    Given Nightly Batch Jobs run
    And   I am logged in as a KFS Chart Manager
    When  I close the Account
    And   I submit the Account document
    Then  I should get an error saying "This Account cannot be closed because it has an open Encumbrance."<commit_msg>[KFSQA-1045] remove hard coded, name, chard code, and description in account close feature.<commit_after>Feature: Account Close

  [KFSQA-551/KFSQA-587] As a KFS Chart Manager, the Account cannot be
                        closed with open encumbrances.

  @KFSQA-551 @KFSQA-587 @AcctClose @Bug @FP @KFSMI-6347 @nightly-jobs @tortoise
  Scenario: As a KFS Chart Manager, the Account cannot be closed with open encumbrances.
    Given I am logged in as a KFS Chart Manager
    And   I clone a random Account with name, chart code, and description changes
    Given I am logged in as a KFS Chart Administrator
    When  I blanket approve a Pre-Encumbrance Document that encumbers the random Account
    Then  the Pre-Encumbrance posts a GL Entry with one of the following statuses
      | PENDING   |
      | COMPLETED |
      | PROCESSED |
      | FINAL     |
    Given Nightly Batch Jobs run
    And   I am logged in as a KFS Chart Manager
    When  I close the Account
    And   I submit the Account document
    Then  I should get an error saying "This Account cannot be closed because it has an open Encumbrance."
{'fraction_non_alphanumeric': 0.04382120946538125, 'fraction_numerical': 0.017090271691498685, 'mean_word_length': 2.5450310559006213, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3427140', 'n_tokens_mistral': 697, 'n_tokens_neox': 635, 'n_words': 314}