module OA
  class AddCheckPayablePage < OA::BasePage
    page_url "/accounting/add_check_payable.php"

    text_field(:upc, name: "upc")
    text_field(:vendor_id, name: "vendorId")
    text_field(:check_payable, name: "check_payable")
    text_field(:check_amount, name: "check_amt")
    select_list(:currency, name: "currency_id")
    select_list(:paid_for_type, name: "paidfor_type")
    text_field(:check_no, name: "check_no")
    text_field(:cut_date, name: "cut_date")
    button(:submit, name: "submit")

    # Confirmation
    div(:success_alert, class: "alertConfirm")
    div(:error_alert, id: "err_msg")
  end
end
