2017-11-08 14:43:34 +00:00
import components from './components_selectors.js' ;
2017-11-07 08:09:59 +00:00
2017-09-15 10:24:37 +00:00
export default {
2017-09-17 16:09:59 +00:00
globalItems : {
2018-02-20 12:48:25 +00:00
applicationsMenuButton : ` #apps ` ,
2018-03-12 11:31:50 +00:00
applicationsMenuVisible : ` vn-main-menu [vn-id="apps-menu"] ul ` ,
2018-05-23 12:26:51 +00:00
clientsButton : ` vn-main-menu [vn-id="apps-menu"] ul > li[ui-sref="client.index"] ` ,
2018-11-14 17:05:24 +00:00
itemsButton : ` vn-main-menu [vn-id="apps-menu"] ul > li[ui-sref="item.index"] ` ,
2018-09-04 09:38:48 +00:00
ticketsButton : ` vn-main-menu [vn-id="apps-menu"] ul > li[ui-sref="ticket.index"] ` ,
2019-01-09 12:49:37 +00:00
claimsButton : ` vn-main-menu [vn-id="apps-menu"] ul > li[ui-sref="claim.index"] ` ,
returnToModuleIndexButton : ` a[translate-attr="{title: 'Return to module index'}"] ` ,
2019-01-28 12:41:57 +00:00
userMenuButton : ` vn-topbar #user ` ,
userLocalWarehouse : ` vn-topbar vn-popover vn-autocomplete[field=" $ ctrl.localWarehouseFk"] ` ,
userLocalBank : ` vn-topbar vn-popover vn-autocomplete[field=" $ ctrl.localBankFk"] ` ,
userLocalCompany : ` vn-topbar vn-popover vn-autocomplete[field=" $ ctrl.localCompanyFk"] ` ,
userWarehouse : ` vn-topbar vn-popover vn-autocomplete[field=" $ ctrl.warehouseFk"] ` ,
userCompany : ` vn-topbar vn-popover vn-autocomplete[field=" $ ctrl.companyFk"] ` ,
userConfigFirstAutocompleteClear : '#localWarehouse > div > div > div > vn-icon.clear' ,
userConfigSecondAutocompleteClear : '#localBank > div > div > div > vn-icon.clear' ,
userConfigThirdAutocompleteClear : '#localCompany > div > div > div > vn-icon.clear' ,
2019-01-09 12:49:37 +00:00
acceptVnConfirm : ` vn-confirm button[response=ACCEPT] `
2017-09-17 16:09:59 +00:00
} ,
2017-10-29 14:49:44 +00:00
clientsIndex : {
2017-11-07 08:09:59 +00:00
searchClientInput : ` ${ components . vnTextfield } ` ,
2018-09-24 09:10:03 +00:00
searchButton : ` vn-searchbar vn-icon[icon="search"] ` ,
2018-03-01 20:18:43 +00:00
searchResult : ` vn-item-client a ` ,
2018-11-05 14:06:13 +00:00
createClientButton : ` ${ components . vnFloatButton } ` ,
othersButton : ` vn-left-menu li[name="Others"] > a `
2017-09-17 16:09:59 +00:00
} ,
createClientView : {
2017-11-08 14:43:34 +00:00
name : ` ${ components . vnTextfield } [name="name"] ` ,
taxNumber : ` ${ components . vnTextfield } [name="fi"] ` ,
socialName : ` ${ components . vnTextfield } [name="socialName"] ` ,
userName : ` ${ components . vnTextfield } [name="userName"] ` ,
email : ` ${ components . vnTextfield } [name="email"] ` ,
2019-01-07 08:33:07 +00:00
salesPersonAutocomplete : ` vn-autocomplete[field=" $ ctrl.client.salesPersonFk"] ` ,
2018-04-22 14:25:44 +00:00
createButton : ` ${ components . vnSubmit } ` ,
2018-10-30 09:22:47 +00:00
cancelButton : ` vn-button[href="#!/client/index"] `
2017-10-30 14:37:35 +00:00
} ,
2019-01-16 14:02:50 +00:00
clientDescriptor : {
2019-01-21 14:21:24 +00:00
moreMenu : ` vn-client-descriptor vn-icon-menu > div > vn-icon ` ,
2019-01-16 14:02:50 +00:00
simpleTicketButton : 'vn-client-descriptor vn-popover > div > div.content > div > div.list > ul > li'
} ,
2018-02-15 11:28:05 +00:00
clientBasicData : {
2018-11-05 14:06:13 +00:00
basicDataButton : ` vn-left-menu a[ui-sref="client.card.basicData"] ` ,
2017-11-08 14:43:34 +00:00
nameInput : ` ${ components . vnTextfield } [name="name"] ` ,
2017-12-05 14:28:48 +00:00
contactInput : ` ${ components . vnTextfield } [name="contact"] ` ,
2017-11-08 14:43:34 +00:00
phoneInput : ` ${ components . vnTextfield } [name="phone"] ` ,
mobileInput : ` ${ components . vnTextfield } [name="mobile"] ` ,
faxInput : ` ${ components . vnTextfield } [name="fax"] ` ,
emailInput : ` ${ components . vnTextfield } [name="email"] ` ,
2019-01-07 08:33:07 +00:00
salesPersonAutocomplete : ` vn-autocomplete[field=" $ ctrl.client.salesPersonFk"] ` ,
channelAutocomplete : ` vn-autocomplete[field=" $ ctrl.client.contactChannelFk"] ` ,
2018-10-30 09:22:47 +00:00
saveButton : ` ${ components . vnSubmit } `
2017-10-31 07:14:33 +00:00
} ,
2018-02-15 11:28:05 +00:00
clientFiscalData : {
2018-11-05 14:06:13 +00:00
fiscalDataButton : ` vn-left-menu a[ui-sref="client.card.fiscalData"] ` ,
2017-12-05 14:28:48 +00:00
socialNameInput : ` ${ components . vnTextfield } [name="socialName"] ` ,
2017-12-07 12:35:40 +00:00
fiscalIdInput : ` ${ components . vnTextfield } [name="fi"] ` ,
2018-05-31 09:52:39 +00:00
equalizationTaxCheckboxLabel : ` vn-check[label='Is equalizated'] > label > input ` ,
2018-02-20 09:00:19 +00:00
acceptPropagationButton : ` vn-client-fiscal-data > vn-confirm button[response=ACCEPT] ` ,
2017-11-08 14:43:34 +00:00
addressInput : ` ${ components . vnTextfield } [name="street"] ` ,
2017-11-09 08:03:41 +00:00
cityInput : ` ${ components . vnTextfield } [name="city"] ` ,
2017-11-09 12:29:51 +00:00
postcodeInput : ` ${ components . vnTextfield } [name="postcode"] ` ,
2019-01-07 08:33:07 +00:00
provinceAutocomplete : ` vn-autocomplete[field=" $ ctrl.client.provinceFk"] ` ,
countryAutocomplete : ` vn-autocomplete[field=" $ ctrl.client.countryFk"] ` ,
2018-05-31 09:52:39 +00:00
activeCheckboxLabel : ` vn-check[label="Active"] > label ` ,
2018-10-16 13:35:52 +00:00
activeCheckboxInput : ` vn-check[label="Active"] input ` ,
2018-05-31 09:52:39 +00:00
frozenCheckboxLabel : ` vn-check[label="Frozen"] > label ` ,
2018-10-16 13:35:52 +00:00
frozenCheckboxInput : ` vn-check[label="Frozen"] input ` ,
2018-05-31 09:52:39 +00:00
invoiceByAddressCheckboxInput : ` vn-check[label='Invoice by address'] > label > input ` ,
2018-06-28 13:58:04 +00:00
verifiedDataCheckbox : ` vn-check[label="Verified data"] input ` ,
2018-05-31 09:52:39 +00:00
verifiedDataCheckboxInput : ` vn-check[label="Verified data"] > label > input ` ,
hasToInvoiceCheckboxLabel : ` vn-check[label='Has to invoice'] > label ` ,
2018-10-16 13:35:52 +00:00
hasToInvoiceCheckboxInput : ` vn-check[label='Has to invoice'] input ` ,
2018-05-31 09:52:39 +00:00
invoiceByMailCheckboxLabel : ` vn-check[label='Invoice by mail'] > label ` ,
2018-10-16 13:35:52 +00:00
invoiceByMailCheckboxInput : ` vn-check[label='Invoice by mail'] input ` ,
2018-05-31 09:52:39 +00:00
viesCheckboxInput : ` vn-check[label='Vies'] > label > input ` ,
2018-10-30 09:22:47 +00:00
saveButton : ` ${ components . vnSubmit } `
2017-12-11 11:33:27 +00:00
} ,
2018-02-15 11:28:05 +00:00
clientPayMethod : {
2019-01-07 08:33:07 +00:00
payMethodAutocomplete : ` vn-autocomplete[field=" $ ctrl.client.payMethodFk"] ` ,
2017-12-11 11:33:27 +00:00
IBANInput : ` ${ components . vnTextfield } [name="iban"] ` ,
dueDayInput : ` ${ components . vnTextfield } [name="dueDay"] ` ,
2018-07-10 12:56:50 +00:00
receivedCoreLCRCheckbox : ` vn-check[label='Received LCR'] > label > input ` ,
2018-05-31 09:52:39 +00:00
receivedCoreVNLCheckbox : ` vn-check[label='Received core VNL'] > label > input ` ,
receivedB2BVNLCheckbox : ` vn-check[label='Received B2B VNL'] > label > input ` ,
2019-01-07 08:33:07 +00:00
swiftBicAutocomplete : 'vn-client-billing-data vn-autocomplete[field="$ctrl.client.bankEntityFk"]' ,
2018-11-21 10:53:18 +00:00
clearswiftBicButton : ` vn-client-billing-data vn-autocomplete[field=" $ ctrl.client.bankEntityFk"] > div > div > div > vn-icon > i ` ,
2018-10-24 08:57:14 +00:00
newBankEntityButton : 'vn-client-billing-data vn-icon-button[vn-tooltip="New bank entity"] > button' ,
newBankEntityName : 'vn-client-billing-data > vn-dialog vn-textfield[label="Name"] input' ,
newBankEntityBIC : 'vn-client-billing-data > vn-dialog vn-textfield[label="Swift / BIC"] input' ,
acceptBankEntityButton : 'vn-client-billing-data > vn-dialog button[response="ACCEPT"]' ,
2018-10-30 09:22:47 +00:00
saveButton : ` ${ components . vnSubmit } `
2017-12-13 10:25:50 +00:00
} ,
2018-02-15 11:28:05 +00:00
clientAddresses : {
2018-11-05 14:06:13 +00:00
addressesButton : ` vn-left-menu a[ui-sref="client.card.address.index"] ` ,
2018-05-29 11:36:41 +00:00
createAddress : ` vn-client-address-index ${ components . vnFloatButton } ` ,
2018-05-31 09:52:39 +00:00
defaultCheckboxInput : ` vn-check[label='Default'] > label > input ` ,
2018-01-29 11:37:54 +00:00
consigneeInput : ` ${ components . vnTextfield } [name="nickname"] ` ,
2017-12-13 10:25:50 +00:00
streetAddressInput : ` ${ components . vnTextfield } [name="street"] ` ,
2018-02-15 12:20:01 +00:00
postcodeInput : ` ${ components . vnTextfield } [name="postalCode"] ` ,
2017-12-13 10:25:50 +00:00
cityInput : ` ${ components . vnTextfield } [name="city"] ` ,
2019-01-07 08:33:07 +00:00
provinceAutocomplete : ` vn-autocomplete[field=" $ ctrl.address.provinceFk"] ` ,
agencyAutocomplete : ` vn-autocomplete[field=" $ ctrl.address.agencyModeFk"] ` ,
2017-12-13 10:25:50 +00:00
phoneInput : ` ${ components . vnTextfield } [name="phone"] ` ,
mobileInput : ` ${ components . vnTextfield } [name="mobile"] ` ,
2019-01-27 23:26:01 +00:00
defaultAddress : 'vn-client-address-index vn-horizontal:nth-child(1) div[name="street"]' ,
secondMakeDefaultStar : 'vn-client-address-index vn-card vn-horizontal:nth-child(2) vn-icon-button[icon="star_border"]' ,
2018-05-31 09:52:39 +00:00
firstEditButton : ` vn-client-address-index vn-icon-button[icon='edit'] ` ,
2019-01-27 23:26:01 +00:00
secondEditButton : ` vn-client-address-index vn-horizontal:nth-child(2) vn-icon-button[icon='edit'] ` ,
2018-05-31 09:52:39 +00:00
activeCheckbox : ` vn-check[label='Enabled'] > label > input ` ,
equalizationTaxCheckboxLabel : ` vn-client-address-edit vn-check[label='Is equalizated'] > label > input ` ,
2019-01-07 08:33:07 +00:00
firstObservationTypeAutocomplete : ` vn-client-address-edit [name=observations] :nth-child(1) [field="observation.observationTypeFk"] ` ,
2018-05-31 09:52:39 +00:00
firstObservationDescriptionInput : ` vn-client-address-edit [name=observations] :nth-child(1) [model="observation.description"] input ` ,
2019-01-07 08:33:07 +00:00
secondObservationTypeAutocomplete : ` vn-client-address-edit [name=observations] :nth-child(2) [field="observation.observationTypeFk"] ` ,
2018-05-31 09:52:39 +00:00
secondObservationDescriptionInput : ` vn-client-address-edit [name=observations] :nth-child(2) [model="observation.description"] input ` ,
addObservationButton : ` vn-client-address-edit vn-icon-button[icon="add_circle"] ` ,
2018-04-22 14:25:44 +00:00
saveButton : ` ${ components . vnSubmit } ` ,
2019-01-23 14:34:16 +00:00
cancelCreateAddressButton : ` button[ui-sref="client.card.address.index"] ` ,
cancelEditAddressButton : 'vn-client-address-edit > form > vn-button-bar > vn-button > button'
2017-12-15 09:07:52 +00:00
} ,
2018-02-15 11:28:05 +00:00
clientWebAccess : {
2018-11-05 14:06:13 +00:00
webAccessButton : ` vn-left-menu a[ui-sref="client.card.webAccess"] ` ,
2018-05-31 09:52:39 +00:00
enableWebAccessCheckbox : ` vn-check[label='Enable web access'] > label > input ` ,
2017-12-15 09:07:52 +00:00
userNameInput : ` ${ components . vnTextfield } [name="name"] ` ,
2018-10-30 09:22:47 +00:00
saveButton : ` ${ components . vnSubmit } `
2017-12-15 11:51:06 +00:00
} ,
2018-02-15 11:28:05 +00:00
clientNotes : {
2017-12-15 11:51:06 +00:00
addNoteFloatButton : ` ${ components . vnFloatButton } ` ,
2018-05-31 09:52:39 +00:00
noteInput : ` vn-textarea[label="Note"] ` ,
2017-12-15 11:51:06 +00:00
saveButton : ` ${ components . vnSubmit } ` ,
2018-10-30 09:22:47 +00:00
firstNoteText : 'vn-client-note .text'
2018-01-08 07:12:39 +00:00
} ,
2018-02-15 11:28:05 +00:00
clientCredit : {
2018-01-08 07:12:39 +00:00
addCreditFloatButton : ` ${ components . vnFloatButton } ` ,
creditInput : ` ${ components . vnTextfield } [name="credit"] ` ,
saveButton : ` ${ components . vnSubmit } ` ,
2018-10-30 09:22:47 +00:00
firstCreditText : 'vn-client-credit-index vn-card > div vn-table vn-tbody > vn-tr'
2018-01-08 14:06:20 +00:00
} ,
2018-02-15 11:28:05 +00:00
clientGreuge : {
2018-01-08 14:06:20 +00:00
addGreugeFloatButton : ` ${ components . vnFloatButton } ` ,
2018-01-11 14:25:03 +00:00
amountInput : ` ${ components . vnTextfield } [name="amount"] ` ,
2018-01-12 08:47:51 +00:00
descriptionInput : ` ${ components . vnTextfield } [name="description"] ` ,
2019-01-07 08:33:07 +00:00
typeAutocomplete : ` vn-autocomplete[field=" $ ctrl.greuge.greugeTypeFk"] ` ,
2018-01-12 08:47:51 +00:00
saveButton : ` ${ components . vnSubmit } ` ,
2018-10-30 09:22:47 +00:00
firstGreugeText : 'vn-client-greuge-index vn-card > div vn-table vn-tbody > vn-tr'
2018-01-12 13:20:28 +00:00
} ,
2018-02-15 11:28:05 +00:00
clientMandate : {
2018-10-30 09:22:47 +00:00
firstMandateText : 'vn-client-mandate vn-card > div vn-table vn-tbody > vn-tr'
2018-02-15 11:28:05 +00:00
} ,
2018-03-02 13:45:22 +00:00
clientInvoices : {
2018-10-30 09:22:47 +00:00
firstInvoiceText : 'vn-client-invoice vn-card > div vn-table vn-tbody > vn-tr'
} ,
clientLog : {
2018-11-05 14:06:13 +00:00
logButton : ` vn-left-menu a[ui-sref="client.card.log"] ` ,
2018-10-30 09:22:47 +00:00
lastModificationPreviousValue : 'vn-client-log vn-table vn-td.before' ,
lastModificationCurrentValue : 'vn-client-log vn-table vn-td.after'
2018-11-19 13:33:18 +00:00
} ,
clientRisk : {
riskButton : ` vn-left-menu a[ui-sref="client.card.risk.index"] ` ,
2019-01-30 08:40:38 +00:00
companyAutocomplete : 'vn-client-risk-index vn-autocomplete[field="$ctrl.companyFk"]' ,
2018-11-19 13:33:18 +00:00
newPaymentButton : ` ${ components . vnFloatButton } ` ,
2019-01-27 23:26:01 +00:00
newPaymentBankInut : ` vn-client-risk-create vn-textfield[field=" $ ctrl.receipt.bankFk"] input ` ,
newPaymentAmountInput : ` vn-client-risk-create vn-textfield[field=" $ ctrl.receipt.amountPaid"] input ` ,
2019-02-05 15:46:02 +00:00
saveButton : ` vn-client-risk-create vn-button[label="Save"] ` ,
2019-01-27 23:26:01 +00:00
firstRiskLineBalance : 'vn-client-risk-index vn-tbody > vn-tr:nth-child(1) > vn-td:nth-child(8)'
2018-11-19 13:33:18 +00:00
2018-03-02 13:45:22 +00:00
} ,
2018-02-15 11:28:05 +00:00
itemsIndex : {
2018-09-06 12:39:08 +00:00
goBackToModuleIndexButton : ` vn-ticket-descriptor a[href="#!/ticket/index"] ` ,
2018-02-15 12:20:01 +00:00
createItemButton : ` ${ components . vnFloatButton } ` ,
2018-03-01 20:18:43 +00:00
searchResult : ` vn-item-product a ` ,
2018-03-13 13:07:42 +00:00
searchResultPreviewButton : ` vn-item-product .buttons > [icon="desktop_windows"] ` ,
searchResultCloneButton : ` vn-item-product .buttons > [icon="icon-clone"] ` ,
2018-05-25 08:03:45 +00:00
acceptClonationAlertButton : ` vn-item-index [vn-id="clone"] [response="ACCEPT"] ` ,
2018-10-28 11:37:37 +00:00
searchItemInput : ` vn-searchbar vn-textfield input ` ,
2018-09-24 09:10:03 +00:00
searchButton : ` vn-searchbar vn-icon[icon="search"] ` ,
2018-10-30 09:22:47 +00:00
closeItemSummaryPreview : 'vn-item-index [vn-id="preview"] button.close'
2018-02-15 12:20:01 +00:00
} ,
2018-02-26 15:06:49 +00:00
itemCreateView : {
2019-01-16 07:46:40 +00:00
temporalName : ` ${ components . vnTextfield } [name="provisionalName"] ` ,
2019-01-07 08:33:07 +00:00
typeAutocomplete : ` vn-autocomplete[field=" $ ctrl.item.typeFk"] ` ,
intrastatAutocomplete : ` vn-autocomplete[field=" $ ctrl.item.intrastatFk"] ` ,
originAutocomplete : ` vn-autocomplete[field=" $ ctrl.item.originFk"] ` ,
2018-04-22 14:25:44 +00:00
createButton : ` ${ components . vnSubmit } ` ,
2018-10-30 09:22:47 +00:00
cancelButton : ` button[ui-sref="item.index"] `
2018-02-26 15:06:49 +00:00
} ,
2018-11-14 17:05:24 +00:00
itemDescriptor : {
2019-01-21 14:21:24 +00:00
moreMenu : ` vn-item-descriptor vn-icon-menu > div > vn-icon ` ,
2018-11-14 17:05:24 +00:00
moreMenuRegularizeButton : ` vn-item-descriptor vn-icon-menu > div > vn-drop-down > vn-popover ul > li:nth-child(1) ` ,
regularizeQuantityInput : ` vn-item-descriptor > vn-dialog > div > form > div.body > tpl-body > div > vn-textfield > div > div > div.infix > input ` ,
2019-02-04 14:40:57 +00:00
regularizeWarehouseAutocomplete : 'vn-item-descriptor vn-dialog vn-autocomplete[field="$ctrl.warehouseFk"]' ,
2019-02-04 13:47:55 +00:00
editButton : 'vn-item-card vn-item-descriptor vn-float-button[icon="edit"]' ,
2018-11-14 17:05:24 +00:00
regularizeSaveButton : ` vn-item-descriptor > vn-dialog > div > form > div.buttons > tpl-buttons > button `
} ,
2018-02-19 10:55:45 +00:00
itemBasicData : {
2018-11-05 14:06:13 +00:00
basicDataButton : ` vn-left-menu a[ui-sref="item.card.data"] ` ,
2019-01-27 20:09:54 +00:00
goToItemIndexButton : 'vn-item-descriptor [ui-sref="item.index"]' ,
2019-01-07 08:33:07 +00:00
typeAutocomplete : ` vn-autocomplete[field=" $ ctrl.item.typeFk"] ` ,
intrastatAutocomplete : ` vn-autocomplete[field=" $ ctrl.item.intrastatFk"] ` ,
2018-10-15 11:20:55 +00:00
nameInput : ` vn-textfield[label="Name"] input ` ,
relevancyInput : ` vn-textfield[label="Relevancy"] input ` ,
2019-01-07 08:33:07 +00:00
originAutocomplete : ` vn-autocomplete[field=" $ ctrl.item.originFk"] ` ,
expenceAutocomplete : ` vn-autocomplete[field=" $ ctrl.item.expenceFk"] ` ,
longNameInput : ` vn-textfield[field=" $ ctrl.item.longName"] input ` ,
2018-10-23 09:25:51 +00:00
isActiveCheckbox : ` vn-check[label='Active'] > label > input ` ,
2018-10-30 09:22:47 +00:00
submitBasicDataButton : ` ${ components . vnSubmit } `
2018-02-19 10:55:45 +00:00
} ,
2018-02-27 18:00:46 +00:00
itemTags : {
2018-03-01 15:52:35 +00:00
goToItemIndexButton : 'vn-item-descriptor [ui-sref="item.index"]' ,
2018-11-05 14:06:13 +00:00
tagsButton : ` vn-left-menu a[ui-sref="item.card.tags"] ` ,
2019-01-27 23:26:01 +00:00
fourthTagAutocomplete : ` vn-item-tags vn-horizontal:nth-child(4) > vn-autocomplete[field="itemTag.tagFk"] ` ,
fourthValueInput : ` vn-item-tags vn-horizontal:nth-child(4) > vn-textfield[label="Value"] input ` ,
fourthRelevancyInput : ` vn-item-tags vn-horizontal:nth-child(4) > vn-textfield[label="Relevancy"] input ` ,
fourthRemoveTagButton : ` vn-item-tags vn-horizontal:nth-child(4) vn-icon-button[icon="delete"] ` ,
fifthTagAutocomplete : ` vn-item-tags vn-horizontal:nth-child(5) > vn-autocomplete[field="itemTag.tagFk"] ` ,
fifthValueInput : ` vn-item-tags vn-horizontal:nth-child(5) > vn-textfield[label="Value"] input ` ,
fifthRelevancyInput : ` vn-item-tags vn-horizontal:nth-child(5) > vn-textfield[label="Relevancy"] input ` ,
sixthTagAutocomplete : ` vn-item-tags vn-horizontal:nth-child(6) > vn-autocomplete[field="itemTag.tagFk"] ` ,
sixthValueInput : ` vn-item-tags vn-horizontal:nth-child(6) > vn-textfield[label="Value"] input ` ,
sixthRelevancyInput : ` vn-item-tags vn-horizontal:nth-child(6) > vn-textfield[label="Relevancy"] input ` ,
seventhTagAutocomplete : ` vn-item-tags vn-horizontal:nth-child(7) > vn-autocomplete[field="itemTag.tagFk"] ` ,
seventhValueInput : ` vn-item-tags vn-horizontal:nth-child(7) > vn-textfield[label="Value"] input ` ,
seventhRelevancyInput : ` vn-item-tags vn-horizontal:nth-child(7) > vn-textfield[label="Relevancy"] input ` ,
addItemTagButton : ` vn-item-tags vn-icon-button[icon="add_circle"] ` ,
submitItemTagsButton : ` vn-item-tags ${ components . vnSubmit } `
2018-02-27 18:00:46 +00:00
} ,
2018-02-26 12:43:07 +00:00
itemTax : {
2019-01-27 23:26:01 +00:00
firstClassAutocomplete : ` vn-item-tax vn-horizontal:nth-child(1) > vn-autocomplete[field="tax.taxClassFk"] ` ,
secondClassAutocomplete : ` vn-item-tax vn-horizontal:nth-child(2) > vn-autocomplete[field="tax.taxClassFk"] ` ,
thirdClassAutocomplete : ` vn-item-tax vn-horizontal:nth-child(3) > vn-autocomplete[field="tax.taxClassFk"] ` ,
submitTaxButton : ` vn-item-tax ${ components . vnSubmit } `
2018-02-26 12:43:07 +00:00
} ,
2018-02-15 12:20:01 +00:00
itemBarcodes : {
2019-01-27 23:26:01 +00:00
addBarcodeButton : ` vn-item-barcode vn-icon[icon="add_circle"] ` ,
thirdCodeInput : ` vn-item-barcode vn-horizontal:nth-child(3) > ${ components . vnTextfield } ` ,
submitBarcodesButton : ` vn-item-barcode ${ components . vnSubmit } ` ,
2018-12-11 07:50:54 +00:00
firstCodeRemoveButton : ` vn-item-barcode vn-horizontal vn-none vn-icon[icon="delete"] `
2018-02-20 14:22:24 +00:00
} ,
itemNiches : {
2019-01-27 23:26:01 +00:00
addNicheButton : ` vn-item-niche vn-icon[icon="add_circle"] ` ,
firstWarehouseAutocomplete : ` vn-item-niche vn-autocomplete[field="niche.warehouseFk"] ` ,
firstCodeInput : ` vn-item-niche vn-horizontal:nth-child(1) > vn-textfield[label="Code"] input ` ,
secondWarehouseAutocomplete : ` vn-item-niche vn-horizontal:nth-child(2) > vn-autocomplete[field="niche.warehouseFk"] ` ,
secondCodeInput : ` vn-item-niche vn-horizontal:nth-child(2) > vn-textfield[label="Code"] input ` ,
secondNicheRemoveButton : ` vn-item-niche vn-horizontal:nth-child(2) > vn-none > vn-icon[icon="delete"] ` ,
thirdWarehouseAutocomplete : ` vn-item-niche vn-horizontal:nth-child(3) > vn-autocomplete[field="niche.warehouseFk"] ` ,
thirdCodeInput : ` vn-item-niche vn-horizontal:nth-child(3) > vn-textfield[label="Code"] input ` ,
submitNichesButton : ` vn-item-niche ${ components . vnSubmit } `
2018-02-21 10:03:55 +00:00
} ,
itemBotanical : {
2019-01-27 23:26:01 +00:00
botanicalInput : ` vn-item-botanical vn-horizontal:nth-child(1) > ${ components . vnTextfield } ` ,
genusAutocomplete : ` vn-item-botanical vn-autocomplete[field=" $ ctrl.botanical.genusFk"] ` ,
speciesAutocomplete : ` vn-item-botanical vn-autocomplete[field=" $ ctrl.botanical.specieFk"] ` ,
submitBotanicalButton : ` vn-item-botanical ${ components . vnSubmit } `
2018-02-22 10:26:32 +00:00
} ,
2018-02-22 15:44:14 +00:00
itemSummary : {
2019-01-20 15:47:04 +00:00
basicData : ` vn-item-summary [name="basicData"] ` ,
vat : ` vn-item-summary [name="tax"] ` ,
tags : ` vn-item-summary [name="tags"] ` ,
niche : ` vn-item-summary [name="niche"] ` ,
botanical : ` vn-item-summary [name="botanical"] ` ,
barcode : ` vn-item-summary [name="barcode"] `
2018-03-19 15:29:55 +00:00
} ,
2018-11-16 11:03:52 +00:00
itemDiary : {
2019-01-27 23:26:01 +00:00
thirdTicketId : 'vn-item-diary vn-tbody > vn-tr:nth-child(3) > vn-td:nth-child(2) > span' ,
firstBalance : 'vn-item-diary vn-tbody > vn-tr:nth-child(1) > vn-td.balance' ,
fifthBalance : 'vn-item-diary vn-tbody > vn-tr.ng-scope.isToday.isIn > vn-td.balance > span' ,
2019-01-07 08:33:07 +00:00
warehouseAutocomplete : 'vn-item-diary vn-autocomplete[field="$ctrl.warehouseFk"]' ,
2018-11-16 11:03:52 +00:00
} ,
2018-11-14 17:05:24 +00:00
ticketSummary : {
2019-01-30 22:47:06 +00:00
sale : 'vn-ticket-summary [name="sales"] vn-table > div > vn-tbody > vn-tr' ,
firstSaleItemId : 'vn-ticket-summary [name="sales"] vn-table > div > vn-tbody > vn-tr > vn-td:nth-child(2) > span' ,
2019-01-20 15:47:04 +00:00
popoverDiaryButton : 'vn-ticket-summary vn-item-descriptor-popover vn-item-descriptor vn-icon[icon="icon-transaction"]' ,
2019-01-30 22:47:06 +00:00
firstSaleQuantity : 'vn-ticket-summary [name="sales"] vn-table > div > vn-tbody > vn-tr > vn-td:nth-child(4)' ,
firstSaleDiscount : 'vn-ticket-summary [name="sales"] vn-table > div > vn-tbody > vn-tr > vn-td:nth-child(6)'
2018-11-14 17:05:24 +00:00
} ,
2018-03-19 15:29:55 +00:00
ticketsIndex : {
2019-01-20 17:48:03 +00:00
newTicketButton : 'vn-ticket-index > a' ,
2018-09-12 09:00:51 +00:00
searchResult : ` vn-ticket-index vn-card > div > vn-table > div > vn-tbody > a.vn-tr ` ,
2018-09-12 13:38:08 +00:00
searchResultDate : ` vn-ticket-index vn-table vn-tbody > a:nth-child(1) > vn-td:nth-child(4) ` ,
2018-09-12 14:25:12 +00:00
searchResultAddress : ` vn-ticket-index vn-table vn-tbody > a:nth-child(1) > vn-td:nth-child(6) ` ,
2018-07-11 09:03:34 +00:00
searchTicketInput : ` vn-ticket-index ${ components . vnTextfield } ` ,
2018-11-11 16:40:02 +00:00
searchButton : ` vn-ticket-index vn-searchbar vn-icon[icon="search"] ` ,
moreMenu : ` vn-ticket-index vn-icon-menu[vn-id="more-button"] > div > vn-icon ` ,
moreMenuTurns : ` vn-ticket-index vn-icon-menu vn-drop-down > vn-popover li ` ,
2018-11-19 08:27:15 +00:00
sixthWeeklyTicketTurn : ` vn-ticket-weekly > form > div > vn-card > div > vn-table > div > vn-tbody > vn-tr:nth-child(6) > vn-td:nth-child(3) > vn-autocomplete > div > div > input ` ,
2018-11-11 16:40:02 +00:00
weeklyTicket : ` vn-ticket-weekly vn-table > div > vn-tbody > vn-tr ` ,
sixthWeeklyTicketDeleteIcon : ` vn-ticket-weekly > form vn-tbody > vn-tr:nth-child(6) > vn-td:nth-child(6) > vn-icon-button[icon="delete"] `
} ,
2019-01-15 11:38:58 +00:00
createTicketView : {
clientAutocomplete : 'vn-ticket-create vn-autocomplete[field="$ctrl.clientFk"]' ,
addressAutocomplete : 'vn-ticket-create vn-autocomplete[field="$ctrl.addressFk"]' ,
deliveryDateInput : 'vn-ticket-create > div > div > vn-card > div > vn-ticket-create-card > vn-date-picker > div > input' ,
warehouseAutocomplete : 'vn-ticket-create vn-autocomplete[field="$ctrl.warehouseFk"]' ,
agencyAutocomplete : 'vn-ticket-create vn-autocomplete[field="$ctrl.ticket.agencyModeFk"]' ,
createButton : ` ${ components . vnSubmit } `
} ,
2018-11-11 16:40:02 +00:00
ticketDescriptor : {
2019-01-21 14:21:24 +00:00
moreMenu : ` vn-ticket-descriptor vn-icon-menu > div > vn-icon ` ,
2018-11-11 16:40:02 +00:00
moreMenuAddToTurn : ` vn-ticket-descriptor vn-icon-menu > div > vn-drop-down > vn-popover ul > li:nth-child(1) ` ,
2018-11-13 12:03:44 +00:00
moreMenuDeleteTicket : ` vn-ticket-descriptor vn-icon-menu > div > vn-drop-down > vn-popover ul > li:nth-child(2) ` ,
acceptDeleteTicketButton : ` vn-ticket-descriptor button[response="ACCEPT"] ` ,
2018-11-19 08:27:15 +00:00
thursdayButton : ` vn-ticket-descriptor > vn-dialog > div > form > div.body > tpl-body > div > vn-tool-bar > vn-button:nth-child(4) ` ,
saturdayButton : ` vn-ticket-descriptor > vn-dialog > div > form > div.body > tpl-body > div > vn-tool-bar > vn-button:nth-child(6) `
2018-03-19 15:29:55 +00:00
} ,
ticketNotes : {
2018-12-11 07:50:54 +00:00
firstNoteRemoveButton : ` vn-icon[icon="delete"] ` ,
2018-05-31 09:52:39 +00:00
addNoteButton : ` vn-icon[icon="add_circle"] ` ,
2019-01-07 08:33:07 +00:00
firstNoteTypeAutocomplete : ` vn-autocomplete[field="observation.observationTypeFk"] ` ,
2018-06-28 13:58:04 +00:00
firstDescriptionInput : ` vn-textfield[label="Description"] input ` ,
2018-10-30 09:22:47 +00:00
submitNotesButton : ` ${ components . vnSubmit } `
2018-03-19 15:29:55 +00:00
} ,
2018-03-22 14:01:36 +00:00
ticketExpedition : {
2018-11-05 14:06:13 +00:00
expeditionButton : ` vn-left-menu a[ui-sref="ticket.card.expedition"] ` ,
2018-10-11 07:41:30 +00:00
secondExpeditionRemoveButton : ` vn-ticket-expedition vn-table div > vn-tbody > vn-tr:nth-child(2) > vn-td:nth-child(1) > vn-icon-button[icon="delete"] ` ,
2018-10-29 10:07:48 +00:00
acceptDeleteRowButton : ` vn-ticket-expedition > vn-confirm[vn-id="delete-expedition"] button[response=ACCEPT] ` ,
2018-10-30 09:22:47 +00:00
expeditionRow : ` vn-ticket-expedition vn-table vn-tbody > vn-tr `
2018-03-22 14:01:36 +00:00
} ,
2018-03-19 15:29:55 +00:00
ticketPackages : {
2018-11-05 14:06:13 +00:00
packagesButton : ` vn-left-menu a[ui-sref="ticket.card.package.index"] ` ,
2019-01-07 08:33:07 +00:00
firstPackageAutocomplete : ` vn-autocomplete[label="Package"] ` ,
2018-09-12 14:25:12 +00:00
firstQuantityInput : ` vn-textfield[label="Quantity"] input ` ,
2018-04-04 14:41:06 +00:00
firstRemovePackageButton : ` vn-icon[vn-tooltip="Remove package"] ` ,
2018-09-12 14:25:12 +00:00
addPackageButton : ` vn-icon-button[vn-tooltip="Add package"] ` ,
2019-01-07 09:55:23 +00:00
clearPackageAutocompleteButton : ` vn-autocomplete[label="Package"] > div > div > div > vn-icon > i ` ,
2018-10-30 09:22:47 +00:00
savePackagesButton : ` ${ components . vnSubmit } `
2018-04-04 09:56:07 +00:00
} ,
ticketSales : {
2019-01-27 20:09:54 +00:00
saleButton : ` vn-left-menu a[ui-sref="ticket.card.sale"] ` ,
2018-09-06 12:39:08 +00:00
saleLine : ` vn-table div > vn-tbody > vn-tr ` ,
2018-10-22 15:12:41 +00:00
saleDescriptorPopover : 'vn-ticket-sale vn-item-descriptor-popover > vn-popover' ,
2018-09-06 12:39:08 +00:00
saleDescriptorPopoverSummaryButton : 'vn-item-descriptor-popover a[href="#!/item/1/summary"]' ,
2019-01-21 14:21:24 +00:00
descriptorItemDiaryButton : ` vn-item-descriptor .quicklinks.ng-scope > vn-horizontal > a > vn-icon > i ` ,
2018-11-15 13:15:34 +00:00
newItemButton : 'vn-float-button[icon="add"]' ,
2018-07-17 06:44:31 +00:00
firstSaleText : ` vn-table div > vn-tbody > vn-tr:nth-child(1) ` ,
2019-02-04 13:47:55 +00:00
firstSaleThumbnailImage : 'vn-ticket-sale:nth-child(1) vn-tr:nth-child(1) vn-td:nth-child(3) > img' ,
2018-08-03 10:02:04 +00:00
firstSaleZoomedImage : 'body > div > div > img' ,
firstSaleQuantity : ` vn-textfield[model="sale.quantity"]:nth-child(1) input ` ,
2018-09-06 12:39:08 +00:00
firstSaleQuantityClearInput : ` vn-textfield[model="sale.quantity"] div.suffix > i ` ,
2018-10-20 10:07:48 +00:00
firstSaleID : 'vn-ticket-sale:nth-child(1) vn-td:nth-child(4) > span' ,
2018-08-03 10:02:04 +00:00
firstSalePrice : 'vn-ticket-sale:nth-child(1) vn-td:nth-child(7)' ,
2018-09-06 12:39:08 +00:00
firstSalePriceInput : 'vn-ticket-sale:nth-child(1) > vn-vertical > vn-popover.edit.dialog-summary.ng-isolate-scope.vn-popover.shown > div > div.content > div > vn-textfield' ,
2018-08-03 10:02:04 +00:00
firstSaleDiscount : 'vn-ticket-sale:nth-child(1) vn-td:nth-child(8)' ,
2018-09-10 08:22:20 +00:00
firstSaleDiscountInput : 'vn-ticket-sale:nth-child(1) vn-ticket-sale-edit-discount > div > vn-textfield > div > div > div.infix > input.ng-not-empty' ,
2018-08-03 10:02:04 +00:00
firstSaleImport : 'vn-ticket-sale:nth-child(1) vn-td:nth-child(9)' ,
2018-11-07 07:38:09 +00:00
firstSaleReservedIcon : 'vn-ticket-sale vn-tr:nth-child(1) > vn-td:nth-child(2) > vn-icon:nth-child(3)' ,
2019-01-11 11:25:53 +00:00
firstSaleColour : ` vn-ticket-sale vn-tr:nth-child(1) vn-td:nth-child(5) section:nth-child(1) ` ,
2018-09-11 08:53:57 +00:00
firstSaleLength : ` vn-ticket-sale vn-tr:nth-child(1) vn-td:nth-child(5) section:nth-child(3) ` ,
firstSaleCheckbox : ` vn-ticket-sale vn-tr:nth-child(1) vn-check[field="sale.checked"] label ` ,
2019-01-31 16:01:33 +00:00
secondSaleClaimIcon : 'vn-ticket-sale > vn-vertical > vn-card > div > vn-vertical > vn-table > div > vn-tbody > vn-tr:nth-child(2) > vn-td:nth-child(2) > a > vn-icon' ,
2018-09-11 08:53:57 +00:00
secondSaleColour : ` vn-ticket-sale vn-tr:nth-child(2) vn-td:nth-child(5) section:nth-child(5) ` ,
secondSalePrice : ` vn-ticket-sale vn-tr:nth-child(2) vn-td:nth-child(7) ` ,
secondSaleDiscount : ` vn-ticket-sale vn-tr:nth-child(2) vn-td:nth-child(8) ` ,
secondSaleImport : ` vn-ticket-sale vn-tr:nth-child(2) vn-td:nth-child(9) ` ,
2018-09-06 12:39:08 +00:00
secondSaleText : ` vn-table div > vn-tbody > vn-tr:nth-child(2) ` ,
2019-02-06 11:15:08 +00:00
totalImport : 'vn-ticket-sale > vn-vertical > vn-card > div > vn-vertical > vn-horizontal > vn-one > p:nth-child(3) > strong' ,
2018-09-10 08:22:20 +00:00
selectAllSalesCheckbox : ` vn-ticket-sale vn-thead vn-check label ` ,
2018-09-06 12:39:08 +00:00
secondSaleCheckbox : ` vn-ticket-sale vn-tr:nth-child(2) vn-check[field="sale.checked"] label ` ,
thirdSaleCheckbox : ` vn-ticket-sale vn-tr:nth-child(3) vn-check[field="sale.checked"] label ` ,
deleteSaleButton : 'vn-ticket-sale vn-tool-bar > vn-button[icon="delete"]' ,
transferSaleButton : 'vn-ticket-sale vn-tool-bar > vn-button[icon="call_split"]' ,
moveToTicketInput : 'vn-ticket-sale vn-popover.transfer vn-textfield[model="$ctrl.moveToTicketFk"] input' ,
moveToTicketInputClearButton : 'vn-popover.shown i[title="Clear"]' ,
moveToTicketButton : 'vn-ticket-sale vn-popover.transfer vn-icon[icon="arrow_forward_ios"]' ,
moveToNewTicketButton : 'vn-ticket-sale vn-popover.transfer vn-button[label="New ticket"]' ,
2018-09-12 13:38:08 +00:00
acceptDeleteLineButton : ` vn-ticket-sale > vn-confirm[vn-id="delete-lines"] button[response=ACCEPT] ` ,
acceptDeleteTicketButton : ` vn-ticket-sale > vn-confirm[vn-id="deleteConfirmation"] button[response=ACCEPT] ` ,
2018-11-08 14:20:42 +00:00
stateMenuButton : 'vn-ticket-sale vn-tool-bar > vn-button-menu[label="State"] button' ,
2018-09-10 08:22:20 +00:00
stateMenuOptions : 'vn-ticket-sale vn-drop-down > vn-popover ul > li:nth-child(1)' ,
2018-11-08 14:20:42 +00:00
moreMenuButton : 'vn-ticket-sale vn-tool-bar > vn-button-menu[label="More"] button' ,
moreMenuReseveOption : 'vn-ticket-sale vn-drop-down > vn-popover ul > li:nth-child(2)' ,
moreMenuUnmarkResevedOption : 'vn-ticket-sale vn-drop-down > vn-popover ul > li:nth-child(3)' ,
moreMenuUpdateDiscount : 'vn-ticket-sale vn-drop-down > vn-popover ul > li:nth-child(4)' ,
2018-09-12 13:38:08 +00:00
moreMenuUpdateDiscountInput : 'vn-ticket-sale vn-dialog.shown vn-ticket-sale-edit-discount input' ,
2018-10-30 09:22:47 +00:00
moreMenuCreateClaim : 'vn-ticket-sale vn-drop-down > vn-popover ul > li:nth-child(1)'
2018-04-05 12:14:34 +00:00
} ,
ticketTracking : {
2018-09-10 08:22:20 +00:00
trackingButton : ` vn-left-menu a[ui-sref="ticket.card.tracking.index"] ` ,
2018-04-05 12:14:34 +00:00
createStateButton : ` ${ components . vnFloatButton } ` ,
2019-01-22 12:53:42 +00:00
stateAutocomplete : 'vn-ticket-tracking-edit vn-autocomplete[field="$ctrl.stateFk"]' ,
2019-01-22 09:04:42 +00:00
saveButton : ` ${ components . vnSubmit } ` ,
cancelButton : ` vn-ticket-tracking-edit vn-button[ui-sref="ticket.card.tracking.index"] `
2018-04-05 12:14:34 +00:00
} ,
2018-08-03 10:02:04 +00:00
ticketBasicData : {
2018-11-05 14:06:13 +00:00
basicDataButton : ` vn-left-menu a[ui-sref="ticket.card.data.stepOne"] ` ,
2019-01-07 09:55:23 +00:00
clientAutocomplete : ` vn-autocomplete[field=" $ ctrl.clientFk"] ` ,
addressAutocomplete : ` vn-autocomplete[field=" $ ctrl.ticket.addressFk"] ` ,
agencyAutocomplete : ` vn-autocomplete[field=" $ ctrl.ticket.agencyModeFk"] ` ,
2018-09-03 11:54:35 +00:00
nextStepButton : ` vn-step-control > section > section.buttons > section:nth-child(2) > vn-button ` ,
finalizeButton : ` vn-step-control > section > section.buttons > section:nth-child(2) > vn-submit ` ,
stepTwoTotalPriceDif : ` vn-ticket-data-step-two > form > vn-card > div > vn-horizontal > table > tfoot > tr > td:nth-child(4) ` ,
2019-01-07 09:55:23 +00:00
chargesReasonAutocomplete : ` vn-autocomplete[field=" $ ctrl.ticket.option"] ` ,
2018-10-25 14:44:03 +00:00
} ,
ticketComponents : {
base : 'vn-ticket-components tfoot > tr:nth-child(1) > td' ,
margin : 'vn-ticket-components tfoot > tr:nth-child(2) > td' ,
2018-10-30 09:22:47 +00:00
total : 'vn-ticket-components tfoot > tr:nth-child(3) > td'
2018-08-03 10:02:04 +00:00
} ,
2018-11-13 15:30:19 +00:00
ticketRequests : {
2018-11-21 13:09:22 +00:00
addRequestButton : ` vn-ticket-request-index > a > vn-float-button > button ` ,
request : 'vn-ticket-request-index > form > vn-card > div > vn-horizontal > vn-table > div > vn-tbody > vn-tr' ,
2019-01-27 23:26:01 +00:00
descriptionInput : ` vn-ticket-request-create > form > div > vn-card > div > vn-horizontal:nth-child(1) > vn-textfield > div > div > div.infix > input ` ,
2019-01-31 16:01:33 +00:00
atenderAutocomplete : ` vn-ticket-request-create vn-autocomplete[field=" $ ctrl.ticketRequest.atenderFk"] ` ,
2019-01-27 23:26:01 +00:00
quantityInput : ` vn-ticket-request-create > form > div > vn-card > div > vn-horizontal:nth-child(2) > vn-textfield:nth-child(1) > div > div > div.infix > input ` ,
priceInput : ` vn-ticket-request-create > form > div > vn-card > div > vn-horizontal:nth-child(2) > vn-textfield:nth-child(2) > div > div > div.infix > input ` ,
2018-11-21 13:09:22 +00:00
firstRemoveRequestButton : ` vn-ticket-request-index vn-icon[icon="delete"]:nth-child(1) ` ,
saveButton : ` vn-ticket-request-create > form > div > vn-button-bar > vn-submit[label="Create"] input ` ,
firstDescription : 'vn-ticket-request-index > form > vn-card > div > vn-horizontal > vn-table > div > vn-tbody > vn-tr:nth-child(1) > vn-td:nth-child(2)' ,
2018-11-13 15:30:19 +00:00
} ,
2019-01-11 11:41:07 +00:00
ticketLog : {
logButton : ` vn-left-menu a[ui-sref="ticket.card.log"] ` ,
changedBy : 'vn-ticket-log > vn-log > vn-vertical > vn-card > div > vn-vertical > vn-table > div > vn-tbody > vn-tr > vn-td:nth-child(1) > div > div:nth-child(1) > span.value.ng-scope.ng-binding' ,
actionTaken : 'vn-ticket-log > vn-log > vn-vertical > vn-card > div > vn-vertical > vn-table > div > vn-tbody > vn-tr > vn-td:nth-child(1) > div > div:nth-child(3) > span.value.ng-scope.ng-binding' ,
id : 'vn-ticket-log > vn-log > vn-vertical > vn-card > div > vn-vertical > vn-table > div > vn-tbody > vn-tr > vn-td.before > vn-one:nth-child(1) > div > span.value.ng-scope.ng-binding'
} ,
2019-01-14 10:19:39 +00:00
ticketService : {
addServiceButton : 'vn-ticket-service > form > vn-card > div > vn-one:nth-child(3) > vn-icon-button > button > vn-icon' ,
2019-01-15 11:28:13 +00:00
firstDescriptionInput : 'vn-ticket-service vn-textfield[label="Description"] input' ,
firstQuantityInput : 'vn-ticket-service vn-textfield[label="Quantity"] input' ,
firstPriceInput : 'vn-ticket-service vn-textfield[label="Price"] input' ,
firstVatTypeAutocomplete : 'vn-ticket-service vn-autocomplete[label="Tax class"]' ,
2019-02-06 08:12:58 +00:00
fistDeleteServiceButton : 'vn-ticket-card > vn-main-block > div.content-block.ng-scope > vn-ticket-service > form > vn-card > div > vn-one:nth-child(1) > vn-horizontal:nth-child(1) > vn-auto > vn-icon[icon="delete"]' ,
2019-01-15 11:28:13 +00:00
serviceLine : 'vn-ticket-service > form > vn-card > div > vn-one:nth-child(2) > vn-horizontal' ,
2019-01-14 10:19:39 +00:00
saveServiceButton : ` ${ components . vnSubmit } `
} ,
2018-04-05 12:14:34 +00:00
createStateView : {
2019-01-22 09:04:42 +00:00
stateAutocomplete : ` vn-autocomplete[field=" $ ctrl.stateFk"] ` ,
2019-01-22 14:55:58 +00:00
workerAutocomplete : ` vn-autocomplete[field=" $ ctrl.workerFk"] ` ,
2019-01-22 09:04:42 +00:00
clearStateInputButton : ` vn-autocomplete[field=" $ ctrl.stateFk"] > div > div > div > vn-icon > i ` ,
2018-10-30 09:22:47 +00:00
saveStateButton : ` ${ components . vnSubmit } `
2018-09-04 09:38:48 +00:00
} ,
claimsIndex : {
searchClaimInput : ` vn-claim-index ${ components . vnTextfield } ` ,
2018-12-13 14:04:36 +00:00
searchResult : ` vn-claim-index vn-card > div > vn-table > div > vn-tbody > a ` ,
2018-10-30 09:22:47 +00:00
searchButton : ` vn-claim-index vn-searchbar vn-icon[icon="search"] `
2018-09-04 09:38:48 +00:00
} ,
claimBasicData : {
2019-01-07 08:33:07 +00:00
claimStateAutocomplete : 'vn-claim-basic-data vn-autocomplete[field="$ctrl.claim.claimStateFk"]' ,
2019-01-22 12:53:42 +00:00
isPaidWithManaCheckbox : 'vn-check[field="$ctrl.claim.isChargedToMana"] > label > input' ,
2018-09-04 09:38:48 +00:00
responsabilityInputRange : ` vn-input-range ` ,
observationInput : ` vn-textarea[label="Observation"] textarea ` ,
2018-10-30 09:22:47 +00:00
saveButton : ` ${ components . vnSubmit } `
2018-09-04 09:38:48 +00:00
} ,
2019-01-22 10:54:17 +00:00
claimDetail : {
addItemButton : ` vn-claim-detail a vn-float-button ` ,
firstClaimableSaleFromTicket : 'vn-claim-detail > vn-dialog vn-tbody > vn-tr' ,
2019-01-22 12:18:20 +00:00
claimDetailLine : 'vn-claim-detail > vn-vertical > vn-card > div > vn-vertical > vn-table > div > vn-tbody > vn-tr' ,
secondItemQuantityInput : 'vn-claim-detail vn-tr:nth-child(2) vn-textfield[model="saleClaimed.quantity"] input' ,
totalClaimed : 'vn-claim-detail > vn-vertical > vn-card > div > vn-vertical > vn-horizontal > div > vn-label-value:nth-child(2) > section > span' ,
secondItemDeleteButton : 'vn-claim-detail > vn-vertical > vn-card > div > vn-vertical > vn-table > div > vn-tbody > vn-tr:nth-child(2) > vn-td:nth-child(9) > vn-icon-button > button > vn-icon > i'
2018-10-25 14:44:03 +00:00
} ,
2019-01-15 07:33:19 +00:00
claimDevelopment : {
addDevelopmentButton : 'vn-claim-development > vn-vertical > vn-card > div > vn-vertical > vn-one > vn-icon-button > button > vn-icon' ,
firstDeleteDevelopmentButton : 'vn-claim-development > vn-vertical > vn-card > div > vn-vertical > form > vn-horizontal:nth-child(2) > vn-icon-button > button > vn-icon' ,
2019-01-27 23:26:01 +00:00
firstClaimReasonAutocomplete : 'vn-claim-development vn-horizontal:nth-child(1) vn-autocomplete[field="claimDevelopment.claimReasonFk"]' ,
firstClaimResultAutocomplete : 'vn-claim-development vn-horizontal:nth-child(1) vn-autocomplete[field="claimDevelopment.claimResultFk"]' ,
firstClaimResponsibleAutocomplete : 'vn-claim-development vn-horizontal:nth-child(1) vn-autocomplete[field="claimDevelopment.claimResponsibleFk"]' ,
firstClaimWorkerAutocomplete : 'vn-claim-development vn-horizontal:nth-child(1) vn-autocomplete[field="claimDevelopment.workerFk"]' ,
firstClaimRedeliveryAutocomplete : 'vn-claim-development vn-horizontal:nth-child(1) vn-autocomplete[field="claimDevelopment.claimRedeliveryFk"]' ,
secondClaimReasonAutocomplete : 'vn-claim-development vn-horizontal:nth-child(2) vn-autocomplete[field="claimDevelopment.claimReasonFk"]' ,
secondClaimResultAutocomplete : 'vn-claim-development vn-horizontal:nth-child(2) vn-autocomplete[field="claimDevelopment.claimResultFk"]' ,
secondClaimResponsibleAutocomplete : 'vn-claim-development vn-horizontal:nth-child(2) vn-autocomplete[field="claimDevelopment.claimResponsibleFk"]' ,
secondClaimWorkerAutocomplete : 'vn-claim-development vn-horizontal:nth-child(2) vn-autocomplete[field="claimDevelopment.workerFk"]' ,
secondClaimRedeliveryAutocomplete : 'vn-claim-development vn-horizontal:nth-child(2) vn-autocomplete[field="claimDevelopment.claimRedeliveryFk"]' ,
2019-01-15 07:33:19 +00:00
saveDevelopmentButton : ` ${ components . vnSubmit } `
} ,
2019-01-09 12:49:37 +00:00
ordersIndex : {
searchResult : ` vn-order-index vn-card > div > vn-table > div > vn-tbody > a.vn-tr ` ,
searchResultDate : ` vn-order-index vn-table vn-tbody > a:nth-child(1) > vn-td:nth-child(4) ` ,
searchResultAddress : ` vn-order-index vn-table vn-tbody > a:nth-child(1) > vn-td:nth-child(6) ` ,
searchOrderInput : ` vn-order-index ${ components . vnTextfield } ` ,
searchButton : ` vn-order-index vn-searchbar vn-icon[icon="search"] ` ,
createOrderButton : ` ${ components . vnFloatButton } ` ,
} ,
createOrderView : {
clientAutocomplete : ` vn-autocomplete[label="Client"] ` ,
addressAutocomplete : ` vn-autocomplete[label="Address"] ` ,
agencyAutocomplete : ` vn-autocomplete[label="Agency"] ` ,
landedDatePicker : ` vn-date-picker[label="Landed"] ` ,
createButton : ` ${ components . vnSubmit } ` ,
cancelButton : ` vn-button[href="#!/client/index"] `
} ,
2018-11-15 13:15:34 +00:00
orderCatalog : {
2019-01-09 12:49:37 +00:00
orderByAutocomplete : ` vn-autocomplete[label="Order by"] ` ,
} ,
orderBasicData : {
clientAutocomplete : ` vn-autocomplete[label=Client] ` ,
companyAutocomplete : ` vn-autocomplete[label=Company] ` ,
observationInput : ` vn-textarea[label="Observation"] textarea ` ,
saveButton : ` ${ components . vnSubmit } `
2018-11-15 13:15:34 +00:00
} ,
2017-09-15 10:24:37 +00:00
} ;