@frontend_royalties
@ows_royalties
@ows_abacus_contract
@ows_payment
@graphql_abacus
@graphql_tax_payment
Feature: Abacus Contract Advances 1

  @id_5f0d9a1799244a5cf24e5c4b7e3fd22f79e530904a60312ed24f8d42db79e609
  Scenario Outline: Add contract pending advance
    Given an orchard employee label_7123_admin_2 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 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 pending contract advance with milestone type: <type>

    Examples:
      | type                  |
      | Contract Execution    |
      | Delivery              |
      | Recoupment            |
      | Scheduled Installment |
      | Sales Milestone       |
      | Other                 |
