Class: OLE_QA::Framework::OLEFS::Receiving_Line
- Inherits:
-
Line_Object
- Object
- Common_Object
- Data_Object
- Line_Object
- OLE_QA::Framework::OLEFS::Receiving_Line
- Defined in:
- lib/olefs/objects/receiving_line.rb
Overview
A single line on an OLE Financial System Receiving Document
Instance Attribute Summary
Attributes inherited from Line_Object
Attributes inherited from Common_Object
Instance Method Summary collapse
-
#set_elements ⇒ Object
Set receiving line elements.
-
#set_sublines ⇒ Object
Create accessor methods for new subline objects.
Methods inherited from Line_Object
#initialize, #line_id, #set_subline
Methods inherited from Common_Object
Methods included from Helpers
#browser, #load_yml, #set_element, #set_function
Constructor Details
This class inherits a constructor from OLE_QA::Framework::Line_Object
Instance Method Details
#set_elements ⇒ Object
Set receiving line elements.
27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 |
# File 'lib/olefs/objects/receiving_line.rb', line 27 def set_elements super element(:receive_button) {b.input(:alt => 'Receive')} element(:description_field) {b.td(:xpath => "//table[@summary='Items Section']/tbody/tr/td[1][b[contains(text(),'#{@line_number}')]]/following-sibling::td[2]")} element(:quantity_ordered_field) {b.td(:xpath => "//table[@summary='Items Section']/tbody/tr/td[1][b[contains(text(),'#{@line_number}')]]/following-sibling::td[4]")} element(:parts_ordered_field) {b.td(:xpath => "//table[@summary='Items Section']/tbody/tr/td[1][b[contains(text(),'#{@line_number}')]]/following-sibling::td[5]")} element(:prior_quantity_received_field) {b.td(:xpath => "//table[@summary='Items Section']/tbody/tr/td[1][b[contains(text(),'#{@line_number}')]]/following-sibling::td[6]")} element(:prior_parts_received_field) {b.td(:xpath => "//table[@summary='Items Section']/tbody/tr/td[1][b[contains(text(),'#{@line_number}')]]/following-sibling::td[7]")} element(:quantity_to_be_received_field) {b.td(:xpath => "//table[@summary='Items Section']/tbody/tr/td[1][b[contains(text(),'#{@line_number}')]]/following-sibling::td[8]")} element(:parts_to_be_received_field) {b.td(:xpath => "//table[@summary='Items Section']/tbody/tr/td[1][b[contains(text(),'#{@line_number}')]]/following-sibling::td[9]")} element(:item_received_quantity_field) {b.text_field(:id => "document.item[#{line_id}].oleItemReceivedTotalQuantity")} element(:item_received_parts_field) {b.text_field(:id => "document.item[#{line_id}].oleItemReceivedTotalParts")} element(:item_returned_quantity_field) {b.text_field(:id => "document.item[#{line_id}].oleItemReturnedTotalQuantity")} element(:item_returned_parts_field) {b.text_field(:id => "document.item[#{line_id}].oleItemReturnedTotalParts")} element(:item_damaged_quantity_field) {b.text_field(:id => "document.item[#{line_id}].oleItemDamagedTotalQuantity")} element(:item_damaged_parts_field) {b.text_field(:id => "document.item[#{line_id}].oleItemDamagedTotalParts")} element(:available_to_public_checkbox) {b.checkbox(:id => "document.item[#{line_id}].availableToPublic")} element(:public_view_checkbox) {b.checkbox(:id => "document.item[#{line_id}].availableToPublic")} element(:exception_notes_toggle) {b.input(:xpath => "//tr[td/b[contains(text(),'#{@line_number}')]]/following-sibling::tr[2]/td[1]/table/tbody/tr[1]/th/div/input")} element(:receipt_notes_toggle) {b.input(:xpath => "//tr[td/b[contains(text(),'#{@line_number}')]]/following-sibling::tr[3]/td[1]/table/tbody/tr[1]/th/div/input")} element(:special_processing_instructions_toggle) {b.input(:xpath => "//tr[td/b[contains(text(),'#{@line_number}')]]/following-sibling::tr[4]/td[1]/table/tbody/tr[1]/th/div/input")} element(:copies_line_toggle) # New Receipt Note Elements element(:receipt_note_type_selector) {b.select_list(:id => "document.item[#{line_id}].noteTypeId")} element(:receipt_note_field) {b.text_field(:id => "document.item[#{line_id}].receiptNotes")} element(:add_receipt_note_button) {b.input(:name => "methodToCall.addReceiptNote.line#{line_id}")} # New Exception Note Elements element(:exception_type_selector) {b.select_list(:id => "document.item[#{line_id}].exceptionTypeId")} element(:exception_note_field) {b.text_field(:id => "document.item[#{line_id}].exceptionNotes")} element(:add_exception_note_button) {b.input(:name => "methodToCall.addExceptionNOte.line#{line_id}")} end |
#set_sublines ⇒ Object
Create accessor methods for new subline objects.
19 20 21 22 23 24 |
# File 'lib/olefs/objects/receiving_line.rb', line 19 def set_sublines set_subline(:exception_notes_line, OLE_QA::Framework::OLEFS::Exception_Notes_Line) set_subline(:receipt_notes_line, OLE_QA::Framework::OLEFS::Receipt_Notes_Line) set_subline(:copies_line, OLE_QA::Framework::OLEFS::Copies_Line) set_subline(:processing_line, OLE_QA::Framework::OLEFS::Processing_Line) end |