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 : {
2019-04-26 12:15:37 +00:00
applicationsMenuButton : '#apps' ,
applicationsMenuVisible : 'vn-main-menu [vn-id="apps-menu"] ul' ,
clientsButton : 'vn-main-menu [vn-id="apps-menu"] ul > li[ui-sref="client.index"]' ,
itemsButton : 'vn-main-menu [vn-id="apps-menu"] ul > li[ui-sref="item.index"]' ,
ticketsButton : 'vn-main-menu [vn-id="apps-menu"] ul > li[ui-sref="ticket.index"]' ,
2019-06-10 14:58:08 +00:00
invoiceOutButton : 'vn-main-menu [vn-id="apps-menu"] ul > li[ui-sref="invoiceOut.index"]' ,
2019-04-26 12:15:37 +00:00
claimsButton : 'vn-main-menu [vn-id="apps-menu"] ul > li[ui-sref="claim.index"]' ,
2019-06-19 07:03:45 +00:00
returnToModuleIndexButton : 'a[ui-sref="order.index"]' ,
2019-04-26 12:15:37 +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"]' ,
2019-01-28 12:41:57 +00:00
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-06-19 07:03:45 +00:00
acceptButton : '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 } ` ,
2019-04-26 12:15:37 +00:00
searchButton : 'vn-searchbar vn-icon[icon="search"]' ,
searchResult : 'vn-client-index .vn-list-item' ,
2018-11-05 14:06:13 +00:00
createClientButton : ` ${ components . vnFloatButton } ` ,
2019-04-26 12:15:37 +00:00
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"] ` ,
2019-02-28 07:55:34 +00:00
street : ` ${ components . vnTextfield } [name="street"] ` ,
2019-09-18 08:35:46 +00:00
postcode : ` ${ components . vnTextfield } [name="postcode"] ` ,
city : ` ${ components . vnTextfield } [name="city"] ` ,
2019-06-13 11:08:11 +00:00
province : ` vn-autocomplete[field=" $ ctrl.client.provinceFk"] ` ,
country : ` vn-autocomplete[field=" $ ctrl.client.countryFk"] ` ,
2017-11-08 14:43:34 +00:00
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 } ` ,
2019-04-26 12:15:37 +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-04-26 12:15:37 +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 : {
2019-04-26 12:15:37 +00:00
basicDataButton : 'vn-left-menu a[ui-sref="client.card.basicData"]' ,
2019-05-03 15:49:38 +00:00
nameInput : 'vn-textfield[field="$ctrl.client.name"] input' ,
contactInput : 'vn-textfield[field="$ctrl.client.contact"] input' ,
phoneInput : 'vn-textfield[field="$ctrl.client.phone"] input' ,
mobileInput : 'vn-textfield[field="$ctrl.client.mobile"] input' ,
emailInput : 'vn-textfield[field="$ctrl.client.email"] input' ,
2019-04-26 12:15:37 +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 : {
2019-04-26 12:15:37 +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"] ` ,
2019-04-26 12:15:37 +00:00
equalizationTaxCheckbox : 'vn-check[label="Is equalizated"] md-checkbox' ,
acceptPropagationButton : 'vn-client-fiscal-data > vn-confirm button[response=ACCEPT]' ,
2017-11-08 14:43:34 +00:00
addressInput : ` ${ components . vnTextfield } [name="street"] ` ,
2019-09-18 08:35:46 +00:00
postcodeInput : ` ${ components . vnTextfield } [name="postcode"] ` ,
cityInput : ` ${ components . vnTextfield } [name="city"] ` ,
2019-04-26 12:15:37 +00:00
provinceAutocomplete : 'vn-autocomplete[field="$ctrl.client.provinceFk"]' ,
countryAutocomplete : 'vn-autocomplete[field="$ctrl.client.countryFk"]' ,
activeCheckbox : 'vn-check[label="Active"] md-checkbox' ,
frozenCheckbox : 'vn-check[label="Frozen"] md-checkbox' ,
invoiceByAddressCheckbox : 'vn-check[label="Invoice by address"] md-checkbox' ,
verifiedDataCheckbox : 'vn-check[label="Verified data"] md-checkbox' ,
hasToInvoiceCheckbox : 'vn-check[label="Has to invoice"] md-checkbox' ,
invoiceByMailCheckbox : 'vn-check[label="Invoice by mail"] md-checkbox' ,
viesCheckbox : 'vn-check[label="Vies"] md-checkbox' ,
2018-10-30 09:22:47 +00:00
saveButton : ` ${ components . vnSubmit } `
2017-12-11 11:33:27 +00:00
} ,
2019-04-16 09:32:45 +00:00
clientBillingData : {
2019-04-26 12:15:37 +00:00
payMethodAutocomplete : 'vn-autocomplete[field="$ctrl.client.payMethodFk"]' ,
2017-12-11 11:33:27 +00:00
IBANInput : ` ${ components . vnTextfield } [name="iban"] ` ,
2019-03-26 06:29:45 +00:00
dueDayInput : ` ${ components . vnInputNumber } [name="dueDay"] ` ,
2019-04-26 12:15:37 +00:00
receivedCoreLCRCheckbox : 'vn-check[label="Received LCR"] md-checkbox' ,
receivedCoreVNLCheckbox : 'vn-check[label="Received core VNL"] md-checkbox' ,
receivedB2BVNLCheckbox : 'vn-check[label="Received B2B VNL"] md-checkbox' ,
2019-01-07 08:33:07 +00:00
swiftBicAutocomplete : 'vn-client-billing-data vn-autocomplete[field="$ctrl.client.bankEntityFk"]' ,
2019-04-26 12:15:37 +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' ,
2019-06-20 11:50:58 +00:00
newBankEntityCode : 'vn-client-billing-data > vn-dialog vn-textfield[label="Entity Code"] input' ,
2018-10-24 08:57:14 +00:00
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 : {
2019-04-26 12:15:37 +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 } ` ,
2019-04-26 12:15:37 +00:00
defaultCheckboxInput : 'vn-check[label="Default"] md-checkbox' ,
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"] ` ,
2019-09-18 08:35:46 +00:00
postcodeInput : ` ${ components . vnTextfield } [name="postalCode"] ` ,
cityInput : ` ${ components . vnTextfield } [name="city"] ` ,
2019-04-26 12:15:37 +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-09-02 07:25:18 +00:00
defaultAddress : 'vn-client-address-index div:nth-child(1) div[name="street"]' ,
secondMakeDefaultStar : 'vn-client-address-index vn-card div:nth-child(2) vn-icon-button[icon="star_border"]' ,
firstEditAddress : 'vn-client-address-index div:nth-child(1) > a' ,
secondEditAddress : 'vn-client-address-index div:nth-child(2) > a' ,
2019-04-26 12:15:37 +00:00
activeCheckbox : 'vn-check[label="Enabled"] md-checkbox' ,
equalizationTaxCheckbox : 'vn-client-address-edit vn-check[label="Is equalizated"] md-checkbox' ,
firstObservationTypeAutocomplete : 'vn-client-address-edit [name=observations] :nth-child(1) [field="observation.observationTypeFk"]' ,
firstObservationDescriptionInput : 'vn-client-address-edit [name=observations] :nth-child(1) [model="observation.description"] input' ,
secondObservationTypeAutocomplete : 'vn-client-address-edit [name=observations] :nth-child(2) [field="observation.observationTypeFk"]' ,
secondObservationDescriptionInput : 'vn-client-address-edit [name=observations] :nth-child(2) [model="observation.description"] input' ,
2019-07-08 12:07:09 +00:00
addObservationButton : 'vn-client-address-edit div[name="observations"] vn-icon-button[icon="add_circle"]' ,
2018-04-22 14:25:44 +00:00
saveButton : ` ${ components . vnSubmit } ` ,
2019-04-26 12:15:37 +00:00
cancelCreateAddressButton : 'button[ui-sref="client.card.address.index"]' ,
2019-01-23 14:34:16 +00:00
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 : {
2019-04-26 12:15:37 +00:00
webAccessButton : 'vn-left-menu a[ui-sref="client.card.webAccess"]' ,
enableWebAccessCheckbox : 'vn-check[label="Enable web access"] md-checkbox' ,
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 } ` ,
2019-04-26 12:15:37 +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 } ` ,
2019-03-26 06:29:45 +00:00
creditInput : ` ${ components . vnInputNumber } [name="credit"] ` ,
2018-01-08 07:12:39 +00:00
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 } ` ,
2019-03-26 06:29:45 +00:00
amountInput : ` ${ components . vnInputNumber } [name="amount"] ` ,
2018-01-12 08:47:51 +00:00
descriptionInput : ` ${ components . vnTextfield } [name="description"] ` ,
2019-04-26 12:15:37 +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 : {
2019-04-26 12:15:37 +00:00
logButton : 'vn-left-menu a[ui-sref="client.card.log"]' ,
2019-03-01 12:56:17 +00:00
lastModificationDate : 'vn-client-log > vn-log vn-table vn-tbody > vn-tr > vn-td:nth-child(1)' ,
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
} ,
2019-04-16 11:40:26 +00:00
clientBalance : {
2019-04-26 12:15:37 +00:00
balanceButton : 'vn-left-menu a[ui-sref="client.card.balance.index"]' ,
2019-04-16 11:40:26 +00:00
companyAutocomplete : 'vn-client-balance-index vn-autocomplete[field="$ctrl.companyFk"]' ,
2018-11-19 13:33:18 +00:00
newPaymentButton : ` ${ components . vnFloatButton } ` ,
2019-07-04 08:34:19 +00:00
newPaymentBank : 'vn-client-balance-create vn-autocomplete[field="$ctrl.receipt.bankFk"]' ,
2019-04-26 12:15:37 +00:00
newPaymentAmountInput : 'vn-client-balance-create vn-input-number[field="$ctrl.receipt.amountPaid"] input' ,
saveButton : 'vn-client-balance-create vn-button[label="Save"]' ,
2019-04-16 11:40:26 +00:00
firstBalanceLine : 'vn-client-balance-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
} ,
2019-02-20 11:49:39 +00:00
webPayment : {
confirmFirstPaymentButton : 'vn-client-web-payment vn-tr:nth-child(1) vn-icon-button[icon="done_all"]' ,
2019-03-01 10:30:59 +00:00
firstPaymentConfirmed : 'vn-client-web-payment vn-tr:nth-child(1) vn-icon[icon="check"][aria-hidden="false"]'
2019-02-20 11:49:39 +00:00
} ,
2019-08-12 14:58:39 +00:00
dms : {
deleteFileButton : 'vn-client-dms-index vn-table vn-tr:nth-child(1) vn-icon-button[icon="delete"]' ,
firstDocWorker : 'vn-client-dms-index vn-table > div > vn-tbody > vn-tr > vn-td:nth-child(8) > span' ,
firstDocWorkerDescriptor : 'vn-client-dms-index > vn-worker-descriptor-popover > vn-popover' ,
acceptDeleteButton : 'vn-client-dms-index > vn-confirm button[response="ACCEPT"]'
} ,
2018-02-15 11:28:05 +00:00
itemsIndex : {
2019-04-26 12:15:37 +00:00
searchIcon : 'vn-item-index vn-searchbar vn-icon[icon="search"]' ,
2018-02-15 12:20:01 +00:00
createItemButton : ` ${ components . vnFloatButton } ` ,
2019-04-26 12:15:37 +00:00
searchResult : 'vn-item-index a.vn-tr' ,
searchResultPreviewButton : 'vn-item-index .buttons > [icon="desktop_windows"]' ,
searchResultCloneButton : 'vn-item-index .buttons > [icon="icon-clone"]' ,
acceptClonationAlertButton : 'vn-item-index [vn-id="clone"] [response="ACCEPT"]' ,
searchItemInput : 'vn-searchbar vn-textfield input' ,
searchButton : 'vn-searchbar vn-icon[icon="search"]' ,
2019-03-06 08:26:05 +00:00
closeItemSummaryPreview : 'vn-item-index [vn-id="preview"] button.close' ,
fieldsToShowButton : 'vn-item-index vn-table > div.ng-scope > div > vn-icon-button[icon="menu"]' ,
fieldsToShowForm : 'vn-item-index > div > vn-card > div > vn-table > div.ng-scope > div > vn-dialog > div > form' ,
firstItemImage : 'vn-item-index vn-tbody > a:nth-child(1) > vn-td:nth-child(1)' ,
firstItemId : 'vn-item-index vn-tbody > a:nth-child(1) > vn-td:nth-child(2)' ,
idCheckbox : 'vn-item-index vn-dialog form vn-horizontal:nth-child(2) > vn-check > md-checkbox' ,
stemsCheckbox : 'vn-item-index vn-dialog form vn-horizontal:nth-child(3) > vn-check > md-checkbox' ,
sizeCheckbox : 'vn-item-index vn-dialog form vn-horizontal:nth-child(4) > vn-check > md-checkbox' ,
nicheCheckbox : 'vn-item-index vn-dialog form vn-horizontal:nth-child(5) > vn-check > md-checkbox' ,
typeCheckbox : 'vn-item-index vn-dialog form vn-horizontal:nth-child(6) > vn-check > md-checkbox' ,
categoryCheckbox : 'vn-item-index vn-dialog form vn-horizontal:nth-child(7) > vn-check > md-checkbox' ,
intrastadCheckbox : 'vn-item-index vn-dialog form vn-horizontal:nth-child(8) > vn-check > md-checkbox' ,
originCheckbox : 'vn-item-index vn-dialog form vn-horizontal:nth-child(9) > vn-check > md-checkbox' ,
buyerCheckbox : 'vn-item-index vn-dialog form vn-horizontal:nth-child(10) > vn-check > md-checkbox' ,
destinyCheckbox : 'vn-item-index vn-dialog form vn-horizontal:nth-child(11) > vn-check > md-checkbox' ,
taxClassCheckbox : 'vn-item-index vn-dialog form vn-horizontal:nth-child(12) > vn-check > md-checkbox' ,
2019-03-08 13:12:16 +00:00
saveFieldsButton : 'vn-item-index vn-dialog vn-horizontal:nth-child(16) > vn-button > button'
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-04-26 12:15:37 +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 } ` ,
2019-04-26 12:15:37 +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-06-26 12:19:08 +00:00
goBackToModuleIndexButton : 'vn-item-descriptor a[href="#!/item/index"]' ,
2019-04-26 12:15:37 +00:00
moreMenu : 'vn-item-descriptor vn-icon-menu > div > vn-icon' ,
moreMenuRegularizeButton : 'vn-item-descriptor vn-drop-down > vn-popover ul > li[name="Regularize stock"]' ,
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"]' ,
2019-04-26 12:15:37 +00:00
regularizeSaveButton : 'vn-item-descriptor > vn-dialog > div > form > div.buttons > tpl-buttons > button' ,
2019-03-10 12:14:13 +00:00
inactiveIcon : 'vn-item-descriptor vn-icon[icon="icon-unavailable"]' ,
navigateBackToIndex : 'vn-item-descriptor vn-icon[icon="chevron_left"]'
2018-11-14 17:05:24 +00:00
} ,
2018-02-19 10:55:45 +00:00
itemBasicData : {
2019-04-26 12:15:37 +00:00
basicDataButton : 'vn-left-menu a[ui-sref="item.card.basicData"]' ,
2019-01-27 20:09:54 +00:00
goToItemIndexButton : 'vn-item-descriptor [ui-sref="item.index"]' ,
2019-04-26 12:15:37 +00:00
typeAutocomplete : 'vn-autocomplete[field="$ctrl.item.typeFk"]' ,
intrastatAutocomplete : 'vn-autocomplete[field="$ctrl.item.intrastatFk"]' ,
nameInput : 'vn-textfield[label="Name"] input' ,
relevancyInput : 'vn-input-number[label="Relevancy"] input' ,
originAutocomplete : 'vn-autocomplete[field="$ctrl.item.originFk"]' ,
expenceAutocomplete : 'vn-autocomplete[field="$ctrl.item.expenceFk"]' ,
longNameInput : 'vn-textfield[field="$ctrl.item.longName"] input' ,
isActiveCheckbox : 'vn-check[label="Active"] md-checkbox' ,
2019-09-18 09:11:47 +00:00
priceInKgCheckbox : 'vn-check[label="Price in kg"] md-checkbox' ,
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"]' ,
2019-04-26 12:15:37 +00:00
tagsButton : 'vn-left-menu a[ui-sref="item.card.tags"]' ,
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"]' ,
2019-01-27 23:26:01 +00:00
submitItemTagsButton : ` vn-item-tags ${ components . vnSubmit } `
2018-02-27 18:00:46 +00:00
} ,
2018-02-26 12:43:07 +00:00
itemTax : {
2019-04-26 12:15:37 +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"]' ,
2019-01-27 23:26:01 +00:00
submitTaxButton : ` vn-item-tax ${ components . vnSubmit } `
2018-02-26 12:43:07 +00:00
} ,
2018-02-15 12:20:01 +00:00
itemBarcodes : {
2019-04-26 12:15:37 +00:00
addBarcodeButton : 'vn-item-barcode vn-icon[icon="add_circle"]' ,
2019-01-27 23:26:01 +00:00
thirdCodeInput : ` vn-item-barcode vn-horizontal:nth-child(3) > ${ components . vnTextfield } ` ,
submitBarcodesButton : ` vn-item-barcode ${ components . vnSubmit } ` ,
2019-04-26 12:15:37 +00:00
firstCodeRemoveButton : 'vn-item-barcode vn-horizontal vn-none vn-icon[icon="delete"]'
2018-02-20 14:22:24 +00:00
} ,
itemNiches : {
2019-04-26 12:15:37 +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-button[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' ,
2019-01-27 23:26:01 +00:00
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 } ` ,
2019-04-26 12:15:37 +00:00
genusAutocomplete : 'vn-item-botanical vn-autocomplete[field="$ctrl.botanical.genusFk"]' ,
speciesAutocomplete : 'vn-item-botanical vn-autocomplete[field="$ctrl.botanical.specieFk"]' ,
2019-01-27 23:26:01 +00:00
submitBotanicalButton : ` vn-item-botanical ${ components . vnSubmit } `
2018-02-22 10:26:32 +00:00
} ,
2018-02-22 15:44:14 +00:00
itemSummary : {
2019-04-26 12:15:37 +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-06-19 07:03:45 +00:00
secondTicketId : 'vn-item-diary vn-tbody > vn-tr:nth-child(2) > vn-td:nth-child(2) > span' ,
2019-01-27 23:26:01 +00:00
firstBalance : 'vn-item-diary vn-tbody > vn-tr:nth-child(1) > vn-td.balance' ,
2019-07-01 09:56:16 +00:00
fourthBalance : 'vn-item-diary vn-tbody > vn-tr:nth-child(4) > vn-td.balance' ,
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
} ,
2019-03-20 07:23:12 +00:00
itemLog : {
2019-03-20 13:43:38 +00:00
anyLineCreated : 'vn-item-log > vn-log vn-tbody > vn-tr' ,
2019-03-20 10:47:00 +00:00
fifthLineCreatedProperty : 'vn-item-log > vn-log vn-tbody > vn-tr:nth-child(5) > vn-td > vn-one:nth-child(3) > div span:nth-child(3)' ,
2019-03-20 07:23:12 +00:00
} ,
2018-11-14 17:05:24 +00:00
ticketSummary : {
2019-06-27 13:33:15 +00:00
header : 'vn-ticket-summary > vn-card > div > h5' ,
state : 'vn-ticket-summary vn-label-value[label="State"] > section > span' ,
2019-09-26 07:05:18 +00:00
route : 'vn-ticket-summary vn-label-value[label="Route"] > section > a' ,
2019-06-27 13:33:15 +00:00
total : 'vn-ticket-summary vn-one.taxes > p:nth-child(3) > strong' ,
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-06-27 13:53:40 +00:00
firstSaleDescriptorImage : 'vn-ticket-summary vn-item-descriptor-popover > vn-popover vn-item-descriptor img' ,
itemDescriptorPopover : 'vn-ticket-summary vn-item-descriptor-popover > vn-popover' ,
itemDescriptorPopoverItemDiaryButton : 'vn-ticket-summary > vn-item-descriptor-popover a[href="#!/item/2/diary?warehouseFk=5&ticketFk=20"]' ,
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-02-20 16:52:36 +00:00
firstSaleQuantity : 'vn-ticket-summary [name="sales"] vn-table > div > vn-tbody > vn-tr > vn-td:nth-child(3)' ,
2019-04-23 06:58:49 +00:00
firstSaleDiscount : 'vn-ticket-summary [name="sales"] vn-table > div > vn-tbody > vn-tr > vn-td:nth-child(6)' ,
2019-06-27 13:33:15 +00:00
invoiceOutRef : 'vn-ticket-summary > vn-card > div > vn-horizontal > vn-one:nth-child(1) > vn-label-value:nth-child(6) > section > span' ,
setOk : 'vn-ticket-summary vn-button[label="SET OK"] > button'
2018-11-14 17:05:24 +00:00
} ,
2018-03-19 15:29:55 +00:00
ticketsIndex : {
2019-06-10 14:58:08 +00:00
openAdvancedSearchButton : 'vn-ticket-index vn-searchbar t-right-icons > vn-icon[icon="keyboard_arrow_down"]' ,
advancedSearchInvoiceOut : 'vn-ticket-index vn-searchbar vn-ticket-search-panel vn-textfield[model="filter.refFk"] input' ,
2019-01-20 17:48:03 +00:00
newTicketButton : 'vn-ticket-index > a' ,
2019-04-26 12:15:37 +00:00
searchResult : 'vn-ticket-index vn-card > div > vn-table > div > vn-tbody > a.vn-tr' ,
2019-08-21 10:23:01 +00:00
searchWeeklyResult : 'vn-ticket-weekly-index vn-table vn-tbody > vn-tr' ,
2019-04-25 12:24:02 +00:00
searchResultDate : 'vn-ticket-index vn-table vn-tbody > a:nth-child(1) > vn-td:nth-child(5)' ,
2018-07-11 09:03:34 +00:00
searchTicketInput : ` vn-ticket-index ${ components . vnTextfield } ` ,
2019-08-21 10:23:01 +00:00
searchWeeklyTicketInput : ` vn-ticket-weekly-index ${ components . vnTextfield } ` ,
searchWeeklyClearInput : 'vn-ticket-weekly-index vn-searchbar i[class="material-icons clear"]' ,
2019-06-10 14:58:08 +00:00
advancedSearchButton : 'vn-ticket-index vn-searchbar > vn-popover vn-ticket-search-panel vn-submit[label="Search"] input' ,
2019-04-26 12:15:37 +00:00
searchButton : 'vn-ticket-index vn-searchbar vn-icon[icon="search"]' ,
2019-08-21 10:23:01 +00:00
searchWeeklyButton : 'vn-ticket-weekly-index vn-searchbar vn-icon[icon="search"]' ,
2019-04-25 12:24:02 +00:00
moreMenu : 'vn-ticket-index vn-icon-menu[vn-id="more-button"] > div > vn-icon' ,
2019-07-29 11:12:36 +00:00
moreMenuWeeklyTickets : 'vn-ticket-index vn-icon-menu vn-drop-down > vn-popover li:nth-child(2)' ,
sixthWeeklyTicket : 'vn-ticket-weekly-index vn-table vn-tr:nth-child(6) vn-autocomplete[field="weekly.weekDay"] input' ,
weeklyTicket : 'vn-ticket-weekly-index vn-table > div > vn-tbody > vn-tr' ,
2019-08-21 10:23:01 +00:00
firstWeeklyTicketDeleteIcon : 'vn-ticket-weekly-index vn-tr:nth-child(1) vn-icon-button[icon="delete"]' ,
2019-07-29 11:12:36 +00:00
acceptDeleteTurn : 'vn-ticket-weekly-index > vn-confirm[vn-id="deleteWeekly"] button[response="ACCEPT"]'
2018-11-11 16:40:02 +00:00
} ,
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-06-26 12:19:08 +00:00
idLabelValue : 'vn-ticket-descriptor vn-label-value[label="Id"]' ,
stateLabelValue : 'vn-ticket-descriptor vn-label-value[label="State"]' ,
goBackToModuleIndexButton : 'vn-ticket-descriptor a[ui-sref="ticket.index"]' ,
2019-04-26 12:15:37 +00:00
moreMenu : 'vn-ticket-descriptor vn-icon-menu > div > vn-icon' ,
moreMenuAddStowaway : 'vn-ticket-descriptor vn-drop-down > vn-popover ul > li[name="Add stowaway"]' ,
moreMenuDeleteStowawayButton : 'vn-ticket-descriptor vn-drop-down > vn-popover ul > li[name="Remove stowaway"]' ,
moreMenuAddToTurn : 'vn-ticket-descriptor vn-drop-down > vn-popover ul > li[name="Add turn"]' ,
moreMenuDeleteTicket : 'vn-ticket-descriptor vn-drop-down > vn-popover ul > li[name="Delete ticket"]' ,
2019-04-26 06:52:43 +00:00
moreMenuMakeInvoice : 'vn-ticket-descriptor vn-drop-down > vn-popover ul > li[name="Make invoice"]' ,
2019-08-21 07:32:21 +00:00
moreMenuChangeShippedHour : 'vn-ticket-descriptor vn-drop-down > vn-popover ul > li[name="Change shipped hour"]' ,
changeShippedHourInput : 'vn-ticket-descriptor > vn-dialog.ng-isolate-scope.vn-dialog.shown vn-input-time input' ,
2019-06-19 07:03:45 +00:00
addStowawayDialogFirstTicket : 'vn-ticket-descriptor > vn-add-stowaway > vn-dialog vn-table vn-tbody vn-tr' ,
2019-03-20 11:23:38 +00:00
shipButton : 'vn-ticket-descriptor > div > div.body > div.quicklinks vn-icon[icon="icon-stowaway"]' ,
2019-04-26 12:15:37 +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)' ,
2019-03-12 07:38:17 +00:00
closeStowawayDialog : 'vn-ticket-descriptor > vn-add-stowaway > vn-dialog > div > button[class="close"]' ,
2019-03-20 14:33:33 +00:00
acceptDeleteButton : 'vn-ticket-descriptor button[response="ACCEPT"]' ,
2019-08-21 07:32:21 +00:00
acceptChangeHourButton : 'vn-ticket-descriptor vn-dialog[vn-id="changeShippedDialog"] button[response="ACCEPT"]' ,
descriptorDeliveryDate : 'vn-ticket-descriptor > div > div.body > div.attributes > vn-label-value:nth-child(6) > section > span' ,
2019-04-26 06:52:43 +00:00
acceptInvoiceOutButton : 'vn-ticket-descriptor vn-confirm[vn-id="makeInvoiceConfirmation"] button[response="ACCEPT"]' ,
2019-03-20 14:33:33 +00:00
acceptDeleteStowawayButton : 'vn-ticket-descriptor > vn-remove-stowaway button[response="ACCEPT"]'
2018-03-19 15:29:55 +00:00
} ,
ticketNotes : {
2019-04-26 12:15:37 +00:00
firstNoteRemoveButton : 'vn-icon[icon="delete"]' ,
addNoteButton : 'vn-icon[icon="add_circle"]' ,
firstNoteTypeAutocomplete : 'vn-autocomplete[field="observation.observationTypeFk"]' ,
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 : {
2019-04-26 12:15:37 +00:00
expeditionButton : 'vn-left-menu a[ui-sref="ticket.card.expedition"]' ,
secondExpeditionRemoveButton : 'vn-ticket-expedition vn-table div > vn-tbody > vn-tr:nth-child(2) > vn-td:nth-child(1) > vn-icon-button[icon="delete"]' ,
acceptDeleteRowButton : 'vn-ticket-expedition > vn-confirm[vn-id="delete-expedition"] button[response=ACCEPT]' ,
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 : {
2019-05-01 16:49:39 +00:00
packagesButton : 'vn-left-menu a[ui-sref="ticket.card.package"]' ,
2019-04-26 12:15:37 +00:00
firstPackageAutocomplete : 'vn-autocomplete[label="Package"]' ,
firstQuantityInput : 'vn-input-number[label="Quantity"] input' ,
firstRemovePackageButton : 'vn-icon-button[vn-tooltip="Remove package"]' ,
addPackageButton : 'vn-icon-button[vn-tooltip="Add package"]' ,
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-04-26 12:15:37 +00:00
saleButton : 'vn-left-menu a[ui-sref="ticket.card.sale"]' ,
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' ,
2019-06-20 12:41:48 +00:00
saleDescriptorPopoverSummaryButton : 'vn-item-descriptor-popover a[ui-sref="item.card.summary({id: $ctrl.item.id})"]' ,
2019-04-26 12:15:37 +00:00
descriptorItemDiaryButton : 'vn-item-descriptor .quicklinks.ng-scope > vn-horizontal > a > vn-icon > i' ,
2019-09-06 09:43:15 +00:00
newItemFromCatalogButton : 'vn-ticket-sale vn-float-button[icon="add"]' ,
newItemButton : 'vn-ticket-sale > vn-vertical > vn-card > div > vn-vertical > vn-one > vn-icon-button > button > vn-icon > i' ,
2019-06-26 12:19:08 +00:00
moreMenu : 'vn-ticket-sale vn-tool-bar > vn-button-menu[vn-id="more-button"] > div > button' ,
moreMenuCreateClaim : 'vn-ticket-sale vn-tool-bar > vn-button-menu[vn-id="more-button"] vn-drop-down > vn-popover ul > li[name="Add claim"]' ,
moreMenuReserve : 'vn-ticket-sale vn-tool-bar > vn-button-menu[vn-id="more-button"] vn-drop-down > vn-popover ul > li[name="Mark as reserved"]' ,
moreMenuUnmarkReseved : 'vn-ticket-sale vn-tool-bar > vn-button-menu[vn-id="more-button"] vn-drop-down > vn-popover ul > li[name="Unmark as reserved"]' ,
moreMenuUpdateDiscount : 'vn-ticket-sale vn-tool-bar > vn-button-menu[vn-id="more-button"] vn-drop-down > vn-popover ul > li[name="Update discount"]' ,
moreMenuUpdateDiscountInput : 'vn-ticket-sale vn-dialog form vn-ticket-sale-edit-discount vn-input-number[model="$ctrl.newDiscount"] input' ,
2019-08-13 09:48:00 +00:00
transferQuantityInput : 'vn-ticket-sale vn-popover.transfer.ng-isolate-scope.vn-popover.shown vn-table > div > vn-tbody > vn-tr > vn-td-editable > span > text' ,
transferQuantityCell : 'vn-ticket-sale vn-popover.transfer.ng-isolate-scope.vn-popover.shown vn-table > div > vn-tbody > vn-tr > vn-td-editable' ,
2019-06-20 12:41:48 +00:00
firstSaleClaimIcon : 'vn-ticket-sale vn-table vn-tbody > vn-tr:nth-child(1) vn-icon[icon="icon-claims"]' ,
2019-02-07 08:07:00 +00:00
firstSaleDescriptorImage : 'vn-ticket-sale vn-item-descriptor-popover > vn-popover vn-item-descriptor img' ,
2019-04-26 12:15:37 +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' ,
2019-07-02 10:12:15 +00:00
firstSaleQuantity : 'vn-input-number[model="sale.quantity"]:nth-child(1) input' ,
firstSaleQuantityCell : 'vn-ticket-sale vn-tr:nth-child(1) > vn-td-editable:nth-child(5)' ,
2019-04-26 12:15:37 +00:00
firstSaleQuantityClearInput : 'vn-textfield[model="sale.quantity"] div.suffix > i' ,
2019-09-06 09:43:15 +00:00
firstSaleIdInput : 'body > vn-app > div > ui-view > vn-ticket-card > vn-main-block > div > vn-ticket-sale > vn-vertical > vn-card > div > vn-vertical > vn-table > div > vn-tbody > vn-tr:nth-child(1) > vn-td:nth-child(4) > vn-autocomplete > div > div > input' ,
firstSaleIdAutocomplete : 'vn-ticket-sale > vn-vertical > vn-card > div > vn-vertical > vn-table > div > vn-tbody > vn-tr:nth-child(1) > vn-td:nth-child(4) > vn-autocomplete' ,
idAutocompleteFirstResult : 'vn-ticket-sale > vn-vertical > vn-card > div > vn-vertical > vn-table > div > vn-tbody > vn-tr:nth-child(2) > vn-td:nth-child(4) > vn-autocomplete > vn-drop-down > vn-popover > div > div.content > div > div.list > ul > li' ,
firstSalePrice : 'vn-ticket-sale vn-table vn-tr:nth-child(1) > vn-td:nth-child(7) > span' ,
2019-06-26 12:19:08 +00:00
firstSalePriceInput : 'vn-ticket-sale:nth-child(1) vn-popover.edit.dialog-summary.ng-isolate-scope.vn-popover.shown vn-input-number input' ,
2019-09-06 09:43:15 +00:00
firstSaleDiscount : 'vn-ticket-sale vn-table vn-tr:nth-child(1) > vn-td:nth-child(8) > span' ,
2019-06-26 12:19:08 +00:00
firstSaleDiscountInput : 'vn-ticket-sale:nth-child(1) vn-ticket-sale-edit-discount vn-input-number input' ,
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-09-06 09:43:15 +00:00
firstSaleColour : 'vn-tr:nth-child(1) vn-fetched-tags section' ,
2019-07-02 10:12:15 +00:00
firstSaleLength : 'vn-ticket-sale vn-tr:nth-child(1) vn-td-editable:nth-child(6) section:nth-child(3)' ,
2019-04-26 12:15:37 +00:00
firstSaleCheckbox : 'vn-ticket-sale vn-tr:nth-child(1) vn-check[field="sale.checked"] md-checkbox' ,
2019-09-06 09:43:15 +00:00
secondSaleColour : 'vn-tr:nth-child(2) vn-fetched-tags section' ,
2019-04-26 12:15:37 +00:00
secondSalePrice : 'vn-ticket-sale vn-tr:nth-child(2) vn-td:nth-child(7) > span' ,
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)' ,
secondSaleText : 'vn-table div > vn-tbody > vn-tr:nth-child(2)' ,
2019-09-06 09:43:15 +00:00
secondSaleId : 'vn-ticket-sale:nth-child(2) vn-td-editable:nth-child(4) text > span' ,
secondSaleIdCell : 'vn-ticket-sale vn-tr:nth-child(2) > vn-td-editable:nth-child(4)' ,
secondSaleIdInput : 'body > vn-app > div > ui-view > vn-ticket-card > vn-main-block > div > vn-ticket-sale > vn-vertical > vn-card > div > vn-vertical > vn-table > div > vn-tbody > vn-tr:nth-child(2) > vn-td:nth-child(4) > vn-autocomplete > div > div > input' ,
secondSaleIdAutocomplete : 'vn-ticket-sale > vn-vertical > vn-card > div > vn-vertical > vn-table > div > vn-tbody > vn-tr:nth-child(2) > vn-td:nth-child(4) > vn-autocomplete' ,
secondSaleQuantity : 'vn-ticket-sale vn-table vn-tr:nth-child(2) vn-input-number input' ,
secondSaleConceptCell : 'vn-ticket-sale vn-table > div > vn-tbody > vn-tr:nth-child(2) > vn-td-editable:nth-child(6)' ,
secondSaleConceptInput : 'vn-ticket-sale vn-table vn-tr:nth-child(2) > vn-td-editable.ng-isolate-scope.selected vn-textfield input' ,
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' ,
2019-04-26 12:15:37 +00:00
selectAllSalesCheckbox : 'vn-ticket-sale vn-thead vn-check md-checkbox' ,
secondSaleCheckbox : 'vn-ticket-sale vn-tr:nth-child(2) vn-check[field="sale.checked"] md-checkbox' ,
thirdSaleCheckbox : 'vn-ticket-sale vn-tr:nth-child(3) vn-check[field="sale.checked"] md-checkbox' ,
2018-09-06 12:39:08 +00:00
deleteSaleButton : 'vn-ticket-sale vn-tool-bar > vn-button[icon="delete"]' ,
transferSaleButton : 'vn-ticket-sale vn-tool-bar > vn-button[icon="call_split"]' ,
2019-08-09 06:04:44 +00:00
moveToTicketInput : 'vn-ticket-sale vn-popover.transfer vn-textfield[model="$ctrl.transfer.ticketId"] input' ,
2018-09-06 12:39:08 +00:00
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"]' ,
2019-04-26 12:15:37 +00:00
acceptDeleteLineButton : 'vn-ticket-sale > vn-confirm[vn-id="delete-lines"] button[response=ACCEPT]' ,
2019-06-26 12:19:08 +00:00
acceptDeleteTicketButton : 'vn-ticket-sale > vn-confirm[vn-id="delete-ticket"] button[response=ACCEPT]' ,
2019-04-26 12:15:37 +00:00
stateMenuButton : 'vn-ticket-sale vn-tool-bar > vn-button-menu[label="State"]'
2018-04-05 12:14:34 +00:00
} ,
ticketTracking : {
2019-04-26 12:15:37 +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 } ` ,
2019-04-26 12:15:37 +00:00
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 : {
2019-04-26 12:15:37 +00:00
basicDataButton : 'vn-left-menu a[ui-sref="ticket.card.basicData.stepOne"]' ,
clientAutocomplete : 'vn-autocomplete[field="$ctrl.clientFk"]' ,
addressAutocomplete : 'vn-autocomplete[field="$ctrl.ticket.addressFk"]' ,
2019-07-26 09:48:01 +00:00
agencyAutocomplete : 'vn-autocomplete[field="$ctrl.agencyModeId"]' ,
zoneAutocomplete : 'vn-autocomplete[field="$ctrl.zoneId"]' ,
2019-04-26 12:15:37 +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-basic-data-step-two > form > vn-card > div > vn-horizontal > table > tfoot > tr > td:nth-child(4)' ,
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 : {
2019-04-26 12:15:37 +00:00
addRequestButton : 'vn-ticket-request-index > a > vn-float-button > button' ,
2018-11-21 13:09:22 +00:00
request : 'vn-ticket-request-index > form > vn-card > div > vn-horizontal > vn-table > div > vn-tbody > vn-tr' ,
2019-04-26 12:15:37 +00:00
descriptionInput : 'vn-ticket-request-create > form > div > vn-card > div > vn-horizontal:nth-child(1) > vn-textfield > div > div > div.infix > input' ,
atenderAutocomplete : 'vn-ticket-request-create vn-autocomplete[field="$ctrl.ticketRequest.atenderFk"]' ,
quantityInput : 'vn-ticket-request-create > form > div > vn-card > div > vn-horizontal:nth-child(2) > vn-input-number:nth-child(1) > div > div > div.infix > input' ,
priceInput : 'vn-ticket-request-create > form > div > vn-card > div > vn-horizontal:nth-child(2) > vn-input-number:nth-child(2) > div > div > div.infix > input' ,
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' ,
2018-11-21 13:09:22 +00:00
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 : {
2019-04-26 12:15:37 +00:00
logButton : 'vn-left-menu a[ui-sref="ticket.card.log"]' ,
2019-04-02 09:04:53 +00:00
changedBy : 'vn-ticket-log > vn-log > vn-vertical > vn-card > div > vn-vertical > vn-table > div > vn-tbody > vn-tr:nth-child(1) > vn-td:nth-child(2) > span' ,
2019-01-11 11:41:07 +00:00
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 : {
2019-05-20 09:16:56 +00:00
addServiceButton : 'vn-ticket-service vn-icon-button[vn-tooltip="Add service"] > button' ,
firstAddDescriptionButton : 'vn-ticket-service vn-icon-button[vn-tooltip="New service type"] > button' ,
2019-04-11 10:25:01 +00:00
firstDescriptionAutocomplete : 'vn-ticket-service vn-autocomplete[field="service.description"]' ,
2019-03-26 06:29:45 +00:00
firstQuantityInput : 'vn-ticket-service vn-input-number[label="Quantity"] input' ,
2019-03-06 07:54:04 +00:00
firstPriceInput : 'vn-ticket-service vn-input-number[label="Price"] input' ,
2019-01-15 11:28:13 +00:00
firstVatTypeAutocomplete : 'vn-ticket-service vn-autocomplete[label="Tax class"]' ,
2019-02-21 10:40:27 +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-button[icon="delete"]' ,
2019-05-20 09:16:56 +00:00
newDescriptionInput : 'vn-ticket-service > vn-dialog vn-textfield[model="$ctrl.newServiceType.name"] input' ,
2019-01-15 11:28:13 +00:00
serviceLine : 'vn-ticket-service > form > vn-card > div > vn-one:nth-child(2) > vn-horizontal' ,
2019-05-20 09:16:56 +00:00
saveServiceButton : ` ${ components . vnSubmit } ` ,
saveDescriptionButton : 'vn-ticket-service > vn-dialog[vn-id="createServiceTypeDialog"] > div > form > div.buttons > tpl-buttons > button'
2019-01-14 10:19:39 +00:00
} ,
2018-04-05 12:14:34 +00:00
createStateView : {
2019-04-26 12:15:37 +00:00
stateAutocomplete : 'vn-autocomplete[field="$ctrl.stateFk"]' ,
workerAutocomplete : 'vn-autocomplete[field="$ctrl.workerFk"]' ,
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 } ` ,
2019-04-26 12:15:37 +00:00
searchResult : 'vn-claim-index vn-card > div > vn-table > div > vn-tbody > a' ,
searchButton : 'vn-claim-index vn-searchbar vn-icon[icon="search"]'
2018-09-04 09:38:48 +00:00
} ,
2019-06-28 12:01:43 +00:00
claimDescriptor : {
moreMenu : 'vn-claim-descriptor vn-icon-menu[vn-id="more-button"]' ,
moreMenuDeleteClaim : 'vn-claim-descriptor vn-icon-menu vn-drop-down li[name="Delete claim"]' ,
acceptDeleteClaim : 'vn-claim-descriptor > vn-confirm[vn-id="confirm-delete-claim"] button[response="ACCEPT"]'
} ,
2019-06-28 10:51:34 +00:00
claimSummary : {
header : 'vn-claim-summary > vn-card > div > h5' ,
state : 'vn-claim-summary vn-label-value[label="State"] > section > span' ,
observation : 'vn-claim-summary vn-textarea[model="$ctrl.summary.claim.observation"] > div > textarea' ,
firstSaleItemId : 'vn-claim-summary vn-horizontal > vn-auto:nth-child(4) > vn-table > div > vn-tbody > vn-tr:nth-child(1) > vn-td:nth-child(1) > span' ,
firstSaleDescriptorImage : 'vn-claim-summary vn-item-descriptor-popover > vn-popover vn-item-descriptor img' ,
itemDescriptorPopover : 'vn-claim-summary vn-item-descriptor-popover > vn-popover' ,
itemDescriptorPopoverItemDiaryButton : 'vn-claim-summary > vn-item-descriptor-popover a[href="#!/item/2/diary"]' ,
firstDevelopmentWorker : 'vn-claim-summary vn-horizontal > vn-auto:nth-child(5) > vn-table > div > vn-tbody > vn-tr:nth-child(1) > vn-td:nth-child(4) > span' ,
2019-07-03 06:14:42 +00:00
firstDevelopmentWorkerGoToClientButton : 'vn-claim-summary > vn-worker-descriptor-popover > vn-popover vn-worker-descriptor div.quicklinks > a[href="#!/client/21/summary"]' ,
firstActionTicketId : 'vn-claim-summary > vn-card > div > vn-horizontal > vn-auto:nth-child(6) > vn-table > div > vn-tbody > vn-tr > vn-td:nth-child(2) > span' ,
firstActionTicketDescriptor : 'vn-claim-summary > vn-ticket-descriptor-popover > vn-popover > div > div.content > vn-ticket-descriptor'
2019-06-28 10:51:34 +00:00
} ,
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-04-26 12:15:37 +00:00
responsabilityInputRange : 'vn-input-range' ,
2019-05-03 15:49:38 +00:00
observationInput : 'vn-textarea[field="$ctrl.claim.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 : {
2019-08-28 06:08:30 +00:00
secondItemDiscount : 'vn-claim-detail > vn-vertical > vn-card > div > vn-vertical > vn-table > div > vn-tbody > vn-tr:nth-child(2) > vn-td:nth-child(6) > span' ,
2019-07-02 12:44:36 +00:00
discountInput : 'vn-claim-detail vn-popover vn-input-number[model="$ctrl.newDiscount"] > div > div > div.infix > input' ,
discoutPopoverMana : 'vn-claim-detail > vn-popover > div > div.content > div > vn-horizontal > h5' ,
2019-04-26 12:15:37 +00:00
addItemButton : 'vn-claim-detail a vn-float-button' ,
2019-01-22 10:54:17 +00:00
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' ,
2019-07-02 12:44:36 +00:00
firstItemQuantityInput : 'vn-claim-detail vn-tr:nth-child(1) vn-input-number[model="saleClaimed.quantity"] input' ,
2019-01-22 12:18:20 +00:00
totalClaimed : 'vn-claim-detail > vn-vertical > vn-card > div > vn-vertical > vn-horizontal > div > vn-label-value:nth-child(2) > section > span' ,
2019-08-28 06:08:30 +00:00
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(8) > 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-02-25 13:11:16 +00:00
saveDevelopmentButton : ` ${ components . vnSubmit } `
2019-01-15 07:33:19 +00:00
} ,
2019-02-25 10:47:28 +00:00
claimAction : {
importClaimButton : 'vn-claim-action vn-button[label="Import claim"]' ,
importTicketButton : 'vn-claim-action vn-button[label="Import ticket"]' ,
secondImportableTicket : 'vn-claim-action > vn-vertical > vn-popover > div > div.content > div > vn-table > div > vn-tbody > vn-tr:nth-child(2)' ,
firstLineDestination : 'vn-claim-action vn-tr:nth-child(1) vn-autocomplete[field="saleClaimed.claimDestinationFk"]' ,
2019-06-14 10:27:41 +00:00
secondLineDestination : 'vn-claim-action vn-tr:nth-child(2) vn-autocomplete[field="saleClaimed.claimDestinationFk"]' ,
2019-02-25 10:47:28 +00:00
firstDeleteLine : 'vn-claim-action vn-tr:nth-child(1) vn-icon-button[icon="delete"]' ,
2019-06-04 09:00:05 +00:00
isPaidWithManaCheckbox : 'vn-check[field="$ctrl.claim.isChargedToMana"] md-checkbox'
2019-02-25 10:47:28 +00:00
} ,
2019-01-09 12:49:37 +00:00
ordersIndex : {
2019-04-26 12:15:37 +00:00
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)' ,
2019-01-09 12:49:37 +00:00
searchOrderInput : ` vn-order-index ${ components . vnTextfield } ` ,
2019-04-26 12:15:37 +00:00
searchButton : 'vn-order-index vn-searchbar vn-icon[icon="search"]' ,
2019-01-09 12:49:37 +00:00
createOrderButton : ` ${ components . vnFloatButton } ` ,
} ,
2019-08-29 11:16:38 +00:00
orderDescriptor : {
returnToModuleIndexButton : 'vn-order-descriptor a[ui-sref="order.index"]' ,
acceptNavigationButton : 'vn-order-basic-data vn-confirm button[response=ACCEPT]'
} ,
2019-01-09 12:49:37 +00:00
createOrderView : {
2019-04-26 12:15:37 +00:00
clientAutocomplete : 'vn-autocomplete[label="Client"]' ,
addressAutocomplete : 'vn-autocomplete[label="Address"]' ,
agencyAutocomplete : 'vn-autocomplete[label="Agency"]' ,
2019-05-02 09:23:54 +00:00
landedDatePicker : 'vn-date-picker[label="Landed"] input' ,
2019-01-09 12:49:37 +00:00
createButton : ` ${ components . vnSubmit } ` ,
2019-04-26 12:15:37 +00:00
cancelButton : 'vn-button[href="#!/client/index"]'
2019-01-09 12:49:37 +00:00
} ,
2018-11-15 13:15:34 +00:00
orderCatalog : {
2019-04-26 12:15:37 +00:00
orderByAutocomplete : 'vn-autocomplete[label="Order by"]' ,
2019-05-02 09:23:54 +00:00
plantRealmButton : 'vn-order-catalog > vn-side-menu vn-icon[icon="icon-plant"]' ,
typeAutocomplete : 'vn-autocomplete[data="$ctrl.itemTypes"]' ,
itemIdInput : 'vn-order-catalog > vn-side-menu vn-catalog-filter vn-textfield[model="$ctrl.itemFk"] input' ,
itemTagValueInput : 'vn-order-catalog > vn-side-menu vn-catalog-filter vn-textfield[model="$ctrl.value"] input' ,
openTagSearch : 'vn-order-catalog > vn-side-menu > div > vn-catalog-filter > div > vn-vertical > vn-textfield[model="$ctrl.value"] > div > div > div.rightIcons > t-right-icons > i' ,
tagAutocomplete : 'vn-order-catalog > vn-side-menu vn-catalog-filter vn-popover vn-order-catalog-search-panel vn-autocomplete[field="filter.tagFk"]' ,
tagValueInput : 'vn-order-catalog > vn-side-menu vn-catalog-filter vn-popover vn-order-catalog-search-panel vn-textfield[model="filter.value"] input' ,
searchTagButton : 'vn-order-catalog > vn-side-menu vn-catalog-filter vn-popover vn-order-catalog-search-panel > div > form > vn-horizontal:nth-child(3) > vn-submit > input' ,
thirdFilterRemoveButton : 'vn-order-catalog > vn-side-menu vn-catalog-filter > div > vn-horizontal.chips > vn-chip:nth-child(3) button' ,
fourthFilterRemoveButton : 'vn-order-catalog > vn-side-menu vn-catalog-filter > div > vn-horizontal.chips > vn-chip:nth-child(4) button' ,
2019-01-09 12:49:37 +00:00
} ,
orderBasicData : {
2019-04-26 12:15:37 +00:00
clientAutocomplete : 'vn-autocomplete[label="Client"]' ,
addressAutocomplete : 'vn-autocomplete[label="Address"]' ,
agencyAutocomplete : 'vn-autocomplete[label="Agency"]' ,
observationInput : 'vn-textarea[label="Observation"] textarea' ,
2019-09-23 06:17:21 +00:00
saveButton : ` ${ components . vnSubmit } ` ,
acceptButton : 'vn-order-basic-data vn-confirm[vn-id="confirm"] button[response="ACCEPT"]'
2018-11-15 13:15:34 +00:00
} ,
2019-02-11 13:51:42 +00:00
orderLine : {
2019-02-19 16:55:19 +00:00
orderSubtotal : 'vn-order-line vn-horizontal.header p:nth-child(1)' ,
2019-02-11 13:51:42 +00:00
firstLineDeleteButton : 'vn-order-line vn-tbody > vn-tr:nth-child(1) vn-icon[icon="delete"]' ,
confirmOrder : 'vn-order-line > vn-vertical > vn-button-bar > vn-button > button' ,
confirmButton : 'vn-order-line > vn-confirm button[response="ACCEPT"]' ,
} ,
2019-03-29 15:29:18 +00:00
routeIndex : {
addNewRouteButton : 'vn-route-index > a[ui-sref="route.create"]'
} ,
createRouteView : {
workerAutocomplete : 'vn-route-create vn-autocomplete[field="$ctrl.route.workerFk"]' ,
createdDatePicker : 'vn-route-create vn-date-picker[model="$ctrl.route.created"] > div > input' ,
vehicleAutoComplete : 'vn-route-create vn-autocomplete[field="$ctrl.route.vehicleFk"]' ,
agencyAutoComplete : 'vn-route-create vn-autocomplete[field="$ctrl.route.agencyModeFk"]' ,
descriptionInput : 'vn-route-create vn-textfield[field="$ctrl.route.description"] input' ,
submitButton : 'vn-route-create vn-submit > input[type="submit"]'
} ,
2019-07-01 11:41:38 +00:00
routeDescriptor : {
volume : 'vn-route-descriptor vn-label-value[label="Volume"] > section > span'
} ,
2019-03-29 15:29:18 +00:00
routeSummary : {
routeId : 'vn-route-summary > vn-card > div > vn-horizontal > vn-one:nth-child(1) > vn-label-value:nth-child(1) > section > span'
} ,
2019-03-25 09:07:10 +00:00
routeBasicData : {
workerAutoComplete : 'vn-route-basic-data vn-autocomplete[field="$ctrl.route.workerFk"]' ,
vehicleAutoComplete : 'vn-route-basic-data vn-autocomplete[field="$ctrl.route.vehicleFk"]' ,
agencyAutoComplete : 'vn-route-basic-data vn-autocomplete[field="$ctrl.route.agencyModeFk"]' ,
2019-04-05 06:06:03 +00:00
kmStartInput : 'vn-route-basic-data vn-input-number[field="$ctrl.route.kmStart"] input' ,
kmEndInput : 'vn-route-basic-data vn-input-number[model="$ctrl.route.kmEnd"] input' ,
2019-03-25 09:07:10 +00:00
createdDateInput : 'vn-route-basic-data vn-date-picker[model="$ctrl.route.created"] > div > input' ,
startedDateInput : 'vn-route-basic-data vn-date-picker[model="$ctrl.route.started"] > div > input' ,
finishedDateInput : 'vn-route-basic-data vn-date-picker[model="$ctrl.route.finished"] > div > input' ,
saveButton : 'vn-route-basic-data vn-submit[label="Save"] input'
2019-04-08 13:38:47 +00:00
} ,
routeTickets : {
firstTicketPriority : 'vn-route-tickets vn-tr:nth-child(1) vn-textfield[model="ticket.priority"] input' ,
secondTicketPriority : 'vn-route-tickets vn-tr:nth-child(2) vn-textfield[model="ticket.priority"] input' ,
thirdTicketPriority : 'vn-route-tickets vn-tr:nth-child(3) vn-textfield[model="ticket.priority"] input' ,
fourthTicketPriority : 'vn-route-tickets vn-tr:nth-child(4) vn-textfield[model="ticket.priority"] input' ,
2019-07-02 12:44:36 +00:00
eleventhTicketPriority : 'vn-route-tickets vn-tr:nth-child(11) vn-textfield[model="ticket.priority"] input' ,
2019-04-08 13:38:47 +00:00
firstTicketCheckbox : 'vn-route-tickets vn-tr:nth-child(1) vn-check md-checkbox' ,
buscamanButton : 'vn-route-tickets vn-button[icon="icon-buscaman"]' ,
firstTicketDeleteButton : 'vn-route-tickets vn-tr:nth-child(1) vn-icon[icon="delete"]' ,
confirmButton : 'vn-route-tickets > vn-confirm button[response="ACCEPT"]'
2019-06-04 05:57:01 +00:00
} ,
workerPbx : {
2019-06-05 11:51:15 +00:00
extensionInput : 'vn-worker-pbx vn-textfield[model="$ctrl.worker.sip.extension"] input' ,
2019-06-04 05:57:01 +00:00
saveButton : 'vn-worker-pbx vn-submit[label="Save"] input'
} ,
workerTimeControl : {
timeDialogInput : 'vn-worker-time-control > vn-dialog input' ,
mondayAddTimeButton : 'vn-worker-time-control > div > vn-card > div > vn-horizontal > vn-table > div > vn-tfoot > vn-tr:nth-child(2) > vn-td:nth-child(1) > vn-icon-button > button > vn-icon' ,
tuesdayAddTimeButton : 'vn-worker-time-control > div > vn-card > div > vn-horizontal > vn-table > div > vn-tfoot > vn-tr:nth-child(2) > vn-td:nth-child(2) > vn-icon-button > button > vn-icon' ,
wednesdayAddTimeButton : 'vn-worker-time-control > div > vn-card > div > vn-horizontal > vn-table > div > vn-tfoot > vn-tr:nth-child(2) > vn-td:nth-child(3) > vn-icon-button > button > vn-icon' ,
thursdayAddTimeButton : 'vn-worker-time-control > div > vn-card > div > vn-horizontal > vn-table > div > vn-tfoot > vn-tr:nth-child(2) > vn-td:nth-child(4) > vn-icon-button > button > vn-icon' ,
fridayAddTimeButton : 'vn-worker-time-control > div > vn-card > div > vn-horizontal > vn-table > div > vn-tfoot > vn-tr:nth-child(2) > vn-td:nth-child(5) > vn-icon-button > button > vn-icon' ,
saturdayAddTimeButton : 'vn-worker-time-control > div > vn-card > div > vn-horizontal > vn-table > div > vn-tfoot > vn-tr:nth-child(2) > vn-td:nth-child(6) > vn-icon-button > button > vn-icon' ,
sundayAddTimeButton : 'vn-worker-time-control > div > vn-card > div > vn-horizontal > vn-table > div > vn-tfoot > vn-tr:nth-child(2) > vn-td:nth-child(7) > vn-icon-button > button > vn-icon' ,
confirmButton : 'vn-worker-time-control > vn-dialog > div > form > div.buttons > tpl-buttons > button' ,
firstEntryOfMonday : 'vn-worker-time-control > div > vn-card > div > vn-horizontal > vn-table > div > vn-tbody > vn-tr > vn-td:nth-child(1) > section:nth-child(1) > span' ,
firstEntryOfTuesday : 'vn-worker-time-control > div > vn-card > div > vn-horizontal > vn-table > div > vn-tbody > vn-tr > vn-td:nth-child(2) > section:nth-child(1) > span' ,
firstEntryOfWednesday : 'vn-worker-time-control > div > vn-card > div > vn-horizontal > vn-table > div > vn-tbody > vn-tr > vn-td:nth-child(3) > section:nth-child(1) > span' ,
firstEntryOfThursday : 'vn-worker-time-control > div > vn-card > div > vn-horizontal > vn-table > div > vn-tbody > vn-tr > vn-td:nth-child(4) > section:nth-child(1) > span' ,
firstEntryOfFriday : 'vn-worker-time-control > div > vn-card > div > vn-horizontal > vn-table > div > vn-tbody > vn-tr > vn-td:nth-child(5) > section:nth-child(1) > span' ,
firstEntryOfSaturday : 'vn-worker-time-control > div > vn-card > div > vn-horizontal > vn-table > div > vn-tbody > vn-tr > vn-td:nth-child(6) > section:nth-child(1) > span' ,
firstEntryOfSunday : 'vn-worker-time-control > div > vn-card > div > vn-horizontal > vn-table > div > vn-tbody > vn-tr > vn-td:nth-child(7) > section:nth-child(1) > span' ,
secondEntryOfMonday : 'vn-worker-time-control > div > vn-card > div > vn-horizontal > vn-table > div > vn-tbody > vn-tr > vn-td:nth-child(1) > section:nth-child(2) > span' ,
secondEntryOfTuesday : 'vn-worker-time-control > div > vn-card > div > vn-horizontal > vn-table > div > vn-tbody > vn-tr > vn-td:nth-child(2) > section:nth-child(2) > span' ,
secondEntryOfWednesday : 'vn-worker-time-control > div > vn-card > div > vn-horizontal > vn-table > div > vn-tbody > vn-tr > vn-td:nth-child(3) > section:nth-child(2) > span' ,
secondEntryOfThursday : 'vn-worker-time-control > div > vn-card > div > vn-horizontal > vn-table > div > vn-tbody > vn-tr > vn-td:nth-child(4) > section:nth-child(2) > span' ,
secondEntryOfFriday : 'vn-worker-time-control > div > vn-card > div > vn-horizontal > vn-table > div > vn-tbody > vn-tr > vn-td:nth-child(5) > section:nth-child(2) > span' ,
secondEntryOfSaturday : 'vn-worker-time-control > div > vn-card > div > vn-horizontal > vn-table > div > vn-tbody > vn-tr > vn-td:nth-child(6) > section:nth-child(2) > span' ,
secondEntryOfSunday : 'vn-worker-time-control > div > vn-card > div > vn-horizontal > vn-table > div > vn-tbody > vn-tr > vn-td:nth-child(7) > section:nth-child(2) > span' ,
thirdEntryOfMonday : 'vn-worker-time-control > div > vn-card > div > vn-horizontal > vn-table > div > vn-tbody > vn-tr > vn-td:nth-child(1) > section:nth-child(3) > span' ,
thirdEntryOfTuesday : 'vn-worker-time-control > div > vn-card > div > vn-horizontal > vn-table > div > vn-tbody > vn-tr > vn-td:nth-child(2) > section:nth-child(3) > span' ,
thirdEntryOfWednesday : 'vn-worker-time-control > div > vn-card > div > vn-horizontal > vn-table > div > vn-tbody > vn-tr > vn-td:nth-child(3) > section:nth-child(3) > span' ,
thirdEntryOfThursday : 'vn-worker-time-control > div > vn-card > div > vn-horizontal > vn-table > div > vn-tbody > vn-tr > vn-td:nth-child(4) > section:nth-child(3) > span' ,
thirdEntryOfFriday : 'vn-worker-time-control > div > vn-card > div > vn-horizontal > vn-table > div > vn-tbody > vn-tr > vn-td:nth-child(5) > section:nth-child(3) > span' ,
thirdEntryOfSaturday : 'vn-worker-time-control > div > vn-card > div > vn-horizontal > vn-table > div > vn-tbody > vn-tr > vn-td:nth-child(6) > section:nth-child(3) > span' ,
thirdEntryOfSunday : 'vn-worker-time-control > div > vn-card > div > vn-horizontal > vn-table > div > vn-tbody > vn-tr > vn-td:nth-child(7) > section:nth-child(3) > span' ,
fourthEntryOfMonday : 'vn-worker-time-control > div > vn-card > div > vn-horizontal > vn-table > div > vn-tbody > vn-tr > vn-td:nth-child(1) > section:nth-child(4) > span' ,
fourthEntryOfTuesday : 'vn-worker-time-control > div > vn-card > div > vn-horizontal > vn-table > div > vn-tbody > vn-tr > vn-td:nth-child(2) > section:nth-child(4) > span' ,
fourthEntryOfWednesday : 'vn-worker-time-control > div > vn-card > div > vn-horizontal > vn-table > div > vn-tbody > vn-tr > vn-td:nth-child(3) > section:nth-child(4) > span' ,
fourthEntryOfThursday : 'vn-worker-time-control > div > vn-card > div > vn-horizontal > vn-table > div > vn-tbody > vn-tr > vn-td:nth-child(4) > section:nth-child(4) > span' ,
fourthEntryOfFriday : 'vn-worker-time-control > div > vn-card > div > vn-horizontal > vn-table > div > vn-tbody > vn-tr > vn-td:nth-child(5) > section:nth-child(4) > span' ,
fourthEntryOfSaturday : 'vn-worker-time-control > div > vn-card > div > vn-horizontal > vn-table > div > vn-tbody > vn-tr > vn-td:nth-child(6) > section:nth-child(4) > span' ,
fourthEntryOfSunday : 'vn-worker-time-control > div > vn-card > div > vn-horizontal > vn-table > div > vn-tbody > vn-tr > vn-td:nth-child(7) > section:nth-child(4) > span' ,
mondayWorkedHours : 'vn-worker-time-control > div > vn-card > div > vn-horizontal > vn-table > div > vn-tfoot > vn-tr:nth-child(1) > vn-td:nth-child(1)' ,
tuesdayWorkedHours : 'vn-worker-time-control > div > vn-card > div > vn-horizontal > vn-table > div > vn-tfoot > vn-tr:nth-child(1) > vn-td:nth-child(2)' ,
wednesdayWorkedHours : 'vn-worker-time-control > div > vn-card > div > vn-horizontal > vn-table > div > vn-tfoot > vn-tr:nth-child(1) > vn-td:nth-child(3)' ,
thursdayWorkedHours : 'vn-worker-time-control > div > vn-card > div > vn-horizontal > vn-table > div > vn-tfoot > vn-tr:nth-child(1) > vn-td:nth-child(4)' ,
fridayWorkedHours : 'vn-worker-time-control > div > vn-card > div > vn-horizontal > vn-table > div > vn-tfoot > vn-tr:nth-child(1) > vn-td:nth-child(5)' ,
saturdayWorkedHours : 'vn-worker-time-control > div > vn-card > div > vn-horizontal > vn-table > div > vn-tfoot > vn-tr:nth-child(1) > vn-td:nth-child(6)' ,
sundayWorkedHours : 'vn-worker-time-control > div > vn-card > div > vn-horizontal > vn-table > div > vn-tfoot > vn-tr:nth-child(1) > vn-td:nth-child(7)' ,
weekWorkedHours : 'vn-worker-time-control > div > vn-side-menu > div > vn-vertical > vn-vertical > vn-label-value > section > span' ,
nextMonthButton : 'vn-worker-time-control > div > vn-side-menu > div > vn-calendar > div > vn-horizontal > vn-auto:nth-child(3) > vn-icon' ,
navigateBackToIndex : 'vn-worker-descriptor vn-icon[icon="chevron_left"]'
2019-06-10 14:58:08 +00:00
} ,
invoiceOutIndex : {
searchInvoiceOutInput : ` vn-invoice-out-index ${ components . vnTextfield } ` ,
searchButton : 'vn-invoice-out-index vn-searchbar vn-icon[icon="search"]' ,
searchResult : 'vn-invoice-out-index vn-card > div > vn-table > div > vn-tbody > a.vn-tr' ,
} ,
invoiceOutDescriptor : {
moreMenu : 'vn-invoice-out-descriptor vn-icon-menu[vn-id="more-button"]' ,
moreMenuDeleteInvoiceOut : 'vn-invoice-out-descriptor vn-popover li[name="Delete Invoice"]' ,
moreMenuBookInvoiceOut : 'vn-invoice-out-descriptor vn-popover li[name="Book invoice"]' ,
moreMenuShowInvoiceOutPdf : 'vn-invoice-out-descriptor vn-popover li[name="Show invoice PDF"]' ,
acceptDeleteButton : 'vn-invoice-out-descriptor > vn-confirm[vn-id="deleteConfirmation"] button[response="ACCEPT"]' ,
acceptBookingButton : 'vn-invoice-out-descriptor > vn-confirm[vn-id="bookConfirmation"] button[response="ACCEPT"]'
} ,
invoiceOutSummary : {
bookedLabel : 'vn-invoice-out-summary > vn-card > div > vn-horizontal > vn-one > vn-label-value:nth-child(4) > section > span'
2019-03-08 13:46:01 +00:00
}
2017-09-15 10:24:37 +00:00
} ;