ole-qa-framework 2.7.3 → 3.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/CHANGELOG.md +15 -0
- data/lib/common/common_object.rb +1 -1
- data/lib/common/line_object.rb +35 -10
- data/lib/common/page.rb +5 -0
- data/lib/common/subline_object.rb +8 -24
- data/lib/module/qa_helpers.rb +1 -1
- data/lib/module/qa_page_helpers.rb +24 -0
- data/lib/ole_qa_framework/VERSION.rb +1 -1
- data/lib/olefs/common/purap_document.rb +20 -25
- data/lib/olefs/objects/invoice_current_item.rb +1 -1
- data/lib/olefs/objects/invoice_line.rb +5 -2
- data/lib/olefs/objects/line_item.rb +44 -50
- data/lib/olefs/objects/receiving_line.rb +22 -52
- data/lib/olefs/pages/invoice.rb +5 -2
- data/lib/olefs/pages/payment_request.rb +0 -39
- data/lib/olefs/pages/purchase_order.rb +1 -11
- data/lib/olefs/pages/receiving_document.rb +1 -11
- data/lib/olefs/pages/requisition.rb +1 -11
- data/lib/olefs/subobjects/accounting_line.rb +16 -16
- data/lib/olefs/subobjects/copies_line.rb +9 -7
- data/lib/olefs/subobjects/exception_notes_line.rb +3 -3
- data/lib/olefs/{objects → subobjects}/invoice_line_item.rb +34 -45
- data/lib/olefs/subobjects/notes_line.rb +5 -5
- data/lib/olefs/subobjects/processing_line.rb +2 -2
- data/lib/olefs/subobjects/receipt_notes_line.rb +2 -2
- data/lib/olels/common/e_doc.rb +0 -17
- data/lib/olels/common/editor.rb +0 -17
- data/lib/olels/objects/access_info_line.rb +4 -4
- data/lib/olels/objects/control_006_line.rb +6 -6
- data/lib/olels/objects/control_007_line.rb +6 -6
- data/lib/olels/objects/data_line.rb +7 -7
- data/lib/olels/objects/editor_note.rb +3 -3
- data/lib/olels/objects/holdings_note.rb +5 -5
- data/lib/olels/objects/item_note.rb +5 -5
- data/lib/olels/objects/ownership_extent_line.rb +6 -16
- data/lib/olels/objects/patron_address_line.rb +33 -33
- data/lib/olels/objects/patron_email_line.rb +10 -10
- data/lib/olels/objects/patron_phone_line.rb +14 -14
- data/lib/olels/pages/bib_editor.rb +3 -44
- data/lib/olels/pages/instance_editor.rb +3 -33
- data/lib/olels/pages/item_editor.rb +1 -13
- data/lib/olels/pages/patron.rb +4 -33
- data/lib/olels/pages/return.rb +1 -0
- data/lib/olels/pages/staff_upload.rb +1 -0
- data/lib/olels/subobjects/ownership_note.rb +4 -4
- data/spec/common/line_object_spec.rb +41 -8
- data/spec/common/subline_object_spec.rb +9 -19
- data/spec/modules/qa_page_helpers_spec.rb +54 -0
- data/spec/olefs/accounting_line_spec.rb +9 -30
- data/spec/olefs/copies_line_spec.rb +1 -16
- data/spec/olefs/exception_notes_line_spec.rb +3 -13
- data/spec/olefs/invoice_current_item_spec.rb +1 -1
- data/spec/olefs/invoice_line_item_spec.rb +5 -5
- data/spec/olefs/invoice_line_spec.rb +2 -2
- data/spec/olefs/invoice_spec.rb +2 -2
- data/spec/olefs/line_item_spec.rb +32 -67
- data/spec/olefs/notes_line_spec.rb +5 -17
- data/spec/olefs/payment_request_spec.rb +1 -43
- data/spec/olefs/processing_line_spec.rb +5 -4
- data/spec/olefs/purap_document_spec.rb +23 -1
- data/spec/olefs/purchase_order_spec.rb +4 -18
- data/spec/olefs/receipt_notes_line_spec.rb +5 -14
- data/spec/olefs/receive_spec.rb +3 -18
- data/spec/olefs/receiving_line_spec.rb +35 -74
- data/spec/olefs/requisition_spec.rb +5 -19
- data/spec/olels/access_info_line_spec.rb +1 -1
- data/spec/olels/bib_editor_spec.rb +8 -56
- data/spec/olels/data_line_spec.rb +2 -2
- data/spec/olels/editor_spec.rb +0 -4
- data/spec/olels/{holdings_note_spec_spec.rb → holdings_note_spec.rb} +1 -1
- data/spec/olels/instance_editor_spec.rb +8 -31
- data/spec/olels/item_editor_spec.rb +4 -14
- data/spec/olels/item_note_spec.rb +2 -2
- data/spec/olels/ownership_extent_line_spec.rb +6 -16
- data/spec/olels/ownership_note_spec.rb +2 -1
- data/spec/olels/patron_address_line_spec.rb +1 -1
- data/spec/olels/patron_email_line_spec.rb +1 -1
- data/spec/olels/patron_phone_line_spec.rb +2 -2
- data/spec/olels/patron_spec.rb +8 -40
- metadata +7 -30
- data/lib/olefs/common/invoice_line_object.rb +0 -37
- data/lib/olefs/common/line_object.rb +0 -39
- data/lib/olefs/objects/new_line_item.rb +0 -48
- data/lib/olefs/objects/new_preq_line_item.rb +0 -43
- data/lib/olefs/objects/new_receiving_line.rb +0 -42
- data/lib/olefs/objects/preq_line_item.rb +0 -68
- data/lib/olefs/pages/payment_request_creation.rb +0 -44
- data/lib/olefs/subobjects/invoice_notes_line.rb +0 -25
- data/lib/olefs/subobjects/new_accounting_line.rb +0 -43
- data/lib/olefs/subobjects/new_copies_line.rb +0 -37
- data/lib/olefs/subobjects/new_exception_notes_line.rb +0 -30
- data/lib/olefs/subobjects/new_invoice_notes_line.rb +0 -35
- data/lib/olefs/subobjects/new_notes_line.rb +0 -36
- data/lib/olefs/subobjects/new_receipt_notes_line.rb +0 -35
- data/lib/olels/common/line_object.rb +0 -39
- data/spec/olefs/invoice_line_object_spec.rb +0 -49
- data/spec/olefs/invoice_notes_line_spec.rb +0 -49
- data/spec/olefs/preq_creation_spec.rb +0 -47
- data/spec/olefs/preq_line_item_spec.rb +0 -111
- data/spec/workflows/purap_spec.rb +0 -221
@@ -1,37 +0,0 @@
|
|
1
|
-
# Copyright 2005-2013 The Kuali Foundation
|
2
|
-
#
|
3
|
-
# Licensed under the Educational Community License, Version 2.0 (the "License");
|
4
|
-
# you may not use this file except in compliance with the License.
|
5
|
-
# You may obtain a copy of the License at:
|
6
|
-
#
|
7
|
-
# http://www.opensource.org/licenses/ecl2.php
|
8
|
-
#
|
9
|
-
# Unless required by applicable law or agreed to in writing, software
|
10
|
-
# distributed under the License is distributed on an "AS IS" BASIS,
|
11
|
-
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
12
|
-
# See the License for the specific language governing permissions and
|
13
|
-
# limitations under the License.
|
14
|
-
|
15
|
-
module OLE_QA::Framework::OLEFS
|
16
|
-
# This object is an inheritable base class for all line-type objects on an OLE Financial System Invoice.
|
17
|
-
# - This class provides a different mechanism for line_id and makes line_number an accessor attribute,
|
18
|
-
# allowing for dynamic redefinition of line object elements and sub-elements.
|
19
|
-
# - Instead of instantiating a new line object for each line and subline, the line_number can be updated
|
20
|
-
# in each line and subline object. This allows for slightly deeper recursion without the need of
|
21
|
-
# introducing a new level of sub-object below the subline object.
|
22
|
-
#
|
23
|
-
class Invoice_Line_Object < OLE_QA::Framework::Common_Object
|
24
|
-
# Allow the line_number attribute to be updated for dynamic element definitions.
|
25
|
-
attr_accessor :line_number
|
26
|
-
|
27
|
-
def initialize(ole_session, line_number = 1)
|
28
|
-
@line_number = line_number
|
29
|
-
super(ole_session)
|
30
|
-
end
|
31
|
-
|
32
|
-
# A reader method for the line_id function.
|
33
|
-
def line_id
|
34
|
-
@line_number - 1
|
35
|
-
end
|
36
|
-
end
|
37
|
-
end
|
@@ -1,39 +0,0 @@
|
|
1
|
-
# Copyright 2005-2013 The Kuali Foundation
|
2
|
-
#
|
3
|
-
# Licensed under the Educational Community License, Version 2.0 (the "License");
|
4
|
-
# you may not use this file except in compliance with the License.
|
5
|
-
# You may obtain a copy of the License at:
|
6
|
-
#
|
7
|
-
# http://www.opensource.org/licenses/ecl2.php
|
8
|
-
#
|
9
|
-
# Unless required by applicable law or agreed to in writing, software
|
10
|
-
# distributed under the License is distributed on an "AS IS" BASIS,
|
11
|
-
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
12
|
-
# See the License for the specific language governing permissions and
|
13
|
-
# limitations under the License.
|
14
|
-
|
15
|
-
module OLE_QA::Framework::OLEFS
|
16
|
-
# A line object with methods specific to OLEFS line objects.
|
17
|
-
class Line_Object < OLE_QA::Framework::Line_Object
|
18
|
-
def initialize(ole_session, line_number)
|
19
|
-
super(ole_session, line_number)
|
20
|
-
set_sublines if defined?(self.set_sublines)
|
21
|
-
end
|
22
|
-
|
23
|
-
def create_subline(instance_name, class_name, which=0)
|
24
|
-
raise StandardError, "Subline object already exists. (#{instance_name})" if self.instance_variables.include?("@#{instance_name}".to_sym)
|
25
|
-
new_line_name = instance_name
|
26
|
-
make_accessor(:"#{new_line_name}")
|
27
|
-
klas = OLE_QA::Framework::OLEFS.const_get(:"#{class_name}")
|
28
|
-
instance_variable_set(:"@#{new_line_name}", klas.new(@ole, @line_number, which))
|
29
|
-
end
|
30
|
-
alias_method(:add_subline,:create_subline)
|
31
|
-
|
32
|
-
def remove_subline(instance_name)
|
33
|
-
raise StandardError, "Subline object does not exist. (#{instance_name})" unless self.instance_variables.include?("@#{instance_name}".to_sym)
|
34
|
-
remove_instance_variable("@#{instance_name}".to_sym)
|
35
|
-
unmake_attr(instance_name.to_sym)
|
36
|
-
end
|
37
|
-
alias_method(:delete_subline,:remove_subline)
|
38
|
-
end
|
39
|
-
end
|
@@ -1,48 +0,0 @@
|
|
1
|
-
# Copyright 2005-2013 The Kuali Foundation
|
2
|
-
#
|
3
|
-
# Licensed under the Educational Community License, Version 2.0 (the "License");
|
4
|
-
# you may not use this file except in compliance with the License.
|
5
|
-
# You may obtain a copy of the License at:
|
6
|
-
#
|
7
|
-
# http://www.opensource.org/licenses/ecl2.php
|
8
|
-
#
|
9
|
-
# Unless required by applicable law or agreed to in writing, software
|
10
|
-
# distributed under the License is distributed on an "AS IS" BASIS,
|
11
|
-
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
12
|
-
# See the License for the specific language governing permissions and
|
13
|
-
# limitations under the License.
|
14
|
-
|
15
|
-
module OLE_QA::Framework::OLEFS
|
16
|
-
# A new Line Item on an OLE Financial System PURAP E-Document.
|
17
|
-
class New_Line_Item < OLE_QA::Framework::OLEFS::Line_Object
|
18
|
-
# Initialize as a subclass of {OLE_QA::Framework::OLEFS::Line_Object} with a line_number of 0.
|
19
|
-
def initialize(ole_session, which)
|
20
|
-
super(ole_session, 0)
|
21
|
-
end
|
22
|
-
|
23
|
-
# Set elements on a new line item.
|
24
|
-
# @note No line number substitution will be involved as there is only ever
|
25
|
-
# one new line item on an OLEFS PURAP E-Document.
|
26
|
-
def set_elements
|
27
|
-
super
|
28
|
-
element(:new_bib_option) {b.radio(:name => 'AttachBib', :index => 0)}
|
29
|
-
element(:existing_bib_option) {b.radio(:name => 'AttachBib', :index => 1)}
|
30
|
-
element(:existing_bib_button) {b.input(:id => 'bibSelectExistingItemButton')}
|
31
|
-
element(:new_bib_button) {b.input(:id => "bibCreateCurrentItemButton")}
|
32
|
-
element(:item_type_selector) {b.select_list(:id => "newPurchasingItemLine.itemTypeDescription")}
|
33
|
-
element(:copies_field) {b.text_field(:id => "newPurchasingItemLine.oleItemQuantity")}
|
34
|
-
element(:parts_field) {b.text_field(:id => "newPurchasingItemLine.itemNoOfParts")}
|
35
|
-
element(:list_price_field) {b.text_field(:id => "newPurchasingItemLine.itemListPrice")}
|
36
|
-
element(:public_view_checkbox) {b.checkbox(:id => "newPurchasingItemLine.itemPublicViewIndicator")}
|
37
|
-
element(:item_price_source_selector) {b.select_list(:id => "newPurchasingItemLine.itemPriceSourceId")}
|
38
|
-
element(:request_source_selector) {b.select_list(:id => "newPurchasingItemLine.requestSourceTypeId")}
|
39
|
-
element(:format_selector) {b.select_list(:id => "newPurchasingItemLine.formatTypeId")}
|
40
|
-
element(:category_selector) {b.select_list(:id => "newPurchasingItemLine.categoryId")}
|
41
|
-
element(:route_to_requestor_checkbox) {b.checkbox(:id => "newPurchasingItemLine.itemRouteToRequestorIndicator")}
|
42
|
-
element(:discount_field) {b.text_field(:id => "newPurchasingItemLine.itemDiscount")}
|
43
|
-
element(:discount_type_selector) {b.select_list(:id => "newPurchasingItemLine.itemDiscountType")}
|
44
|
-
element(:add_button) {b.input(:name => "methodToCall.addItem")}
|
45
|
-
element(:location_selector) {b.select_list(:id => 'newPurchasingItemLine.itemLocation')}
|
46
|
-
end
|
47
|
-
end
|
48
|
-
end
|
@@ -1,43 +0,0 @@
|
|
1
|
-
# Copyright 2005-2013 The Kuali Foundation
|
2
|
-
#
|
3
|
-
# Licensed under the Educational Community License, Version 2.0 (the "License");
|
4
|
-
# you may not use this file except in compliance with the License.
|
5
|
-
# You may obtain a copy of the License at:
|
6
|
-
#
|
7
|
-
# http://www.opensource.org/licenses/ecl2.php
|
8
|
-
#
|
9
|
-
# Unless required by applicable law or agreed to in writing, software
|
10
|
-
# distributed under the License is distributed on an "AS IS" BASIS,
|
11
|
-
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
12
|
-
# See the License for the specific language governing permissions and
|
13
|
-
# limitations under the License.
|
14
|
-
|
15
|
-
module OLE_QA::Framework::OLEFS
|
16
|
-
# A new Line Item on an OLE Financial System Payment Request Document.
|
17
|
-
class New_PREQ_Line_Item < OLE_QA::Framework::OLEFS::Line_Object
|
18
|
-
# Initialize as a subclass of {OLE_QA::Framework::OLEFS::Line_Object} with a line_number of 0.
|
19
|
-
def initialize(ole_session, which)
|
20
|
-
super(ole_session, 0)
|
21
|
-
end
|
22
|
-
|
23
|
-
# Set elements on a new PREQ line item.
|
24
|
-
# @note No line number substitution will be involved as there is only ever
|
25
|
-
# one new line item on an OLEFS Receiving Document.
|
26
|
-
def set_elements
|
27
|
-
super
|
28
|
-
element(:po_unit_price_field) {b.text_field(:id => "newPurchasingItemLine.purchaseOrderItemUnitPrice")}
|
29
|
-
element(:format_selector) {b.select_list(:id => "newPurchasingItemLine.formatTypeId")}
|
30
|
-
element(:vendor_item_identifier_field) {b.text_field(:id => "newPurchasingItemLine.itemCatalogNumber")}
|
31
|
-
element(:number_of_copies_ordered_field) {b.text_field(:id => "newPurchasingItemLine.oleItemQuantity")}
|
32
|
-
element(:number_of_parts_ordered_field) {b.text_field(:id => "newPurchasingItemLine.itemNoOfParts")}
|
33
|
-
element(:list_price_field) {b.text_field(:id => "newPurchasingItemLine.itemListPrice")}
|
34
|
-
element(:discount_field) {b.text_field(:id => "newPurchasingItemLine.itemDiscount")}
|
35
|
-
element(:discount_type_selector) {b.select_list(:id => "newPurchasingItemLine.itemDiscountType")}
|
36
|
-
element(:assigned_to_trade_in_checkbox) {b.checkbox(:id => "newPurchasingItemLine.itemAssignedToTradeInIndicator")}
|
37
|
-
element(:description_field) {b.text_field(:id => "newPurchasingItemLine.itemDescription")}
|
38
|
-
element(:new_bib_button) {b.input(:id => "bibCreateCurrentItemButton")}
|
39
|
-
element(:receipt_status_selector) {b.select_list(:id => "newPurchasingItemLine.receiptStatusId")}
|
40
|
-
element(:add_button) {b.input(:name => "methodToCall.addItem")}
|
41
|
-
end
|
42
|
-
end
|
43
|
-
end
|
@@ -1,42 +0,0 @@
|
|
1
|
-
# Copyright 2005-2013 The Kuali Foundation
|
2
|
-
#
|
3
|
-
# Licensed under the Educational Community License, Version 2.0 (the "License");
|
4
|
-
# you may not use this file except in compliance with the License.
|
5
|
-
# You may obtain a copy of the License at:
|
6
|
-
#
|
7
|
-
# http://www.opensource.org/licenses/ecl2.php
|
8
|
-
#
|
9
|
-
# Unless required by applicable law or agreed to in writing, software
|
10
|
-
# distributed under the License is distributed on an "AS IS" BASIS,
|
11
|
-
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
12
|
-
# See the License for the specific language governing permissions and
|
13
|
-
# limitations under the License.
|
14
|
-
|
15
|
-
module OLE_QA::Framework::OLEFS
|
16
|
-
# A new Receiving Line on an OLE Financial System Receiving Document.
|
17
|
-
class New_Receiving_Line < OLE_QA::Framework::OLEFS::Line_Object
|
18
|
-
# Initialize as a subclass of {OLE_QA::Framework::OLEFS::Line_Object} with a line_number of 0.
|
19
|
-
def initialize(ole_session, which)
|
20
|
-
super(ole_session, 0)
|
21
|
-
end
|
22
|
-
|
23
|
-
# Set elements on a new receiving line.
|
24
|
-
# @note No line number substitution will be involved as there is only ever
|
25
|
-
# one new line item on an OLEFS Receiving Document.
|
26
|
-
def set_elements
|
27
|
-
super
|
28
|
-
element(:vendor_item_identifier_field) {b.text_field(:id => "newLineItemReceivingItemLine.itemCatalogNumber")}
|
29
|
-
element(:format_selector) {b.select_list(:id => "newLineItemReceivingItemLine.oleFormatId")}
|
30
|
-
element(:item_received_quantity_field) {b.text_field(:id => "newLineItemReceivingItemLine.oleItemReceivedTotalQuantity")}
|
31
|
-
element(:item_received_parts_field) {b.text_field(:id => "newLineItemReceivingItemLine.oleItemReceivedTotalParts")}
|
32
|
-
element(:item_returned_quantity_field) {b.text_field(:id => "newLineItemReceivingItemLine.oleItemReturnedTotalQuantity")}
|
33
|
-
element(:item_returned_parts_field) {b.text_field(:id => "newLineItemReceivingItemLine.oleItemReturnedTotalParts")}
|
34
|
-
element(:item_damaged_quantity_field) {b.text_field(:id => "newLineItemReceivingItemLine.oleItemDamagedTotalQuantity")}
|
35
|
-
element(:item_damaged_parts_field) {b.text_field(:id => "newLineItemReceivingItemLine.oleItemDamagedTotalParts")}
|
36
|
-
element(:addition_reason_selector) {b.select_list(:id => "newLineItemReceivingItemLine.itemReasonAddedCode")}
|
37
|
-
element(:available_to_public_checkbox) {b.checkbox(:id => "newLineItemReceivingItemLine.availableToPublic")}
|
38
|
-
element(:public_view_checkbox) {b.checkbox(:id => "newLineItemReceivingItemLine.availableToPublic")}
|
39
|
-
element(:new_bib_button) {b.input(:id => "bibCreateCurrentItemButton")}
|
40
|
-
end
|
41
|
-
end
|
42
|
-
end
|
@@ -1,68 +0,0 @@
|
|
1
|
-
# Copyright 2005-2013 The Kuali Foundation
|
2
|
-
#
|
3
|
-
# Licensed under the Educational Community License, Version 2.0 (the "License");
|
4
|
-
# you may not use this file except in compliance with the License.
|
5
|
-
# You may obtain a copy of the License at:
|
6
|
-
#
|
7
|
-
# http://www.opensource.org/licenses/ecl2.php
|
8
|
-
#
|
9
|
-
# Unless required by applicable law or agreed to in writing, software
|
10
|
-
# distributed under the License is distributed on an "AS IS" BASIS,
|
11
|
-
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
12
|
-
# See the License for the specific language governing permissions and
|
13
|
-
# limitations under the License.
|
14
|
-
|
15
|
-
module OLE_QA::Framework::OLEFS
|
16
|
-
# A single Line Item in an OLE Financial System Payment Request.
|
17
|
-
class PREQ_Line_Item < OLE_QA::Framework::OLEFS::Line_Object
|
18
|
-
# Create accessor methods for new subline objects.
|
19
|
-
def set_sublines
|
20
|
-
create_subline("new_invoice_notes_line","New_Invoice_Notes_Line")
|
21
|
-
create_subline("new_accounting_line","New_Accounting_Line")
|
22
|
-
end
|
23
|
-
|
24
|
-
# Set PREQ line item elements.
|
25
|
-
def set_elements
|
26
|
-
super
|
27
|
-
# Read-Only Elements
|
28
|
-
element(:open_quantity_field) {b.td(:xpath => "//div[@id='tab-ProcessItems-div']/descendant::table/tbody/tr[th[contains(text(),'Item Line #')]]/following-sibling::tr[td/b[contains(text(),'#{@line_number}')]]/td[2]")}
|
29
|
-
element(:po_unit_price_field) {b.td(:xpath => "//div[@id='tab-ProcessItems-div']/descendant::table/tbody/tr[th[contains(text(),'Item Line #')]]/following-sibling::tr[td/b[contains(text(),'#{@line_number}')]]/td[3]")}
|
30
|
-
element(:format_field) {b.td(:xpath => "//div[@id='tab-ProcessItems-div']/descendant::table/tbody/tr[th[contains(text(),'Item Line #')]]/following-sibling::tr[td/b[contains(text(),'#{@line_number}')]]/td[4]")}
|
31
|
-
element(:vendor_item_identifier_field) {b.td(:xpath => "//div[@id='tab-ProcessItems-div']/descendant::table/tbody/tr[th[contains(text(),'Item Line #')]]/following-sibling::tr[td/b[contains(text(),'#{@line_number}')]]/td[5]")}
|
32
|
-
element(:prorated_surcharge_field) {b.td(:xpath => "//div[@id='tab-ProcessItems-div']/descendant::table/tbody/tr[th[contains(text(),'Item Line #')]]/following-sibling::tr[td/b[contains(text(),'#{@line_number}')]]/td[11]")}
|
33
|
-
element(:unit_cost_field) {b.td(:xpath => "//div[@id='tab-ProcessItems-div']/descendant::table/tbody/tr[th[contains(text(),'Item Line #')]]/following-sibling::tr[td/b[contains(text(),'#{@line_number}')]]/td[12]")}
|
34
|
-
element(:extended_cost_field) {b.td(:xpath => "//div[@id='tab-ProcessItems-div']/descendant::table/tbody/tr[th[contains(text(),'Item Line #')]]/following-sibling::tr[td/b[contains(text(),'#{@line_number}')]]/td[13]")}
|
35
|
-
element(:assigned_to_trade_in_field) {b.td(:xpath => "//div[@id='tab-ProcessItems-div']/descendant::table/tbody/tr[th[contains(text(),'Item Line #')]]/following-sibling::tr[td/b[contains(text(),'#{@line_number}')]]/td[14]")}
|
36
|
-
element(:description_field) {b.td(:xpath => "//div[@id='tab-ProcessItems-div']/descendant::table/tbody/tr[th[contains(text(),'Item Line #')]]/following-sibling::tr[td/b[contains(text(),'#{@line_number}')]]/td[15]")}
|
37
|
-
element(:number_of_copies_ordered_field) {b.text_field(:id => "document.item[#{@line_id}].oleItemQuantity")}
|
38
|
-
element(:number_of_parts_ordered_field) {b.text_field(:id => "document.item[#{@line_id}].itemNoOfParts")}
|
39
|
-
element(:list_price_field) {b.text_field(:id => "document.item[#{@line_id}].itemListPrice")}
|
40
|
-
element(:discount_field) {b.text_field(:id => "document.item[#{@line_id}].itemDiscount")}
|
41
|
-
element(:discount_type_selector) {b.select_list(:id => "document.item[#{@line_id}].itemDiscountType")}
|
42
|
-
element(:edit_bib_button) {b.input(:id => "bibEditAddedItemButton_#{@line_id}")}
|
43
|
-
element(:delete_button) {b.input(:xpath => "//input[@name='methodToCall.deleteItem.line#{@line_id}']")}
|
44
|
-
element(:invoice_notes_toggle) {b.input(:xpath => "//div[@id='tab-ProcessItems-div']/descendant::table/tbody/tr[th[contains(text(),'Item Line #')]]/following-sibling::tr[td/b[contains(text(),'#{@line_number}')]]/following-sibling::tr[2]/descendant::input[starts-with(@id,'tab-Notes')]")}
|
45
|
-
element(:accounting_lines_toggle) {b.input(:xpath => "//div[@id='tab-ProcessItems-div']/descendant::table/tbody/tr[th[contains(text(),'Item Line #')]]/following-sibling::tr[td/b[contains(text(),'#{@line_number}')]]/following-sibling::tr[3]/descendant::input[starts-with(@id,'tab-AccountingLines')]")}
|
46
|
-
end
|
47
|
-
|
48
|
-
def create_invoice_notes_line(which = 1)
|
49
|
-
create_subline("invoice_notes_line_#{which}","Invoice_Notes_Line", which)
|
50
|
-
end
|
51
|
-
alias_method(:add_invoice_notes_line,:create_invoice_notes_line)
|
52
|
-
|
53
|
-
def create_accounting_line(which = 1)
|
54
|
-
create_subline("accounting_line_#{which}","Accounting_Line", which)
|
55
|
-
end
|
56
|
-
alias_method(:add_accounting_line,:create_accounting_line)
|
57
|
-
|
58
|
-
def remove_invoice_notes_line(which = 1)
|
59
|
-
remove_subline("invoice_notes_line_#{which}")
|
60
|
-
end
|
61
|
-
alias_method(:delete_invoice_notes_line,:remove_invoice_notes_line)
|
62
|
-
|
63
|
-
def remove_accounting_line(which = 1)
|
64
|
-
remove_subline("accounting_line_#{which}")
|
65
|
-
end
|
66
|
-
alias_method(:delete_accounting_line,:remove_accounting_line)
|
67
|
-
end
|
68
|
-
end
|
@@ -1,44 +0,0 @@
|
|
1
|
-
# Copyright 2005-2013 The Kuali Foundation
|
2
|
-
#
|
3
|
-
# Licensed under the Educational Community License, Version 2.0 (the "License");
|
4
|
-
# you may not use this file except in compliance with the License.
|
5
|
-
# You may obtain a copy of the License at:
|
6
|
-
#
|
7
|
-
# http://www.opensource.org/licenses/ecl2.php
|
8
|
-
#
|
9
|
-
# Unless required by applicable law or agreed to in writing, software
|
10
|
-
# distributed under the License is distributed on an "AS IS" BASIS,
|
11
|
-
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
12
|
-
# See the License for the specific language governing permissions and
|
13
|
-
# limitations under the License.
|
14
|
-
|
15
|
-
module OLE_QA::Framework::OLEFS
|
16
|
-
# A Payment Request Creation screen in the OLE Financial System
|
17
|
-
class PREQ_Creation < E_Doc
|
18
|
-
def initialize(ole_session)
|
19
|
-
url = ole_session.url + 'portal.do?channelTitle=Payment Request&channelUrl=selectOlePaymentRequest.do?methodToCall=docHandler&command=initiate&docTypeName=OLE_PREQ'
|
20
|
-
super(ole_session, url)
|
21
|
-
end
|
22
|
-
|
23
|
-
# Set screen elements on PREQ Creation screen.
|
24
|
-
def set_elements
|
25
|
-
super
|
26
|
-
element(:purchase_order_number_field) {b.text_field(:id => "document.purchaseOrderIdentifier")}
|
27
|
-
element(:invoice_number_field) {b.text_field(:id => "document.invoiceNumber")}
|
28
|
-
element(:invoice_date_field) {b.text_field(:id => "document.invoiceDate")}
|
29
|
-
element(:invoice_amount_field) {b.text_field(:id => "document.vendorInvoiceAmount")}
|
30
|
-
element(:special_handling_line_1) {b.text_field(:id => "document.specialHandlingInstructionLine1Text")}
|
31
|
-
element(:special_handling_line_2) {b.text_field(:id => "document.specialHandlingInstructionLine2Text")}
|
32
|
-
element(:special_handling_line_3) {b.text_field(:id => "document.specialHandlingInstructionLine3Text")}
|
33
|
-
element(:foreign_invoice_amount_field) {b.text_field(:id => "document.foreignVendorInvoiceAmount")}
|
34
|
-
element(:continue_button) {b.div(:id => "globalbuttons").input(:title => "Continue")}
|
35
|
-
element(:clear_button) {b.div(:id => "globalbuttons").input(:title => "Clear")}
|
36
|
-
end
|
37
|
-
|
38
|
-
# Wait for #continue_button to appear before considering the page fully loaded.
|
39
|
-
def wait_for_elements
|
40
|
-
super
|
41
|
-
@wait_on << :continue_button
|
42
|
-
end
|
43
|
-
end
|
44
|
-
end
|
@@ -1,25 +0,0 @@
|
|
1
|
-
# Copyright 2005-2013 The Kuali Foundation
|
2
|
-
#
|
3
|
-
# Licensed under the Educational Community License, Version 2.0 (the "License");
|
4
|
-
# you may not use this file except in compliance with the License.
|
5
|
-
# You may obtain a copy of the License at:
|
6
|
-
#
|
7
|
-
# http://www.opensource.org/licenses/ecl2.php
|
8
|
-
#
|
9
|
-
# Unless required by applicable law or agreed to in writing, software
|
10
|
-
# distributed under the License is distributed on an "AS IS" BASIS,
|
11
|
-
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
12
|
-
# See the License for the specific language governing permissions and
|
13
|
-
# limitations under the License.
|
14
|
-
|
15
|
-
module OLE_QA::Framework::OLEFS
|
16
|
-
# An Invoice Notes Line on an OLE Financial System Payment Request.
|
17
|
-
class Invoice_Notes_Line < OLE_QA::Framework::Subline_Object
|
18
|
-
# Set invoice notes line elements.
|
19
|
-
def set_elements
|
20
|
-
super
|
21
|
-
element(:note_field) {b.text_area(:id => "document.item[#{@line_id}].notes[#{@subline_id}].note")}
|
22
|
-
element(:delete_button) {b.input(:xpath => "//input[@name='methodToCall.deleteNote.line#{@line_id}:#{@subline_id}']")}
|
23
|
-
end
|
24
|
-
end
|
25
|
-
end
|
@@ -1,43 +0,0 @@
|
|
1
|
-
# Copyright 2005-2013 The Kuali Foundation
|
2
|
-
#
|
3
|
-
# Licensed under the Educational Community License, Version 2.0 (the "License");
|
4
|
-
# you may not use this file except in compliance with the License.
|
5
|
-
# You may obtain a copy of the License at:
|
6
|
-
#
|
7
|
-
# http://www.opensource.org/licenses/ecl2.php
|
8
|
-
#
|
9
|
-
# Unless required by applicable law or agreed to in writing, software
|
10
|
-
# distributed under the License is distributed on an "AS IS" BASIS,
|
11
|
-
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
12
|
-
# See the License for the specific language governing permissions and
|
13
|
-
# limitations under the License.
|
14
|
-
|
15
|
-
module OLE_QA::Framework::OLEFS
|
16
|
-
# A new Accounting Line on an OLE Financial System PURAP Line Object
|
17
|
-
class New_Accounting_Line < OLE_QA::Framework::Subline_Object
|
18
|
-
# Initialize as a subclass of {OLE_QA::Framework::Subline_Object} with a subline_number of 0.
|
19
|
-
def initialize(ole_session, line_number, which)
|
20
|
-
super(ole_session, line_number, 0)
|
21
|
-
end
|
22
|
-
|
23
|
-
# Set elements on a New Accounting Line object.
|
24
|
-
# @note {OLE_QA::Framework::Line_Object} @line_number and @line_id will be used to
|
25
|
-
# perform substitutions in identifiers.
|
26
|
-
# @note {OLE_QA::Framework::Subline_Object} @line_number and @line_id will not be
|
27
|
-
# need in finding element IDs, as there will only ever be one new
|
28
|
-
# subline object on each line object.
|
29
|
-
def set_elements
|
30
|
-
super
|
31
|
-
element(:chart_selector) {b.select_list(:id => "document.item[#{@line_id}].newSourceLine.chartOfAccountsCode")}
|
32
|
-
element(:account_number_field) {b.text_field(:id => "document.item[#{@line_id}].newSourceLine.accountNumber")}
|
33
|
-
element(:sub_account_number_field) {b.text_field(:id => "document.item[#{@line_id}].newSourceLine.subAccountNumber")}
|
34
|
-
element(:object_field) {b.text_field(:id => "document.item[#{@line_id}].newSourceLine.financialObjectCode")}
|
35
|
-
element(:sub_object_field) {b.text_field(:id => "document.item[#{@line_id}].newSourceLine.financialSubObjectCode")}
|
36
|
-
element(:project_field) {b.text_field(:id => "document.item[#{@line_id}].newSourceLine.projectCode")}
|
37
|
-
element(:org_ref_id_field) {b.text_field(:id => "document.item[#{@line_id}].newSourceLine.organizationReferenceId")}
|
38
|
-
element(:dollar_field) {b.text_field(:id => "document.item[#{@line_id}].newSourceLine.amount")}
|
39
|
-
element(:percent_field) {b.text_field(:id => "document.item[#{@line_id}].newSourceLine.accountLinePercent")}
|
40
|
-
element(:add_button) {b.input(:name => "methodToCall.insertSourceLine.line#{@line_id}.anchoraccountingSourceAnchor")}
|
41
|
-
end
|
42
|
-
end
|
43
|
-
end
|
@@ -1,37 +0,0 @@
|
|
1
|
-
# Copyright 2005-2013 The Kuali Foundation
|
2
|
-
#
|
3
|
-
# Licensed under the Educational Community License, Version 2.0 (the "License");
|
4
|
-
# you may not use this file except in compliance with the License.
|
5
|
-
# You may obtain a copy of the License at:
|
6
|
-
#
|
7
|
-
# http://www.opensource.org/licenses/ecl2.php
|
8
|
-
#
|
9
|
-
# Unless required by applicable law or agreed to in writing, software
|
10
|
-
# distributed under the License is distributed on an "AS IS" BASIS,
|
11
|
-
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
12
|
-
# See the License for the specific language governing permissions and
|
13
|
-
# limitations under the License.
|
14
|
-
|
15
|
-
module OLE_QA::Framework::OLEFS
|
16
|
-
# A new Copies Line on an OLE Financial System PURAP Line Object
|
17
|
-
class New_Copies_Line < OLE_QA::Framework::Subline_Object
|
18
|
-
# Initialize as a subclass of {OLE_QA::Framework::Subline_Object} with a subline_number of 0.
|
19
|
-
def initialize(ole_session, line_number, which)
|
20
|
-
super(ole_session, line_number, 0)
|
21
|
-
end
|
22
|
-
|
23
|
-
# Set elements on a New Copies Line object.
|
24
|
-
# @note {OLE_QA::Framework::Line_Object} @line_number and @line_id will be used to
|
25
|
-
# perform substitutions in identifiers.
|
26
|
-
# @note {OLE_QA::Framework::Subline_Object} @line_number and @line_id will not be
|
27
|
-
# need in finding element IDs, as there will only ever be one new
|
28
|
-
# subline object on each line object.
|
29
|
-
def set_elements
|
30
|
-
super
|
31
|
-
element(:copies_field) {b.text_field(:id => "document.item[#{@line_id}].itemCopies")}
|
32
|
-
element(:location_copies_selector) {b.select_list(:id => "document.item[#{@line_id}].locationCopies")}
|
33
|
-
element(:starting_copy_field) {b.text_field(:id => "document.item[#{@line_id}].startingCopyNumber")}
|
34
|
-
element(:add_button) {b.input(:name => "methodToCall.addCopy.line#{@line_id}")}
|
35
|
-
end
|
36
|
-
end
|
37
|
-
end
|
@@ -1,30 +0,0 @@
|
|
1
|
-
# Copyright 2005-2013 The Kuali Foundation
|
2
|
-
#
|
3
|
-
# Licensed under the Educational Community License, Version 2.0 (the "License");
|
4
|
-
# you may not use this file except in compliance with the License.
|
5
|
-
# You may obtain a copy of the License at:
|
6
|
-
#
|
7
|
-
# http://www.opensource.org/licenses/ecl2.php
|
8
|
-
#
|
9
|
-
# Unless required by applicable law or agreed to in writing, software
|
10
|
-
# distributed under the License is distributed on an "AS IS" BASIS,
|
11
|
-
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
12
|
-
# See the License for the specific language governing permissions and
|
13
|
-
# limitations under the License.
|
14
|
-
|
15
|
-
module OLE_QA::Framework::OLEFS
|
16
|
-
# A new Exception Notes Line on an OLE Financial System Receiving Line.
|
17
|
-
class New_Exception_Notes_Line < OLE_QA::Framework::Subline_Object
|
18
|
-
# Initialize as a subclass of {OLE_QA::Framework::Subline_Object} with a subline_number of 0.
|
19
|
-
def initialize(ole_session, line_number, which)
|
20
|
-
super(ole_session, line_number, 0)
|
21
|
-
end
|
22
|
-
|
23
|
-
# Set elements on a New Exception Notes Line.
|
24
|
-
def set_elements
|
25
|
-
element(:exception_type_selector) {b.select_list(:id => "document.item[#{@line_id}].exceptionTypeId")}
|
26
|
-
element(:note_field) {b.text_field(:id => "document.item[#{@line_id}].exceptionNotes")}
|
27
|
-
element(:note_type_selector) {b.select_list(:id => "document.item[#{@line_id}].exceptionTypeId")}
|
28
|
-
end
|
29
|
-
end
|
30
|
-
end
|