@frontend_royalties
@ows_royalties
@ows_abacus_contract
Feature: Delete contract

  @id_d8f15ad756045a5720b55ac3e1248d7fa7f3aa46a67dbd47aae4e756e87f4dbc
  Scenario: contract that has no accounting activities can be deleted
    Given an orchard employee label_7123_admin_2 for abacus
    And I log in
    And I prepare an abacus account data:
      | Key              | Value                   |
      | companyBrandName | awal                    |
      | paidBy           | AWAL-US                 |
      | agreementType    | AWAL Core               |
      | currency         | EUR                     |
      | owner            | awal                    |
      | paymentMinimum   | 123                     |
      | paymentSchedule  | 45 days after month end |
    And I create 1 new active account via API
    And I have a Distribution runcontroller created
    And I have a new Distribution contract lifecycle created with accounts created for AWAL Recordings America, Inc.
    Then I should be able to delete contract

  @id_68aa840ccc0a70486f00bb62149b5124997b05ec58bde7bf464d6ee2b1e5d5bd
  Scenario: contract that has accounting activities can't be deleted
    Given an orchard employee label_7123_admin_2 for abacus
    And I log in
    And I prepare an abacus account data:
      | Key              | Value                   |
      | companyBrandName | awal                    |
      | paidBy           | AWAL-US                 |
      | agreementType    | AWAL Core               |
      | currency         | EUR                     |
      | owner            | awal                    |
      | paymentMinimum   | 123                     |
      | paymentSchedule  | 45 days after month end |
    And I create 1 new active account via API
    And I have a Distribution runcontroller created
    And I have a new Distribution contract lifecycle created with accounts created for AWAL Recordings America, Inc.
    Then I should be able to add paid contract advance
    Then I should not be able to delete contract
