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',
|
2019-09-30 09:30:54 +00:00
|
|
|
applicationsMenuVisible: '.modules-menu',
|
|
|
|
clientsButton: '.modules-menu > li[ui-sref="client.index"]',
|
|
|
|
itemsButton: '.modules-menu > li[ui-sref="item.index"]',
|
|
|
|
ticketsButton: '.modules-menu > li[ui-sref="ticket.index"]',
|
|
|
|
invoiceOutButton: '.modules-menu > li[ui-sref="invoiceOut.index"]',
|
|
|
|
claimsButton: '.modules-menu > li[ui-sref="claim.index"]',
|
2019-06-19 07:03:45 +00:00
|
|
|
returnToModuleIndexButton: 'a[ui-sref="order.index"]',
|
2019-11-10 13:13:55 +00:00
|
|
|
userMenuButton: '#user',
|
2019-10-09 22:47:29 +00:00
|
|
|
userLocalWarehouse: '.user-popover vn-autocomplete[ng-model="$ctrl.localWarehouseFk"]',
|
|
|
|
userLocalBank: '.user-popover vn-autocomplete[ng-model="$ctrl.localBankFk"]',
|
|
|
|
userLocalCompany: '.user-popover vn-autocomplete[ng-model="$ctrl.localCompanyFk"]',
|
|
|
|
userWarehouse: '.user-popover vn-autocomplete[ng-model="$ctrl.warehouseFk"]',
|
|
|
|
userCompany: '.user-popover vn-autocomplete[ng-model="$ctrl.companyFk"]',
|
2019-10-08 21:57:02 +00:00
|
|
|
userConfigFirstAutocompleteClear: '#localWarehouse .icons > vn-icon[icon=clear]',
|
|
|
|
userConfigSecondAutocompleteClear: '#localBank .icons > vn-icon[icon=clear]',
|
|
|
|
userConfigThirdAutocompleteClear: '#localCompany .icons > vn-icon[icon=clear]',
|
2019-10-30 15:57:14 +00:00
|
|
|
acceptButton: '.vn-confirm.shown button[response=accept]'
|
2017-09-17 16:09:59 +00:00
|
|
|
},
|
2017-10-29 14:49:44 +00:00
|
|
|
clientsIndex: {
|
2019-10-18 19:36:30 +00:00
|
|
|
searchClientInput: `vn-textfield input`,
|
2019-04-26 12:15:37 +00:00
|
|
|
searchButton: 'vn-searchbar vn-icon[icon="search"]',
|
2019-11-10 13:13:55 +00:00
|
|
|
searchResult: 'vn-client-index .vn-item',
|
2019-10-18 19:36:30 +00:00
|
|
|
createClientButton: `vn-float-button`,
|
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: {
|
2019-10-18 19:36:30 +00:00
|
|
|
name: `vn-textfield input[name="name"]`,
|
|
|
|
taxNumber: `vn-textfield input[name="fi"]`,
|
|
|
|
socialName: `vn-textfield input[name="socialName"]`,
|
|
|
|
street: `vn-textfield input[name="street"]`,
|
|
|
|
postcode: `vn-textfield input[name="postcode"]`,
|
|
|
|
city: `vn-textfield input[name="city"]`,
|
2019-10-09 22:47:29 +00:00
|
|
|
province: `vn-autocomplete[ng-model="$ctrl.client.provinceFk"]`,
|
|
|
|
country: `vn-autocomplete[ng-model="$ctrl.client.countryFk"]`,
|
2019-10-18 19:36:30 +00:00
|
|
|
userName: `vn-textfield input[name="userName"]`,
|
|
|
|
email: `vn-textfield input[name="email"]`,
|
2019-10-09 22:47:29 +00:00
|
|
|
salesPersonAutocomplete: `vn-autocomplete[ng-model="$ctrl.client.salesPersonFk"]`,
|
2019-10-18 19:36:30 +00:00
|
|
|
createButton: `button[type=submit]`,
|
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-10-18 19:36:30 +00:00
|
|
|
moreMenu: 'vn-client-descriptor vn-icon-menu[icon=more_vert]',
|
2019-10-28 16:31:33 +00:00
|
|
|
simpleTicketButton: '.vn-drop-down.shown li'
|
2019-01-16 14:02:50 +00:00
|
|
|
},
|
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-10-09 22:47:29 +00:00
|
|
|
nameInput: 'vn-textfield[ng-model="$ctrl.client.name"] input',
|
|
|
|
contactInput: 'vn-textfield[ng-model="$ctrl.client.contact"] input',
|
|
|
|
phoneInput: 'vn-textfield[ng-model="$ctrl.client.phone"] input',
|
|
|
|
mobileInput: 'vn-textfield[ng-model="$ctrl.client.mobile"] input',
|
|
|
|
emailInput: 'vn-textfield[ng-model="$ctrl.client.email"] input',
|
|
|
|
salesPersonAutocomplete: 'vn-autocomplete[ng-model="$ctrl.client.salesPersonFk"]',
|
|
|
|
channelAutocomplete: 'vn-autocomplete[ng-model="$ctrl.client.contactChannelFk"]',
|
2019-10-18 19:36:30 +00:00
|
|
|
saveButton: `button[type=submit]`
|
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"]',
|
2019-10-18 19:36:30 +00:00
|
|
|
socialNameInput: `vn-textfield input[name="socialName"]`,
|
|
|
|
fiscalIdInput: `vn-textfield input[name="fi"]`,
|
2019-10-22 11:44:36 +00:00
|
|
|
equalizationTaxCheckbox: 'vn-check[ng-model="$ctrl.client.isEqualizated"]',
|
2019-10-30 15:57:14 +00:00
|
|
|
acceptPropagationButton: '.vn-confirm.shown button[response=accept]',
|
2019-10-18 19:36:30 +00:00
|
|
|
addressInput: `vn-textfield input[name="street"]`,
|
|
|
|
postcodeInput: `vn-textfield input[name="postcode"]`,
|
|
|
|
cityInput: `vn-textfield input[name="city"]`,
|
2019-10-09 22:47:29 +00:00
|
|
|
provinceAutocomplete: 'vn-autocomplete[ng-model="$ctrl.client.provinceFk"]',
|
|
|
|
countryAutocomplete: 'vn-autocomplete[ng-model="$ctrl.client.countryFk"]',
|
2019-09-30 18:46:22 +00:00
|
|
|
activeCheckbox: 'vn-check[label="Active"]',
|
|
|
|
frozenCheckbox: 'vn-check[label="Frozen"]',
|
|
|
|
invoiceByAddressCheckbox: 'vn-check[label="Invoice by address"]',
|
|
|
|
verifiedDataCheckbox: 'vn-check[label="Verified data"]',
|
|
|
|
hasToInvoiceCheckbox: 'vn-check[label="Has to invoice"]',
|
|
|
|
invoiceByMailCheckbox: 'vn-check[label="Invoice by mail"]',
|
|
|
|
viesCheckbox: 'vn-check[label="Vies"]',
|
2019-10-18 19:36:30 +00:00
|
|
|
saveButton: `button[type=submit]`
|
2017-12-11 11:33:27 +00:00
|
|
|
},
|
2019-04-16 09:32:45 +00:00
|
|
|
clientBillingData: {
|
2019-10-09 22:47:29 +00:00
|
|
|
payMethodAutocomplete: 'vn-client-billing-data vn-autocomplete[ng-model="$ctrl.client.payMethodFk"]',
|
2019-10-18 19:36:30 +00:00
|
|
|
IBANInput: `vn-client-billing-data vn-textfield input[name="iban"]`,
|
|
|
|
dueDayInput: `vn-client-billing-data vn-input-number input[name="dueDay"]`,
|
2019-10-08 21:57:02 +00:00
|
|
|
receivedCoreLCRCheckbox: 'vn-client-billing-data vn-check[label="Received LCR"]',
|
|
|
|
receivedCoreVNLCheckbox: 'vn-client-billing-data vn-check[label="Received core VNL"]',
|
|
|
|
receivedB2BVNLCheckbox: 'vn-client-billing-data vn-check[label="Received B2B VNL"]',
|
2019-10-09 22:47:29 +00:00
|
|
|
swiftBicAutocomplete: 'vn-client-billing-data vn-autocomplete[ng-model="$ctrl.client.bankEntityFk"]',
|
|
|
|
clearswiftBicButton: 'vn-client-billing-data vn-autocomplete[ng-model="$ctrl.client.bankEntityFk"] .icons > vn-icon[icon=clear]',
|
2018-10-24 08:57:14 +00:00
|
|
|
newBankEntityButton: 'vn-client-billing-data vn-icon-button[vn-tooltip="New bank entity"] > button',
|
2019-10-28 16:31:33 +00:00
|
|
|
newBankEntityName: '.vn-dialog.shown vn-textfield[label="Name"] input',
|
|
|
|
newBankEntityBIC: '.vn-dialog.shown vn-textfield[label="Swift / BIC"] input',
|
|
|
|
newBankEntityCode: '.vn-dialog.shown vn-textfield[label="Entity Code"] input',
|
2019-10-30 15:57:14 +00:00
|
|
|
acceptBankEntityButton: '.vn-dialog.shown button[response="accept"]',
|
2019-10-18 19:36:30 +00:00
|
|
|
saveButton: `button[type=submit]`
|
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"]',
|
2019-10-18 19:36:30 +00:00
|
|
|
createAddress: `vn-client-address-index vn-float-button`,
|
2019-09-30 18:46:22 +00:00
|
|
|
defaultCheckboxInput: 'vn-check[label="Default"]',
|
2019-10-18 19:36:30 +00:00
|
|
|
consigneeInput: `vn-textfield input[name="nickname"]`,
|
|
|
|
streetAddressInput: `vn-textfield input[name="street"]`,
|
|
|
|
postcodeInput: `vn-textfield input[name="postalCode"]`,
|
|
|
|
cityInput: `vn-textfield input[name="city"]`,
|
2019-10-09 22:47:29 +00:00
|
|
|
provinceAutocomplete: 'vn-autocomplete[ng-model="$ctrl.address.provinceFk"]',
|
|
|
|
agencyAutocomplete: 'vn-autocomplete[ng-model="$ctrl.address.agencyModeFk"]',
|
2019-10-18 19:36:30 +00:00
|
|
|
phoneInput: `vn-textfield input[name="phone"]`,
|
|
|
|
mobileInput: `vn-textfield input[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-09-30 18:46:22 +00:00
|
|
|
activeCheckbox: 'vn-check[label="Enabled"]',
|
|
|
|
equalizationTaxCheckbox: 'vn-client-address-edit vn-check[label="Is equalizated"]',
|
2019-10-09 22:47:29 +00:00
|
|
|
firstObservationTypeAutocomplete: 'vn-client-address-edit [name=observations] :nth-child(1) [ng-model="observation.observationTypeFk"]',
|
|
|
|
firstObservationDescriptionInput: 'vn-client-address-edit [name=observations] :nth-child(1) [ng-model="observation.description"] input',
|
|
|
|
secondObservationTypeAutocomplete: 'vn-client-address-edit [name=observations] :nth-child(2) [ng-model="observation.observationTypeFk"]',
|
|
|
|
secondObservationDescriptionInput: 'vn-client-address-edit [name=observations] :nth-child(2) [ng-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"]',
|
2019-10-18 19:36:30 +00:00
|
|
|
saveButton: `button[type=submit]`,
|
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"]',
|
2019-09-30 18:46:22 +00:00
|
|
|
enableWebAccessCheckbox: 'vn-check[label="Enable web access"]',
|
2019-10-18 19:36:30 +00:00
|
|
|
userNameInput: `vn-textfield input[name="name"]`,
|
|
|
|
saveButton: `button[type=submit]`
|
2017-12-15 11:51:06 +00:00
|
|
|
},
|
2018-02-15 11:28:05 +00:00
|
|
|
clientNotes: {
|
2019-10-18 19:36:30 +00:00
|
|
|
addNoteFloatButton: `vn-float-button`,
|
2019-04-26 12:15:37 +00:00
|
|
|
noteInput: 'vn-textarea[label="Note"]',
|
2019-10-18 19:36:30 +00:00
|
|
|
saveButton: `button[type=submit]`,
|
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: {
|
2019-10-18 19:36:30 +00:00
|
|
|
addCreditFloatButton: `vn-float-button`,
|
|
|
|
creditInput: `vn-input-number input[name="credit"]`,
|
|
|
|
saveButton: `button[type=submit]`,
|
2019-10-23 15:38:35 +00:00
|
|
|
firstCreditText: 'vn-client-credit-index vn-card vn-table vn-tbody > vn-tr'
|
2018-01-08 14:06:20 +00:00
|
|
|
},
|
2018-02-15 11:28:05 +00:00
|
|
|
clientGreuge: {
|
2019-10-18 19:36:30 +00:00
|
|
|
addGreugeFloatButton: `vn-float-button`,
|
|
|
|
amountInput: `vn-input-number input[name="amount"]`,
|
|
|
|
descriptionInput: `vn-textfield input[name="description"]`,
|
2019-10-09 22:47:29 +00:00
|
|
|
typeAutocomplete: 'vn-autocomplete[ng-model="$ctrl.greuge.greugeTypeFk"]',
|
2019-10-18 19:36:30 +00:00
|
|
|
saveButton: `button[type=submit]`,
|
2019-10-23 15:38:35 +00:00
|
|
|
firstGreugeText: 'vn-client-greuge-index vn-card vn-table vn-tbody > vn-tr'
|
2018-01-12 13:20:28 +00:00
|
|
|
},
|
2018-02-15 11:28:05 +00:00
|
|
|
clientMandate: {
|
2019-10-23 15:38:35 +00:00
|
|
|
firstMandateText: 'vn-client-mandate vn-card vn-table vn-tbody > vn-tr'
|
2018-02-15 11:28:05 +00:00
|
|
|
},
|
2018-03-02 13:45:22 +00:00
|
|
|
clientInvoices: {
|
2019-10-23 15:38:35 +00:00
|
|
|
firstInvoiceText: 'vn-client-invoice vn-card vn-table vn-tbody > vn-tr'
|
2018-10-30 09:22:47 +00:00
|
|
|
},
|
|
|
|
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-10-09 22:47:29 +00:00
|
|
|
companyAutocomplete: 'vn-client-balance-index vn-autocomplete[ng-model="$ctrl.companyFk"]',
|
2019-10-18 19:36:30 +00:00
|
|
|
newPaymentButton: `vn-float-button`,
|
2019-10-28 16:31:33 +00:00
|
|
|
newPaymentBank: '.vn-dialog.shown vn-autocomplete[ng-model="$ctrl.receipt.bankFk"]',
|
|
|
|
newPaymentAmountInput: '.vn-dialog.shown vn-input-number[ng-model="$ctrl.receipt.amountPaid"] input',
|
|
|
|
saveButton: '.vn-dialog.shown 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-09-30 18:46:22 +00:00
|
|
|
firstPaymentConfirmed: 'vn-client-web-payment vn-tr:nth-child(1) vn-icon[icon="check"]'
|
2019-02-20 11:49:39 +00:00
|
|
|
},
|
2019-08-12 14:58:39 +00:00
|
|
|
dms: {
|
2019-10-01 14:17:57 +00:00
|
|
|
deleteFileButton: 'vn-client-dms-index vn-tr:nth-child(1) vn-icon-button[icon="delete"]',
|
|
|
|
firstDocWorker: 'vn-client-dms-index vn-td:nth-child(8) > span',
|
2019-09-30 09:30:54 +00:00
|
|
|
firstDocWorkerDescriptor: '.vn-popover.shown vn-worker-descriptor',
|
2019-10-30 15:57:14 +00:00
|
|
|
acceptDeleteButton: '.vn-confirm.shown button[response="accept"]'
|
2019-08-12 14:58:39 +00:00
|
|
|
},
|
2018-02-15 11:28:05 +00:00
|
|
|
itemsIndex: {
|
2019-11-10 13:13:55 +00:00
|
|
|
searchIcon: 'vn-searchbar vn-icon[icon="search"]',
|
2019-10-18 19:36:30 +00:00
|
|
|
createItemButton: `vn-float-button`,
|
2019-11-10 13:13:55 +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"]',
|
2019-10-30 15:57:14 +00:00
|
|
|
acceptClonationAlertButton: '.vn-confirm.shown [response="accept"]',
|
2019-04-26 12:15:37 +00:00
|
|
|
searchItemInput: 'vn-searchbar vn-textfield input',
|
|
|
|
searchButton: 'vn-searchbar vn-icon[icon="search"]',
|
2019-10-28 16:31:33 +00:00
|
|
|
closeItemSummaryPreview: '.vn-popup.shown',
|
2019-10-02 19:02:49 +00:00
|
|
|
fieldsToShowButton: 'vn-item-index vn-table > div > div > vn-icon-button[icon="menu"]',
|
2019-10-28 16:31:33 +00:00
|
|
|
fieldsToShowForm: '.vn-dialog.shown form',
|
2019-11-12 07:51:50 +00:00
|
|
|
firstItemImage: 'vn-item-index vn-tbody > a:nth-child(1) > vn-td:nth-child(1) > img',
|
|
|
|
firstItemImageTd: 'vn-item-index vn-table a:nth-child(1) vn-td:nth-child(1)',
|
2019-03-06 08:26:05 +00:00
|
|
|
firstItemId: 'vn-item-index vn-tbody > a:nth-child(1) > vn-td:nth-child(2)',
|
2019-10-28 16:31:33 +00:00
|
|
|
idCheckbox: '.vn-dialog.shown form vn-horizontal:nth-child(2) > vn-check',
|
|
|
|
stemsCheckbox: '.vn-dialog.shown form vn-horizontal:nth-child(3) > vn-check',
|
|
|
|
sizeCheckbox: '.vn-dialog.shown form vn-horizontal:nth-child(4) > vn-check',
|
|
|
|
nicheCheckbox: '.vn-dialog.shown form vn-horizontal:nth-child(5) > vn-check',
|
|
|
|
typeCheckbox: '.vn-dialog.shown form vn-horizontal:nth-child(6) > vn-check',
|
|
|
|
categoryCheckbox: '.vn-dialog.shown form vn-horizontal:nth-child(7) > vn-check',
|
|
|
|
intrastadCheckbox: '.vn-dialog.shown form vn-horizontal:nth-child(8) > vn-check',
|
|
|
|
originCheckbox: '.vn-dialog.shown form vn-horizontal:nth-child(9) > vn-check',
|
|
|
|
buyerCheckbox: '.vn-dialog.shown form vn-horizontal:nth-child(10) > vn-check',
|
|
|
|
destinyCheckbox: '.vn-dialog.shown form vn-horizontal:nth-child(11) > vn-check',
|
|
|
|
taxClassCheckbox: '.vn-dialog.shown form vn-horizontal:nth-child(12) > vn-check',
|
|
|
|
saveFieldsButton: '.vn-dialog.shown 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-10-18 19:36:30 +00:00
|
|
|
temporalName: `vn-textfield input[name="provisionalName"]`,
|
2019-10-09 22:47:29 +00:00
|
|
|
typeAutocomplete: 'vn-autocomplete[ng-model="$ctrl.item.typeFk"]',
|
|
|
|
intrastatAutocomplete: 'vn-autocomplete[ng-model="$ctrl.item.intrastatFk"]',
|
|
|
|
originAutocomplete: 'vn-autocomplete[ng-model="$ctrl.item.originFk"]',
|
2019-10-18 19:36:30 +00:00
|
|
|
createButton: `button[type=submit]`,
|
|
|
|
cancelButton: 'vn-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-10-18 19:36:30 +00:00
|
|
|
moreMenu: 'vn-item-descriptor vn-icon-menu[icon=more_vert]',
|
2019-10-28 16:31:33 +00:00
|
|
|
moreMenuRegularizeButton: '.vn-drop-down.shown li[name="Regularize stock"]',
|
|
|
|
regularizeQuantityInput: '.vn-dialog.shown tpl-body > div > vn-textfield input',
|
|
|
|
regularizeWarehouseAutocomplete: '.vn-dialog.shown vn-autocomplete[ng-model="$ctrl.warehouseFk"]',
|
2019-02-04 13:47:55 +00:00
|
|
|
editButton: 'vn-item-card vn-item-descriptor vn-float-button[icon="edit"]',
|
2019-10-28 16:31:33 +00:00
|
|
|
regularizeSaveButton: '.vn-dialog.shown 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-10-09 22:47:29 +00:00
|
|
|
typeAutocomplete: 'vn-autocomplete[ng-model="$ctrl.item.typeFk"]',
|
|
|
|
intrastatAutocomplete: 'vn-autocomplete[ng-model="$ctrl.item.intrastatFk"]',
|
2019-04-26 12:15:37 +00:00
|
|
|
nameInput: 'vn-textfield[label="Name"] input',
|
2019-10-11 15:38:04 +00:00
|
|
|
relevancyInput: 'vn-input-number[ng-model="$ctrl.item.relevancy"] input',
|
2019-10-09 22:47:29 +00:00
|
|
|
originAutocomplete: 'vn-autocomplete[ng-model="$ctrl.item.originFk"]',
|
|
|
|
expenceAutocomplete: 'vn-autocomplete[ng-model="$ctrl.item.expenceFk"]',
|
|
|
|
longNameInput: 'vn-textfield[ng-model="$ctrl.item.longName"] input',
|
2019-09-30 18:46:22 +00:00
|
|
|
isActiveCheckbox: 'vn-check[label="Active"]',
|
|
|
|
priceInKgCheckbox: 'vn-check[label="Price in kg"]',
|
2019-10-18 19:36:30 +00:00
|
|
|
submitBasicDataButton: `button[type=submit]`
|
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"]',
|
2019-10-09 22:47:29 +00:00
|
|
|
fourthTagAutocomplete: 'vn-item-tags vn-horizontal:nth-child(4) > vn-autocomplete[ng-model="itemTag.tagFk"]',
|
2019-04-26 12:15:37 +00:00
|
|
|
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"]',
|
2019-10-09 22:47:29 +00:00
|
|
|
fifthTagAutocomplete: 'vn-item-tags vn-horizontal:nth-child(5) > vn-autocomplete[ng-model="itemTag.tagFk"]',
|
2019-04-26 12:15:37 +00:00
|
|
|
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',
|
2019-10-09 22:47:29 +00:00
|
|
|
sixthTagAutocomplete: 'vn-item-tags vn-horizontal:nth-child(6) > vn-autocomplete[ng-model="itemTag.tagFk"]',
|
2019-04-26 12:15:37 +00:00
|
|
|
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',
|
2019-10-09 22:47:29 +00:00
|
|
|
seventhTagAutocomplete: 'vn-item-tags vn-horizontal:nth-child(7) > vn-autocomplete[ng-model="itemTag.tagFk"]',
|
2019-04-26 12:15:37 +00:00
|
|
|
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-10-18 19:36:30 +00:00
|
|
|
submitItemTagsButton: `vn-item-tags button[type=submit]`
|
2018-02-27 18:00:46 +00:00
|
|
|
},
|
2018-02-26 12:43:07 +00:00
|
|
|
itemTax: {
|
2019-10-08 15:27:27 +00:00
|
|
|
undoChangesButton: 'vn-item-tax vn-button-bar > vn-button[label="Undo changes"]',
|
2019-10-09 22:47:29 +00:00
|
|
|
firstClassAutocomplete: 'vn-item-tax vn-horizontal:nth-child(1) > vn-autocomplete[ng-model="tax.taxClassFk"]',
|
|
|
|
secondClassAutocomplete: 'vn-item-tax vn-horizontal:nth-child(2) > vn-autocomplete[ng-model="tax.taxClassFk"]',
|
|
|
|
thirdClassAutocomplete: 'vn-item-tax vn-horizontal:nth-child(3) > vn-autocomplete[ng-model="tax.taxClassFk"]',
|
2019-10-18 19:36:30 +00:00
|
|
|
submitTaxButton: `vn-item-tax button[type=submit]`
|
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-10-18 19:36:30 +00:00
|
|
|
thirdCodeInput: `vn-item-barcode vn-horizontal:nth-child(3) > vn-textfield input`,
|
|
|
|
submitBarcodesButton: `vn-item-barcode button[type=submit]`,
|
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"]',
|
2019-10-09 22:47:29 +00:00
|
|
|
firstWarehouseAutocomplete: 'vn-item-niche vn-autocomplete[ng-model="niche.warehouseFk"]',
|
2019-04-26 12:15:37 +00:00
|
|
|
firstCodeInput: 'vn-item-niche vn-horizontal:nth-child(1) > vn-textfield[label="Code"] input',
|
2019-10-09 22:47:29 +00:00
|
|
|
secondWarehouseAutocomplete: 'vn-item-niche vn-horizontal:nth-child(2) > vn-autocomplete[ng-model="niche.warehouseFk"]',
|
2019-04-26 12:15:37 +00:00
|
|
|
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"]',
|
2019-10-09 22:47:29 +00:00
|
|
|
thirdWarehouseAutocomplete: 'vn-item-niche vn-horizontal:nth-child(3) > vn-autocomplete[ng-model="niche.warehouseFk"]',
|
2019-04-26 12:15:37 +00:00
|
|
|
thirdCodeInput: 'vn-item-niche vn-horizontal:nth-child(3) > vn-textfield[label="Code"] input',
|
2019-10-18 19:36:30 +00:00
|
|
|
submitNichesButton: `vn-item-niche button[type=submit]`
|
2018-02-21 10:03:55 +00:00
|
|
|
},
|
|
|
|
itemBotanical: {
|
2019-10-18 19:36:30 +00:00
|
|
|
botanicalInput: `vn-item-botanical vn-horizontal:nth-child(1) > vn-textfield input`,
|
2019-10-09 22:47:29 +00:00
|
|
|
genusAutocomplete: 'vn-item-botanical vn-autocomplete[ng-model="$ctrl.botanical.genusFk"]',
|
|
|
|
speciesAutocomplete: 'vn-item-botanical vn-autocomplete[ng-model="$ctrl.botanical.specieFk"]',
|
2019-10-18 19:36:30 +00:00
|
|
|
submitBotanicalButton: `vn-item-botanical button[type=submit]`
|
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-10-09 22:47:29 +00:00
|
|
|
warehouseAutocomplete: 'vn-item-diary vn-autocomplete[ng-model="$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-10-23 15:38:35 +00:00
|
|
|
header: 'vn-ticket-summary > vn-card > h5',
|
2019-06-27 13:33:15 +00:00
|
|
|
state: 'vn-ticket-summary vn-label-value[label="State"] > section > span',
|
2019-10-26 10:04:48 +00:00
|
|
|
route: 'vn-ticket-summary vn-label-value[label="Route"] > section > span > 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-09-30 09:30:54 +00:00
|
|
|
firstSaleDescriptorImage: '.vn-popover.shown vn-item-descriptor img',
|
|
|
|
itemDescriptorPopover: '.vn-popover.shown vn-item-descriptor',
|
|
|
|
itemDescriptorPopoverItemDiaryButton: 'vn-item-descriptor a[href="#!/item/2/diary?warehouseFk=5&ticketFk=20"]',
|
|
|
|
popoverDiaryButton: '.vn-popover.shown 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-10-23 15:38:35 +00:00
|
|
|
invoiceOutRef: 'vn-ticket-summary > vn-card > vn-horizontal > vn-one:nth-child(1) > vn-label-value:nth-child(6) > section > span',
|
2019-06-27 13:33:15 +00:00
|
|
|
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-11-10 13:13:55 +00:00
|
|
|
openAdvancedSearchButton: 'vn-searchbar .append vn-icon[icon="arrow_drop_down"]',
|
2019-10-09 22:47:29 +00:00
|
|
|
advancedSearchInvoiceOut: 'vn-ticket-search-panel vn-textfield[ng-model="filter.refFk"] input',
|
2019-01-20 17:48:03 +00:00
|
|
|
newTicketButton: 'vn-ticket-index > a',
|
2019-11-10 13:13:55 +00:00
|
|
|
searchResult: 'vn-ticket-index vn-card > 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-11-10 13:13:55 +00:00
|
|
|
searchResultDate: 'vn-ticket-index vn-table vn-tbody > a:nth-child(1) > vn-td:nth-child(5)',
|
|
|
|
searchTicketInput: `vn-searchbar input`,
|
|
|
|
searchWeeklyTicketInput: `vn-searchbar input`,
|
|
|
|
searchWeeklyClearInput: 'vn-searchbar vn-icon[icon=clear]',
|
2019-10-18 19:36:30 +00:00
|
|
|
advancedSearchButton: 'vn-ticket-search-panel button[type=submit]',
|
2019-11-10 13:13:55 +00:00
|
|
|
searchButton: 'vn-searchbar vn-icon[icon="search"]',
|
|
|
|
searchWeeklyButton: 'vn-searchbar vn-icon[icon="search"]',
|
2019-10-18 19:36:30 +00:00
|
|
|
moreMenu: 'vn-ticket-index vn-icon-menu[icon=more_vert]',
|
2019-11-11 15:32:03 +00:00
|
|
|
menuWeeklyTickets: 'vn-left-menu [ui-sref="ticket.weekly.index"]',
|
2019-10-09 22:47:29 +00:00
|
|
|
sixthWeeklyTicket: 'vn-ticket-weekly-index vn-table vn-tr:nth-child(6) vn-autocomplete[ng-model="weekly.weekDay"] input',
|
2019-07-29 11:12:36 +00:00
|
|
|
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-10-30 15:57:14 +00:00
|
|
|
acceptDeleteTurn: '.vn-confirm.shown button[response="accept"]'
|
2018-11-11 16:40:02 +00:00
|
|
|
},
|
2019-01-15 11:38:58 +00:00
|
|
|
createTicketView: {
|
2019-10-09 22:47:29 +00:00
|
|
|
clientAutocomplete: 'vn-ticket-create vn-autocomplete[ng-model="$ctrl.clientFk"]',
|
|
|
|
addressAutocomplete: 'vn-ticket-create vn-autocomplete[ng-model="$ctrl.addressFk"]',
|
|
|
|
deliveryDateInput: 'vn-ticket-create vn-date-picker[ng-model="$ctrl.landed"]',
|
|
|
|
warehouseAutocomplete: 'vn-ticket-create vn-autocomplete[ng-model="$ctrl.warehouseFk"]',
|
|
|
|
agencyAutocomplete: 'vn-ticket-create vn-autocomplete[ng-model="$ctrl.ticket.agencyModeFk"]',
|
2019-10-18 19:36:30 +00:00
|
|
|
createButton: `button[type=submit]`
|
2019-01-15 11:38:58 +00:00
|
|
|
},
|
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-10-18 19:36:30 +00:00
|
|
|
moreMenu: 'vn-ticket-descriptor vn-icon-menu[icon=more_vert]',
|
2019-10-28 16:31:33 +00:00
|
|
|
moreMenuAddStowaway: '.vn-drop-down.shown li[name="Add stowaway"]',
|
|
|
|
moreMenuDeleteStowawayButton: '.vn-drop-down.shown li[name="Remove stowaway"]',
|
|
|
|
moreMenuAddToTurn: '.vn-drop-down.shown li[name="Add turn"]',
|
|
|
|
moreMenuDeleteTicket: '.vn-drop-down.shown li[name="Delete ticket"]',
|
|
|
|
moreMenuMakeInvoice: '.vn-drop-down.shown li[name="Make invoice"]',
|
|
|
|
moreMenuChangeShippedHour: '.vn-drop-down.shown li[name="Change shipped hour"]',
|
|
|
|
changeShippedHourDialog: '.vn-dialog.shown',
|
|
|
|
changeShippedHourInput: '.vn-dialog.shown [ng-model="$ctrl.newShipped"]',
|
|
|
|
addStowawayDialogFirstTicket: '.vn-dialog.shown vn-table vn-tbody vn-tr',
|
2019-10-18 19:36:30 +00:00
|
|
|
shipButton: 'vn-ticket-descriptor vn-icon[icon="icon-stowaway"]',
|
2019-10-28 16:31:33 +00:00
|
|
|
thursdayButton: '.vn-popup.shown vn-tool-bar > vn-button:nth-child(4)',
|
|
|
|
saturdayButton: '.vn-popup.shown vn-tool-bar > vn-button:nth-child(6)',
|
2019-10-30 15:57:14 +00:00
|
|
|
acceptDeleteButton: '.vn-dialog.shown button[response="accept"]',
|
|
|
|
acceptChangeHourButton: '.vn-dialog.shown button[response="accept"]',
|
2019-08-21 07:32:21 +00:00
|
|
|
descriptorDeliveryDate: 'vn-ticket-descriptor > div > div.body > div.attributes > vn-label-value:nth-child(6) > section > span',
|
2019-10-30 15:57:14 +00:00
|
|
|
acceptInvoiceOutButton: '.vn-confirm.shown button[response="accept"]',
|
|
|
|
acceptDeleteStowawayButton: '.vn-dialog.shown 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"]',
|
2019-10-09 22:47:29 +00:00
|
|
|
firstNoteTypeAutocomplete: 'vn-autocomplete[ng-model="observation.observationTypeFk"]',
|
2019-04-26 12:15:37 +00:00
|
|
|
firstDescriptionInput: 'vn-textfield[label="Description"] input',
|
2019-10-18 19:36:30 +00:00
|
|
|
submitNotesButton: `button[type=submit]`
|
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"]',
|
2019-10-30 15:57:14 +00:00
|
|
|
acceptDeleteRowButton: '.vn-confirm.shown button[response=accept]',
|
2019-04-26 12:15:37 +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: {
|
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"]',
|
2019-10-11 15:38:04 +00:00
|
|
|
firstQuantityInput: 'vn-input-number[ng-model="package.quantity"] input',
|
2019-04-26 12:15:37 +00:00
|
|
|
firstRemovePackageButton: 'vn-icon-button[vn-tooltip="Remove package"]',
|
|
|
|
addPackageButton: 'vn-icon-button[vn-tooltip="Add package"]',
|
2019-10-08 21:57:02 +00:00
|
|
|
clearPackageAutocompleteButton: 'vn-autocomplete[label="Package"] .icons > vn-icon[icon=clear]',
|
2019-10-18 19:36:30 +00:00
|
|
|
savePackagesButton: `button[type=submit]`
|
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',
|
2019-09-30 09:30:54 +00:00
|
|
|
saleDescriptorPopover: '.vn-popover.shown vn-item-descriptor',
|
|
|
|
saleDescriptorPopoverSummaryButton: '.vn-popover.shown vn-item-descriptor 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"]',
|
2019-10-23 15:38:35 +00:00
|
|
|
newItemButton: 'vn-ticket-sale > vn-vertical > vn-card > 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',
|
2019-10-28 16:31:33 +00:00
|
|
|
moreMenuCreateClaim: '.vn-drop-down.shown li[name="Add claim"]',
|
|
|
|
moreMenuReserve: '.vn-drop-down.shown li[name="Mark as reserved"]',
|
|
|
|
moreMenuUnmarkReseved: '.vn-drop-down.shown li[name="Unmark as reserved"]',
|
|
|
|
moreMenuUpdateDiscount: '.vn-drop-down.shown li[name="Update discount"]',
|
|
|
|
moreMenuUpdateDiscountInput: '.vn-dialog.shown form vn-ticket-sale-edit-discount vn-input-number[ng-model="$ctrl.newDiscount"] input',
|
2019-09-30 09:30:54 +00:00
|
|
|
transferQuantityInput: '.vn-popover.shown vn-table > div > vn-tbody > vn-tr > vn-td-editable > span > text',
|
|
|
|
transferQuantityCell: '.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-09-30 09:30:54 +00:00
|
|
|
firstSaleDescriptorImage: '.vn-popover.shown 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-10-09 22:47:29 +00:00
|
|
|
firstSaleQuantity: 'vn-input-number[ng-model="sale.quantity"]:nth-child(1) input',
|
2019-07-02 10:12:15 +00:00
|
|
|
firstSaleQuantityCell: 'vn-ticket-sale vn-tr:nth-child(1) > vn-td-editable:nth-child(5)',
|
2019-10-09 22:47:29 +00:00
|
|
|
firstSaleQuantityClearInput: 'vn-textfield[ng-model="sale.quantity"] div.suffix > i',
|
2019-10-08 21:57:02 +00:00
|
|
|
firstSaleIdAutocomplete: 'vn-ticket-sale vn-table vn-tbody > vn-tr:nth-child(1) > vn-td:nth-child(4) > vn-autocomplete',
|
2019-10-28 16:31:33 +00:00
|
|
|
idAutocompleteFirstResult: '.vn-drop-down.shown li',
|
2019-09-06 09:43:15 +00:00
|
|
|
firstSalePrice: 'vn-ticket-sale vn-table vn-tr:nth-child(1) > vn-td:nth-child(7) > span',
|
2019-09-30 09:30:54 +00:00
|
|
|
firstSalePriceInput: '.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-10-14 09:51:26 +00:00
|
|
|
firstSaleColour: 'vn-ticket-sale 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-10-09 22:47:29 +00:00
|
|
|
firstSaleCheckbox: 'vn-ticket-sale vn-tr:nth-child(1) vn-check[ng-model="sale.checked"]',
|
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)',
|
2019-10-08 21:57:02 +00:00
|
|
|
secondSaleIdInput: 'vn-ticket-sale vn-table vn-tbody > vn-tr:nth-child(2) > vn-td:nth-child(4) > vn-autocomplete input',
|
|
|
|
secondSaleIdAutocomplete: 'vn-ticket-sale vn-table vn-tbody > vn-tr:nth-child(2) > vn-td:nth-child(4) > vn-autocomplete',
|
2019-09-06 09:43:15 +00:00
|
|
|
secondSaleQuantity: 'vn-ticket-sale vn-table vn-tr:nth-child(2) vn-input-number input',
|
2019-11-12 07:51:50 +00:00
|
|
|
secondSaleConceptCell: 'vn-ticket-sale vn-table vn-tbody > vn-tr:nth-child(2) > vn-td-editable:nth-child(6) > div',
|
2019-09-06 09:43:15 +00:00
|
|
|
secondSaleConceptInput: 'vn-ticket-sale vn-table vn-tr:nth-child(2) > vn-td-editable.ng-isolate-scope.selected vn-textfield input',
|
2019-10-23 15:38:35 +00:00
|
|
|
totalImport: 'vn-ticket-sale > vn-vertical > vn-card > vn-vertical > vn-horizontal > vn-one > p:nth-child(3) > strong',
|
2019-09-30 18:46:22 +00:00
|
|
|
selectAllSalesCheckbox: 'vn-ticket-sale vn-thead vn-check',
|
2019-10-09 22:47:29 +00:00
|
|
|
secondSaleCheckbox: 'vn-ticket-sale vn-tr:nth-child(2) vn-check[ng-model="sale.checked"]',
|
|
|
|
thirdSaleCheckbox: 'vn-ticket-sale vn-tr:nth-child(3) vn-check[ng-model="sale.checked"]',
|
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-10-09 22:47:29 +00:00
|
|
|
moveToTicketInput: '.vn-popover.shown vn-textfield[ng-model="$ctrl.transfer.ticketId"] input',
|
2019-09-30 09:30:54 +00:00
|
|
|
moveToTicketInputClearButton: '.vn-popover.shown i[title="Clear"]',
|
|
|
|
moveToTicketButton: '.vn-popover.shown vn-icon[icon="arrow_forward_ios"]',
|
|
|
|
moveToNewTicketButton: '.vn-popover.shown vn-button[label="New ticket"]',
|
2019-10-30 15:57:14 +00:00
|
|
|
acceptDeleteLineButton: '.vn-confirm.shown button[response=accept]',
|
|
|
|
acceptDeleteTicketButton: '.vn-confirm.shown 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"]',
|
2019-10-18 19:36:30 +00:00
|
|
|
createStateButton: `vn-float-button`,
|
2019-10-09 22:47:29 +00:00
|
|
|
stateAutocomplete: 'vn-ticket-tracking-edit vn-autocomplete[ng-model="$ctrl.stateFk"]',
|
2019-10-18 19:36:30 +00:00
|
|
|
saveButton: `button[type=submit]`,
|
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"]',
|
2019-10-09 22:47:29 +00:00
|
|
|
clientAutocomplete: 'vn-autocomplete[ng-model="$ctrl.clientFk"]',
|
|
|
|
addressAutocomplete: 'vn-autocomplete[ng-model="$ctrl.ticket.addressFk"]',
|
|
|
|
agencyAutocomplete: 'vn-autocomplete[ng-model="$ctrl.agencyModeId"]',
|
|
|
|
zoneAutocomplete: 'vn-autocomplete[ng-model="$ctrl.zoneId"]',
|
2019-10-18 19:36:30 +00:00
|
|
|
nextStepButton: 'vn-step-control .buttons > section:last-child vn-button',
|
|
|
|
finalizeButton: 'vn-step-control .buttons > section:last-child button[type=submit]',
|
2019-10-23 15:38:35 +00:00
|
|
|
stepTwoTotalPriceDif: 'vn-ticket-basic-data-step-two > form > vn-card > vn-horizontal > table > tfoot > tr > td:nth-child(4)',
|
2019-10-09 22:47:29 +00:00
|
|
|
chargesReasonAutocomplete: 'vn-autocomplete[ng-model="$ctrl.ticket.option"]',
|
2018-10-25 14:44:03 +00:00
|
|
|
},
|
|
|
|
ticketComponents: {
|
2019-10-11 15:38:04 +00:00
|
|
|
base: 'vn-ticket-components [name="base-sum"]'
|
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',
|
2019-10-11 15:38:04 +00:00
|
|
|
request: 'vn-ticket-request-index vn-table vn-tr',
|
2019-10-23 15:38:35 +00:00
|
|
|
descriptionInput: 'vn-ticket-request-create > form > div > vn-card > vn-horizontal:nth-child(1) > vn-textfield input',
|
2019-10-22 11:44:36 +00:00
|
|
|
atenderAutocomplete: 'vn-ticket-request-create vn-autocomplete[ng-model="$ctrl.ticketRequest.attenderFk"]',
|
2019-10-08 21:57:02 +00:00
|
|
|
quantityInput: 'vn-ticket-request-create vn-input-number input[name=quantity]',
|
|
|
|
priceInput: 'vn-ticket-request-create vn-input-number input[name=price]',
|
2019-04-26 12:15:37 +00:00
|
|
|
firstRemoveRequestButton: 'vn-ticket-request-index vn-icon[icon="delete"]:nth-child(1)',
|
2019-10-18 19:36:30 +00:00
|
|
|
saveButton: 'vn-ticket-request-create button[type=submit]',
|
2019-10-11 15:38:04 +00:00
|
|
|
firstDescription: 'vn-ticket-request-index vn-table vn-tr:nth-child(1) > vn-td:nth-child(2)',
|
2018-11-21 13:09:22 +00:00
|
|
|
|
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-10-01 14:17:57 +00:00
|
|
|
changedBy: 'vn-ticket-log > vn-log vn-tr:nth-child(1) > vn-td:nth-child(2) > span',
|
|
|
|
actionTaken: 'vn-ticket-log > vn-log vn-td:nth-child(1) > div > div:nth-child(3) > span.value',
|
|
|
|
id: 'vn-ticket-log > vn-log vn-td.before > vn-one:nth-child(1) > div > span.value'
|
2019-01-11 11:41:07 +00:00
|
|
|
},
|
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',
|
2019-10-18 19:36:30 +00:00
|
|
|
firstAddDescriptionButton: 'vn-ticket-service vn-icon-button[vn-tooltip="New service type"]',
|
2019-10-09 22:47:29 +00:00
|
|
|
firstDescriptionAutocomplete: 'vn-ticket-service vn-autocomplete[ng-model="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-10-11 15:38:04 +00:00
|
|
|
fistDeleteServiceButton: 'vn-ticket-service form vn-horizontal:nth-child(1) vn-icon-button[icon="delete"]',
|
2019-10-28 16:31:33 +00:00
|
|
|
newDescriptionInput: '.vn-dialog.shown vn-textfield[ng-model="$ctrl.newServiceType.name"] input',
|
2019-10-23 15:38:35 +00:00
|
|
|
serviceLine: 'vn-ticket-service > form > vn-card > vn-one:nth-child(2) > vn-horizontal',
|
2019-10-18 19:36:30 +00:00
|
|
|
saveServiceButton: `button[type=submit]`,
|
2019-10-28 16:31:33 +00:00
|
|
|
saveDescriptionButton: '.vn-dialog.shown tpl-buttons > button'
|
2019-01-14 10:19:39 +00:00
|
|
|
},
|
2018-04-05 12:14:34 +00:00
|
|
|
createStateView: {
|
2019-10-09 22:47:29 +00:00
|
|
|
stateAutocomplete: 'vn-autocomplete[ng-model="$ctrl.stateFk"]',
|
|
|
|
workerAutocomplete: 'vn-autocomplete[ng-model="$ctrl.workerFk"]',
|
|
|
|
clearStateInputButton: 'vn-autocomplete[ng-model="$ctrl.stateFk"] .icons > vn-icon[icon=clear]',
|
2019-10-18 19:36:30 +00:00
|
|
|
saveStateButton: `button[type=submit]`
|
2018-09-04 09:38:48 +00:00
|
|
|
},
|
|
|
|
claimsIndex: {
|
2019-11-10 13:13:55 +00:00
|
|
|
searchClaimInput: `vn-searchbar input`,
|
|
|
|
searchResult: 'vn-claim-index vn-card > vn-table > div > vn-tbody > a',
|
|
|
|
searchButton: 'vn-searchbar vn-icon[icon="search"]'
|
2018-09-04 09:38:48 +00:00
|
|
|
},
|
2019-06-28 12:01:43 +00:00
|
|
|
claimDescriptor: {
|
2019-10-18 19:36:30 +00:00
|
|
|
moreMenu: 'vn-claim-descriptor vn-icon-menu[icon=more_vert]',
|
2019-10-28 16:31:33 +00:00
|
|
|
moreMenuDeleteClaim: '.vn-drop-down.shown li[name="Delete claim"]',
|
2019-10-30 15:57:14 +00:00
|
|
|
acceptDeleteClaim: '.vn-confirm.shown button[response="accept"]'
|
2019-06-28 12:01:43 +00:00
|
|
|
},
|
2019-06-28 10:51:34 +00:00
|
|
|
claimSummary: {
|
2019-10-23 15:38:35 +00:00
|
|
|
header: 'vn-claim-summary > vn-card > h5',
|
2019-06-28 10:51:34 +00:00
|
|
|
state: 'vn-claim-summary vn-label-value[label="State"] > section > span',
|
2019-10-11 15:38:04 +00:00
|
|
|
observation: 'vn-claim-summary vn-textarea[ng-model="$ctrl.summary.claim.observation"] textarea',
|
2019-10-18 07:53:30 +00:00
|
|
|
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',
|
2019-09-30 09:30:54 +00:00
|
|
|
firstSaleDescriptorImage: '.vn-popover.shown vn-item-descriptor img',
|
|
|
|
itemDescriptorPopover: '.vn-popover.shown vn-item-descriptor',
|
|
|
|
itemDescriptorPopoverItemDiaryButton: '.vn-popover.shown vn-item-descriptor a[href="#!/item/2/diary"]',
|
2019-10-18 07:53:30 +00:00
|
|
|
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-10-22 11:44:36 +00:00
|
|
|
firstDevelopmentWorkerGoToClientButton: '.vn-popover.shown vn-worker-descriptor vn-quick-links > a[href="#!/client/21/summary"]',
|
2019-10-23 15:38:35 +00:00
|
|
|
firstActionTicketId: 'vn-claim-summary > vn-card > vn-horizontal > vn-auto:nth-child(6) vn-table > div > vn-tbody > vn-tr > vn-td:nth-child(2) > span',
|
2019-09-30 09:30:54 +00:00
|
|
|
firstActionTicketDescriptor: '.vn-popover.shown vn-ticket-descriptor'
|
2019-06-28 10:51:34 +00:00
|
|
|
},
|
2018-09-04 09:38:48 +00:00
|
|
|
claimBasicData: {
|
2019-10-09 22:47:29 +00:00
|
|
|
claimStateAutocomplete: 'vn-claim-basic-data vn-autocomplete[ng-model="$ctrl.claim.claimStateFk"]',
|
2019-10-18 19:36:30 +00:00
|
|
|
responsabilityInputRange: 'vn-range',
|
2019-10-09 22:47:29 +00:00
|
|
|
observationInput: 'vn-textarea[ng-model="$ctrl.claim.observation"] textarea',
|
2019-10-18 19:36:30 +00:00
|
|
|
saveButton: `button[type=submit]`
|
2018-09-04 09:38:48 +00:00
|
|
|
},
|
2019-01-22 10:54:17 +00:00
|
|
|
claimDetail: {
|
2019-10-23 15:38:35 +00:00
|
|
|
secondItemDiscount: 'vn-claim-detail > vn-vertical > vn-card > vn-vertical > vn-table > div > vn-tbody > vn-tr:nth-child(2) > vn-td:nth-child(6) > span',
|
2019-10-11 15:38:04 +00:00
|
|
|
discountInput: '.vn-popover.shown vn-input-number[ng-model="$ctrl.newDiscount"] input',
|
2019-09-30 09:30:54 +00:00
|
|
|
discoutPopoverMana: '.vn-popover.shown .content > div > vn-horizontal > h5',
|
2019-04-26 12:15:37 +00:00
|
|
|
addItemButton: 'vn-claim-detail a vn-float-button',
|
2019-10-28 16:31:33 +00:00
|
|
|
firstClaimableSaleFromTicket: '.vn-dialog.shown vn-tbody > vn-tr',
|
2019-10-23 15:38:35 +00:00
|
|
|
claimDetailLine: 'vn-claim-detail > vn-vertical > vn-card > vn-vertical > vn-table > div > vn-tbody > vn-tr',
|
2019-10-09 22:47:29 +00:00
|
|
|
firstItemQuantityInput: 'vn-claim-detail vn-tr:nth-child(1) vn-input-number[ng-model="saleClaimed.quantity"] input',
|
2019-10-23 15:38:35 +00:00
|
|
|
totalClaimed: 'vn-claim-detail > vn-vertical > vn-card > vn-vertical > vn-horizontal > div > vn-label-value:nth-child(2) > section > span',
|
|
|
|
secondItemDeleteButton: 'vn-claim-detail > vn-vertical > vn-card > 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: {
|
2019-10-23 15:38:35 +00:00
|
|
|
addDevelopmentButton: 'vn-claim-development > vn-vertical > vn-card > vn-vertical > vn-one > vn-icon-button > button > vn-icon',
|
|
|
|
firstDeleteDevelopmentButton: 'vn-claim-development > vn-vertical > vn-card > vn-vertical > form > vn-horizontal:nth-child(2) > vn-icon-button > button > vn-icon',
|
2019-10-09 22:47:29 +00:00
|
|
|
firstClaimReasonAutocomplete: 'vn-claim-development vn-horizontal:nth-child(1) vn-autocomplete[ng-model="claimDevelopment.claimReasonFk"]',
|
|
|
|
firstClaimResultAutocomplete: 'vn-claim-development vn-horizontal:nth-child(1) vn-autocomplete[ng-model="claimDevelopment.claimResultFk"]',
|
|
|
|
firstClaimResponsibleAutocomplete: 'vn-claim-development vn-horizontal:nth-child(1) vn-autocomplete[ng-model="claimDevelopment.claimResponsibleFk"]',
|
|
|
|
firstClaimWorkerAutocomplete: 'vn-claim-development vn-horizontal:nth-child(1) vn-autocomplete[ng-model="claimDevelopment.workerFk"]',
|
|
|
|
firstClaimRedeliveryAutocomplete: 'vn-claim-development vn-horizontal:nth-child(1) vn-autocomplete[ng-model="claimDevelopment.claimRedeliveryFk"]',
|
|
|
|
secondClaimReasonAutocomplete: 'vn-claim-development vn-horizontal:nth-child(2) vn-autocomplete[ng-model="claimDevelopment.claimReasonFk"]',
|
|
|
|
secondClaimResultAutocomplete: 'vn-claim-development vn-horizontal:nth-child(2) vn-autocomplete[ng-model="claimDevelopment.claimResultFk"]',
|
|
|
|
secondClaimResponsibleAutocomplete: 'vn-claim-development vn-horizontal:nth-child(2) vn-autocomplete[ng-model="claimDevelopment.claimResponsibleFk"]',
|
|
|
|
secondClaimWorkerAutocomplete: 'vn-claim-development vn-horizontal:nth-child(2) vn-autocomplete[ng-model="claimDevelopment.workerFk"]',
|
|
|
|
secondClaimRedeliveryAutocomplete: 'vn-claim-development vn-horizontal:nth-child(2) vn-autocomplete[ng-model="claimDevelopment.claimRedeliveryFk"]',
|
2019-10-18 19:36:30 +00:00
|
|
|
saveDevelopmentButton: `button[type=submit]`
|
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"]',
|
2019-09-30 09:30:54 +00:00
|
|
|
secondImportableTicket: '.vn-popover.shown .content > div > vn-table > div > vn-tbody > vn-tr:nth-child(2)',
|
2019-10-09 22:47:29 +00:00
|
|
|
firstLineDestination: 'vn-claim-action vn-tr:nth-child(1) vn-autocomplete[ng-model="saleClaimed.claimDestinationFk"]',
|
|
|
|
secondLineDestination: 'vn-claim-action vn-tr:nth-child(2) vn-autocomplete[ng-model="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-10-09 22:47:29 +00:00
|
|
|
isPaidWithManaCheckbox: 'vn-check[ng-model="$ctrl.claim.isChargedToMana"]'
|
2019-02-25 10:47:28 +00:00
|
|
|
},
|
2019-01-09 12:49:37 +00:00
|
|
|
ordersIndex: {
|
2019-11-10 13:13:55 +00:00
|
|
|
searchResult: 'vn-order-index vn-card > 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-10-18 19:36:30 +00:00
|
|
|
searchOrderInput: `vn-order-index vn-textfield input`,
|
2019-11-10 13:13:55 +00:00
|
|
|
searchButton: 'vn-searchbar vn-icon[icon="search"]',
|
2019-10-18 19:36:30 +00:00
|
|
|
createOrderButton: `vn-float-button`,
|
2019-01-09 12:49:37 +00:00
|
|
|
},
|
2019-08-29 11:16:38 +00:00
|
|
|
orderDescriptor: {
|
|
|
|
returnToModuleIndexButton: 'vn-order-descriptor a[ui-sref="order.index"]',
|
2019-10-30 15:57:14 +00:00
|
|
|
acceptNavigationButton: '.vn-confirm.shown button[response=accept]'
|
2019-08-29 11:16:38 +00:00
|
|
|
},
|
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-10-08 21:57:02 +00:00
|
|
|
landedDatePicker: 'vn-date-picker[label="Landed"]',
|
2019-10-18 19:36:30 +00:00
|
|
|
createButton: `button[type=submit]`,
|
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"]',
|
2019-10-09 22:47:29 +00:00
|
|
|
itemIdInput: 'vn-catalog-filter vn-textfield[ng-model="$ctrl.itemFk"] input',
|
|
|
|
itemTagValueInput: 'vn-catalog-filter vn-textfield[ng-model="$ctrl.value"] input',
|
2019-10-11 15:38:04 +00:00
|
|
|
openTagSearch: 'vn-catalog-filter > div > vn-vertical > vn-textfield[ng-model="$ctrl.value"] .append i',
|
2019-10-09 22:47:29 +00:00
|
|
|
tagAutocomplete: 'vn-order-catalog-search-panel vn-autocomplete[ng-model="filter.tagFk"]',
|
|
|
|
tagValueInput: 'vn-order-catalog-search-panel vn-textfield[ng-model="filter.value"] input',
|
2019-10-18 19:36:30 +00:00
|
|
|
searchTagButton: 'vn-order-catalog-search-panel button[type=submit]',
|
|
|
|
thirdFilterRemoveButton: 'vn-catalog-filter .chips > vn-chip:nth-child(3) vn-icon[icon=cancel]',
|
|
|
|
fourthFilterRemoveButton: 'vn-catalog-filter .chips > vn-chip:nth-child(4) vn-icon[icon=cancel]',
|
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-10-18 19:36:30 +00:00
|
|
|
saveButton: `button[type=submit]`,
|
2019-10-30 15:57:14 +00:00
|
|
|
acceptButton: '.vn-confirm.shown button[response="accept"]'
|
2018-11-15 13:15:34 +00:00
|
|
|
},
|
2019-02-11 13:51:42 +00:00
|
|
|
orderLine: {
|
2019-10-28 16:31:33 +00:00
|
|
|
orderSubtotal: 'vn-order-line .header :first-child',
|
2019-02-11 13:51:42 +00:00
|
|
|
firstLineDeleteButton: 'vn-order-line vn-tbody > vn-tr:nth-child(1) vn-icon[icon="delete"]',
|
2019-10-28 16:31:33 +00:00
|
|
|
confirmOrder: 'vn-order-line vn-float-button',
|
2019-10-30 15:57:14 +00:00
|
|
|
confirmButton: '.vn-confirm.shown button[response="accept"]',
|
2019-02-11 13:51:42 +00:00
|
|
|
},
|
2019-03-29 15:29:18 +00:00
|
|
|
routeIndex: {
|
|
|
|
addNewRouteButton: 'vn-route-index > a[ui-sref="route.create"]'
|
|
|
|
},
|
|
|
|
createRouteView: {
|
2019-10-09 22:47:29 +00:00
|
|
|
workerAutocomplete: 'vn-route-create vn-autocomplete[ng-model="$ctrl.route.workerFk"]',
|
|
|
|
createdDatePicker: 'vn-route-create vn-date-picker[ng-model="$ctrl.route.created"]',
|
|
|
|
vehicleAutoComplete: 'vn-route-create vn-autocomplete[ng-model="$ctrl.route.vehicleFk"]',
|
|
|
|
agencyAutoComplete: 'vn-route-create vn-autocomplete[ng-model="$ctrl.route.agencyModeFk"]',
|
|
|
|
descriptionInput: 'vn-route-create vn-textfield[ng-model="$ctrl.route.description"] input',
|
2019-10-18 19:36:30 +00:00
|
|
|
submitButton: 'vn-route-create button[type=submit]'
|
2019-03-29 15:29:18 +00:00
|
|
|
},
|
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: {
|
2019-10-23 15:38:35 +00:00
|
|
|
routeId: 'vn-route-summary > vn-card > vn-horizontal > vn-one:nth-child(1) > vn-label-value:nth-child(1) > section > span'
|
2019-03-29 15:29:18 +00:00
|
|
|
},
|
2019-03-25 09:07:10 +00:00
|
|
|
routeBasicData: {
|
2019-10-09 22:47:29 +00:00
|
|
|
workerAutoComplete: 'vn-route-basic-data vn-autocomplete[ng-model="$ctrl.route.workerFk"]',
|
|
|
|
vehicleAutoComplete: 'vn-route-basic-data vn-autocomplete[ng-model="$ctrl.route.vehicleFk"]',
|
|
|
|
agencyAutoComplete: 'vn-route-basic-data vn-autocomplete[ng-model="$ctrl.route.agencyModeFk"]',
|
|
|
|
kmStartInput: 'vn-route-basic-data vn-input-number[ng-model="$ctrl.route.kmStart"] input',
|
|
|
|
kmEndInput: 'vn-route-basic-data vn-input-number[ng-model="$ctrl.route.kmEnd"] input',
|
|
|
|
createdDateInput: 'vn-route-basic-data vn-date-picker[ng-model="$ctrl.route.created"]',
|
|
|
|
startedHourInput: 'vn-route-basic-data vn-input-time[ng-model="$ctrl.route.started"] input',
|
|
|
|
finishedHourInput: 'vn-route-basic-data vn-input-time[ng-model="$ctrl.route.finished"] input',
|
2019-10-18 19:36:30 +00:00
|
|
|
saveButton: 'vn-route-basic-data button[type=submit]'
|
2019-04-08 13:38:47 +00:00
|
|
|
},
|
|
|
|
routeTickets: {
|
2019-10-09 22:47:29 +00:00
|
|
|
firstTicketPriority: 'vn-route-tickets vn-tr:nth-child(1) vn-textfield[ng-model="ticket.priority"] input',
|
|
|
|
secondTicketPriority: 'vn-route-tickets vn-tr:nth-child(2) vn-textfield[ng-model="ticket.priority"] input',
|
|
|
|
thirdTicketPriority: 'vn-route-tickets vn-tr:nth-child(3) vn-textfield[ng-model="ticket.priority"] input',
|
|
|
|
fourthTicketPriority: 'vn-route-tickets vn-tr:nth-child(4) vn-textfield[ng-model="ticket.priority"] input',
|
|
|
|
eleventhTicketPriority: 'vn-route-tickets vn-tr:nth-child(11) vn-textfield[ng-model="ticket.priority"] input',
|
2019-09-30 18:46:22 +00:00
|
|
|
firstTicketCheckbox: 'vn-route-tickets vn-tr:nth-child(1) vn-check',
|
2019-04-08 13:38:47 +00:00
|
|
|
buscamanButton: 'vn-route-tickets vn-button[icon="icon-buscaman"]',
|
|
|
|
firstTicketDeleteButton: 'vn-route-tickets vn-tr:nth-child(1) vn-icon[icon="delete"]',
|
2019-10-30 15:57:14 +00:00
|
|
|
confirmButton: '.vn-confirm.shown button[response="accept"]'
|
2019-06-04 05:57:01 +00:00
|
|
|
},
|
|
|
|
workerPbx: {
|
2019-10-09 22:47:29 +00:00
|
|
|
extensionInput: 'vn-worker-pbx vn-textfield[ng-model="$ctrl.worker.sip.extension"] input',
|
2019-10-18 19:36:30 +00:00
|
|
|
saveButton: 'vn-worker-pbx button[type=submit]'
|
2019-06-04 05:57:01 +00:00
|
|
|
},
|
|
|
|
workerTimeControl: {
|
2019-10-16 07:54:02 +00:00
|
|
|
timeDialogInput: '.vn-dialog.shown [ng-model="$ctrl.newTime"]',
|
2019-10-23 15:38:35 +00:00
|
|
|
mondayAddTimeButton: 'vn-worker-time-control vn-table > div > vn-tfoot > vn-tr:nth-child(2) > vn-td:nth-child(1) > vn-icon-button',
|
|
|
|
tuesdayAddTimeButton: 'vn-worker-time-control vn-table > div > vn-tfoot > vn-tr:nth-child(2) > vn-td:nth-child(2) > vn-icon-button',
|
|
|
|
wednesdayAddTimeButton: 'vn-worker-time-control vn-table > div > vn-tfoot > vn-tr:nth-child(2) > vn-td:nth-child(3) > vn-icon-button',
|
|
|
|
thursdayAddTimeButton: 'vn-worker-time-control vn-table > div > vn-tfoot > vn-tr:nth-child(2) > vn-td:nth-child(4) > vn-icon-button',
|
|
|
|
fridayAddTimeButton: 'vn-worker-time-control vn-table > div > vn-tfoot > vn-tr:nth-child(2) > vn-td:nth-child(5) > vn-icon-button',
|
|
|
|
saturdayAddTimeButton: 'vn-worker-time-control vn-table > div > vn-tfoot > vn-tr:nth-child(2) > vn-td:nth-child(6) > vn-icon-button',
|
|
|
|
sundayAddTimeButton: 'vn-worker-time-control vn-table > div > vn-tfoot > vn-tr:nth-child(2) > vn-td:nth-child(7) > vn-icon-button',
|
2019-10-28 16:31:33 +00:00
|
|
|
confirmButton: '.vn-dialog.shown tpl-buttons > button',
|
2019-10-23 15:38:35 +00:00
|
|
|
firstEntryOfMonday: 'vn-worker-time-control vn-table > div > vn-tbody > vn-tr > vn-td:nth-child(1) > section:nth-child(1) > span',
|
|
|
|
firstEntryOfTuesday: 'vn-worker-time-control vn-table > div > vn-tbody > vn-tr > vn-td:nth-child(2) > section:nth-child(1) > span',
|
|
|
|
firstEntryOfWednesday: 'vn-worker-time-control vn-table > div > vn-tbody > vn-tr > vn-td:nth-child(3) > section:nth-child(1) > span',
|
|
|
|
firstEntryOfThursday: 'vn-worker-time-control vn-table > div > vn-tbody > vn-tr > vn-td:nth-child(4) > section:nth-child(1) > span',
|
|
|
|
firstEntryOfFriday: 'vn-worker-time-control vn-table > div > vn-tbody > vn-tr > vn-td:nth-child(5) > section:nth-child(1) > span',
|
|
|
|
firstEntryOfSaturday: 'vn-worker-time-control vn-table > div > vn-tbody > vn-tr > vn-td:nth-child(6) > section:nth-child(1) > span',
|
|
|
|
firstEntryOfSunday: 'vn-worker-time-control vn-table > div > vn-tbody > vn-tr > vn-td:nth-child(7) > section:nth-child(1) > span',
|
|
|
|
secondEntryOfMonday: 'vn-worker-time-control vn-table > div > vn-tbody > vn-tr > vn-td:nth-child(1) > section:nth-child(2) > span',
|
|
|
|
secondEntryOfTuesday: 'vn-worker-time-control vn-table > div > vn-tbody > vn-tr > vn-td:nth-child(2) > section:nth-child(2) > span',
|
|
|
|
secondEntryOfWednesday: 'vn-worker-time-control vn-table > div > vn-tbody > vn-tr > vn-td:nth-child(3) > section:nth-child(2) > span',
|
|
|
|
secondEntryOfThursday: 'vn-worker-time-control vn-table > div > vn-tbody > vn-tr > vn-td:nth-child(4) > section:nth-child(2) > span',
|
|
|
|
secondEntryOfFriday: 'vn-worker-time-control vn-table > div > vn-tbody > vn-tr > vn-td:nth-child(5) > section:nth-child(2) > span',
|
|
|
|
secondEntryOfSaturday: 'vn-worker-time-control vn-table > div > vn-tbody > vn-tr > vn-td:nth-child(6) > section:nth-child(2) > span',
|
|
|
|
secondEntryOfSunday: 'vn-worker-time-control vn-table > div > vn-tbody > vn-tr > vn-td:nth-child(7) > section:nth-child(2) > span',
|
|
|
|
thirdEntryOfMonday: 'vn-worker-time-control vn-table > div > vn-tbody > vn-tr > vn-td:nth-child(1) > section:nth-child(3) > span',
|
|
|
|
thirdEntryOfTuesday: 'vn-worker-time-control vn-table > div > vn-tbody > vn-tr > vn-td:nth-child(2) > section:nth-child(3) > span',
|
|
|
|
thirdEntryOfWednesday: 'vn-worker-time-control vn-table > div > vn-tbody > vn-tr > vn-td:nth-child(3) > section:nth-child(3) > span',
|
|
|
|
thirdEntryOfThursday: 'vn-worker-time-control vn-table > div > vn-tbody > vn-tr > vn-td:nth-child(4) > section:nth-child(3) > span',
|
|
|
|
thirdEntryOfFriday: 'vn-worker-time-control vn-table > div > vn-tbody > vn-tr > vn-td:nth-child(5) > section:nth-child(3) > span',
|
|
|
|
thirdEntryOfSaturday: 'vn-worker-time-control vn-table > div > vn-tbody > vn-tr > vn-td:nth-child(6) > section:nth-child(3) > span',
|
|
|
|
thirdEntryOfSunday: 'vn-worker-time-control vn-table > div > vn-tbody > vn-tr > vn-td:nth-child(7) > section:nth-child(3) > span',
|
|
|
|
fourthEntryOfMonday: 'vn-worker-time-control vn-table > div > vn-tbody > vn-tr > vn-td:nth-child(1) > section:nth-child(4) > span',
|
|
|
|
fourthEntryOfTuesday: 'vn-worker-time-control vn-table > div > vn-tbody > vn-tr > vn-td:nth-child(2) > section:nth-child(4) > span',
|
|
|
|
fourthEntryOfWednesday: 'vn-worker-time-control vn-table > div > vn-tbody > vn-tr > vn-td:nth-child(3) > section:nth-child(4) > span',
|
|
|
|
fourthEntryOfThursday: 'vn-worker-time-control vn-table > div > vn-tbody > vn-tr > vn-td:nth-child(4) > section:nth-child(4) > span',
|
|
|
|
fourthEntryOfFriday: 'vn-worker-time-control vn-table > div > vn-tbody > vn-tr > vn-td:nth-child(5) > section:nth-child(4) > span',
|
|
|
|
fourthEntryOfSaturday: 'vn-worker-time-control vn-table > div > vn-tbody > vn-tr > vn-td:nth-child(6) > section:nth-child(4) > span',
|
|
|
|
fourthEntryOfSunday: 'vn-worker-time-control vn-table > div > vn-tbody > vn-tr > vn-td:nth-child(7) > section:nth-child(4) > span',
|
|
|
|
mondayWorkedHours: 'vn-worker-time-control vn-table > div > vn-tfoot > vn-tr:nth-child(1) > vn-td:nth-child(1)',
|
|
|
|
tuesdayWorkedHours: 'vn-worker-time-control vn-table > div > vn-tfoot > vn-tr:nth-child(1) > vn-td:nth-child(2)',
|
|
|
|
wednesdayWorkedHours: 'vn-worker-time-control vn-table > div > vn-tfoot > vn-tr:nth-child(1) > vn-td:nth-child(3)',
|
|
|
|
thursdayWorkedHours: 'vn-worker-time-control vn-table > div > vn-tfoot > vn-tr:nth-child(1) > vn-td:nth-child(4)',
|
|
|
|
fridayWorkedHours: 'vn-worker-time-control vn-table > div > vn-tfoot > vn-tr:nth-child(1) > vn-td:nth-child(5)',
|
|
|
|
saturdayWorkedHours: 'vn-worker-time-control vn-table > div > vn-tfoot > vn-tr:nth-child(1) > vn-td:nth-child(6)',
|
|
|
|
sundayWorkedHours: 'vn-worker-time-control vn-table > div > vn-tfoot > vn-tr:nth-child(1) > vn-td:nth-child(7)',
|
|
|
|
weekWorkedHours: 'vn-worker-time-control vn-side-menu vn-label-value > section > span',
|
|
|
|
nextMonthButton: 'vn-worker-time-control vn-side-menu vn-calendar vn-button[icon=keyboard_arrow_right]',
|
2019-10-23 16:39:44 +00:00
|
|
|
secondWeekDay: 'vn-worker-time-control vn-side-menu vn-calendar .day:nth-child(8) > .day-number',
|
2019-06-04 05:57:01 +00:00
|
|
|
navigateBackToIndex: 'vn-worker-descriptor vn-icon[icon="chevron_left"]'
|
2019-06-10 14:58:08 +00:00
|
|
|
},
|
|
|
|
invoiceOutIndex: {
|
2019-11-10 13:13:55 +00:00
|
|
|
searchInvoiceOutInput: `vn-searchbar input`,
|
|
|
|
searchButton: 'vn-searchbar vn-icon[icon="search"]',
|
|
|
|
searchResult: 'vn-invoice-out-index vn-card > vn-table > div > vn-tbody > a.vn-tr',
|
2019-06-10 14:58:08 +00:00
|
|
|
},
|
|
|
|
invoiceOutDescriptor: {
|
2019-10-18 19:36:30 +00:00
|
|
|
moreMenu: 'vn-invoice-out-descriptor vn-icon-menu[icon=more_vert]',
|
2019-10-28 16:31:33 +00:00
|
|
|
moreMenuDeleteInvoiceOut: '.vn-drop-down.shown li[name="Delete Invoice"]',
|
|
|
|
moreMenuBookInvoiceOut: '.vn-drop-down.shown li[name="Book invoice"]',
|
|
|
|
moreMenuShowInvoiceOutPdf: '.vn-drop-down.shown li[name="Show invoice PDF"]',
|
2019-10-30 15:57:14 +00:00
|
|
|
acceptDeleteButton: '.vn-confirm.shown button[response="accept"]',
|
|
|
|
acceptBookingButton: '.vn-confirm.shown button[response="accept"]'
|
2019-06-10 14:58:08 +00:00
|
|
|
},
|
|
|
|
invoiceOutSummary: {
|
2019-10-23 15:38:35 +00:00
|
|
|
bookedLabel: 'vn-invoice-out-summary > vn-card > 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
|
|
|
};
|