@frontend_royalties
@ows_royalties
@ows_abacus_contract
Feature: Abacus Contracts 7 - Copy Contract Terms

  @delete_schedule
  @id_93d2682b2ac9b8b1fc9d107fb4f5ea9d008c2bf0410cedde2ee39f266ea9208f
  Scenario: Neighbouring Rights contract -> copy terms from contract_a to contract_b of the same account
    Given an orchard employee label_7123_admin_5 for abacus
    When 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 account via API
    And I have a Performer Neighbouring Rights runcontroller created
    And I have a new Performer Neighbouring Rights contract lifecycle created with accounts created for AWAL Recordings America, Inc.
    Then I should be able to add Neighbouring Rights contract contributors
    And I should be able to add schedule for this contributor
    Then I should be able to add NR Contributor Only contract term
    And I have a new Performer Neighbouring Rights contract lifecycle created with accounts created for AWAL Recordings America, Inc.
    And I should be able to add Neighbouring Rights contract contributors
    Then I should be able to copy NR contract terms from one contract to another

  @delete_schedule
  @id_7bb5263124ed78dcd51b449695ff9cf4de272cb55e2ff93cc7c07426116178e9
  Scenario: Neighbouring Rights contract -> copy terms from contract_a to contract_b of the different accounts
    Given an orchard employee label_7123_admin_5 for abacus
    When 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 account via API
    And I have a Performer Neighbouring Rights runcontroller created
    And I have a new Performer Neighbouring Rights contract lifecycle created with accounts created for AWAL Recordings America, Inc.
    Then I should be able to add Neighbouring Rights contract contributors
    And I should be able to add schedule for this contributor
    Then I should be able to add NR Contributor Only contract term
    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 account via API
    And I have a new Performer Neighbouring Rights contract lifecycle created with accounts created for AWAL Recordings America, Inc.
    Then I should be able to add Neighbouring Rights contract contributors
    Then I should be able to copy NR contract terms from one contract to another

  @id_64bbd37438ed0491ebf5391f5bfdfd916e2106d7c0f212383c68eff15035e7c4
  Scenario: Distribution contract -> copy terms from contract_a to contract_b
    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 fill Label contract term details
    And I have a new Distribution contract lifecycle created with accounts created for AWAL Recordings America, Inc.
    Then I should be able to copy Distribution contract terms from one contract to another
