diff --git a/src/components/ADempiere/ActionMenu/Actions.vue b/src/components/ADempiere/ActionMenu/Actions.vue index 6f5ed4e3bda..533533dfca9 100644 --- a/src/components/ADempiere/ActionMenu/Actions.vue +++ b/src/components/ADempiere/ActionMenu/Actions.vue @@ -49,6 +49,7 @@ v-for="(action, index) in actionsList" :key="index" :command="action" + :disabled="!action.enabled" :divided="true" >
diff --git a/src/lang/ADempiere/en.js b/src/lang/ADempiere/en.js deleted file mode 100644 index a3a57a69d94..00000000000 --- a/src/lang/ADempiere/en.js +++ /dev/null @@ -1,672 +0,0 @@ -export default { - language: 'Language', - route: { - dashboard: 'Dashboard', - calendar: 'Calendar', - documentation: 'Documentation', - guide: 'Guide', - forgotPassword: 'Forgot Password?', - userEnrollment: 'Check in', - page401: '401', - page404: '404', - profile: 'Profile', - ProcessActivity: 'Process Logs', - withoutLog: 'No Error Log Found', - ProductInfo: 'Product Information', - role: 'Role', - organization: 'Organization', - warehouse: 'Warehouse', - reportViewer: 'Report Viewer', - PriceChecking: 'Price checking' - }, - notifications: { - // simplex - completed: 'Completed', - loading: 'Loading', - succesful: ' Successful ', - error: ' Error ', - opened: 'Opened', - totalProcess: 'Total Processor Records ', - // search - searching: 'Searching records on the server', - succcessSearch: 'The search has been made', - searchWithOutRecords: 'The search ended without results', - errorSearch: 'The search has not been completed', - // process - processing: 'Processing', - processExecuted: 'Executed, see process logs', - processError: 'Was not executed', - // - emptyValues: 'Parameter(s) empty value', - fieldCannotBeEmpty: 'The field value cannot be empty.', - fieldMandatory: 'The field is mandatory', - requestError: 'Error executing the request', - successChangeRole: 'The role has been changed', - errorChangeRole: 'The role has not been changed', - copySuccessful: 'Copied', - copyUnsuccessful: 'Error, unable to copy', - mandatoryFieldMissing: 'Missing fill in the fields ', - updateFields: 'The record is updated with the field ', - updateSuccessfully: 'Successfully made changes', - invalidEmailFormat: 'Invalid email format', - recordLocked: 'This record has been locked', - recordUnlocked: 'This record has been unlocked', - noRoleAccess: 'With your current role and settings, you cannot view this information.', - errorPointOfSale: 'No point of sale selected' - }, - navbar: { - badge: { - Notifications: 'Notifications', - link: 'Go to Procces Logs' - }, - dashboard: 'Dashboard', - github: 'Github', - logOut: 'Log Out', - profile: 'Profile', - theme: 'Theme', - size: 'Global Size' - }, - login: { - noValidUser: 'Please enter the correct user name', - noValidPassword: 'The password can not be empty', - invalidLogin: 'User Id or Password invalid', - unexpectedError: 'An unexpected error has occurred, try again', - capsLock: 'Caps lock is On', - title: 'Login Form', - submit: 'Submit', - logIn: 'Login', - name: 'Name', - lastName: 'Last name', - eMail: 'Email', - userName: 'User name', - userNameOrEmail: 'User name or Email', - userEnrollment: 'Enrollment user', - userEnrollmentSuccessful: 'Successful user enrollment, check your email', - passwordResetSendLink: 'The link to reset the password was sent to the email ', - password: 'Password', - passwordNew: 'New password', - passwordConfirm: 'Password confirm', - passwordConfirmNew: 'New password confirm', - any: 'any', - thirdparty: 'Or connect with', - thirdpartyTips: 'Can not be simulated on local, so please combine you own business simulation.', - invalidToken: 'The token used is invalid.', - passwordReset: 'Password Reset', - createPassword: 'Create password', - passwordResetSuccessful: 'Password reset was successful', - passwordAndConfirmNotMatch: 'The new password and your confirmation do not match.' - }, - documentation: { - documentation: 'Documentation', - github: 'Github Repository', - releases: 'Releases', - branches: 'Branches', - code: 'Code', - issues: 'Issues', - downloadZip: 'Download Zip', - releaseNotes: 'Release Notes', - goRepository: 'go to repository', - seeDocumentation: 'See documentation' - }, - permission: { - addRole: 'New Role', - editPermission: 'Edit', - roles: 'Your roles', - switchRoles: 'Switch roles', - tips: 'In some cases, using v-permission will have no effect. For example: Element-UI el-tab or el-table-column and other scenes that dynamically render dom. You can only do this with v-if.', - delete: 'Delete', - confirm: 'Confirm', - cancel: 'Cancel' - }, - guide: { - description: 'The guide page is useful for some people who entered the project for the first time. You can briefly introduce the features of the project. Demo is based on ', - button: 'Show Guide' - }, - components: { - date: { - Today: 'Today', - Yesterday: 'Yesterday', - Week: 'Last week', - LastMonth: 'Last month', - CurrentMonth: 'The current month' - }, - documentation: 'Documentation', - binaryButton: 'Upload file', - binaryTip: 'Only files with a size smaller than 500kb', - imageError: 'The image exceeds 2MB and does not comply with the valid formats!', - contextMenuRelations: 'Relations', - contextMenuActions: 'Actions', - contextMenuReferences: 'References', - withOutReferences: 'Without references for record', - RunProcess: 'Run', - ChangeParameters: 'Change Parameters', - RunProcessAs: 'Run As', - ExportTo: 'Export to', - contextMenuDownload: 'Download', - contextMenuShareLink: 'Share Link', - contextMenuRefresh: 'Refresh', - contextMennuExport: 'Export Smart Browser', - contextMenuPrintFormatSetup: 'Print Format Setup', - dateStartPlaceholder: 'Start date', - dateEndPlaceholder: 'End date', - timePlaceholder: 'Select time', - dialogCancelButton: 'Cancel', - dialogConfirmButton: 'Confirm', - filterableItems: 'Optional Columns', - fixedleItems: 'Fixed Columns', - resetAllFilters: 'Reset all filters', - switchActiveText: 'Yes', - switchInactiveText: 'Not', - contextFieldTitle: 'Context Information', - preference: { - title: 'Preference Value', - attribute: 'Attribute', - code: 'Code', - yes: 'Yes', - no: 'No', - defaultMessage: 'Applies for this ', - defaultMessageUser: 'Applies for this ', - preferenceIsOk: 'The preference is saved', - preferenceRemoved: 'Preference Removed', - for: 'For ', - clientAndOrganization: 'this Client and Organization', - allOrganizationOfClient: 'all Organizations of this Client', - entireSystem: 'entire System', - thisUser: ', this User', - allUsers: ', all Users', - thisWindow: ' and this Window', - allWindows: ' and all Windows' - } - }, - grid: { - recordAccess: { - accessGranted: 'Access granted for roles' - } - }, - views: { - browser: 'Smart Browser', - smartBrowser: 'Smart Browser', - process: 'Process', - window: 'Window', - report: 'Report', - workflow: 'Workflow', - task: 'Task', - form: 'Form', - noProcess: 'Not process running', - logs: 'Summary', - log: 'Summary', - seeReport: 'See Report', - summary: 'Summary', - viewsHelp: 'Help', - searchCriteria: 'Search Criteria', - unsupportedSorry: 'Sorry', - unsupportedHeadline: 'This view is currently unavailable', - unsupportedInfo: 'Please check that the view is supported in this version, or click the button below to return to the homepage.', - unsupportedButton: 'Back to dashboard', - reportView: 'Report Views', - printFormat: 'Print Formats', - drillTable: 'Drill Down' - }, - report: { - ExportXlsx: '(xlsx) Excel File Extension', - ExportXls: '(xls) Excel File', - ExporXml: '(xml) Extensible Markup Language File', - ExporCsv: '(csv) Archivo separado por coma', - ExportTxt: '(txt) Tab Delimited Text File', - ExportHtml: '(html) Hypertext Markup Language' - }, - table: { - ProcessActivity: { - Name: 'Name', - zoomIn: 'Zoom in', - Description: 'Description', - actions: 'Action', - status: 'Status', - Logs: 'Summary', - summary: 'Summary', - Help: 'Help', - FileName: 'FileName', - Output: 'Output' - }, - dataTable: { - search: 'Search', - selected: 'Selected', - deleteSelection: 'Delete Selected Records', - advancedQuery: 'Advanced Query', - exportZip: 'Export Zip', - showOnlyMandatoryColumns: 'Show Only Mandatory Columns', - showAllAvailableColumns: 'Show All Available Columns', - exportRecordTable: 'Export Selected Records', - showTotal: 'Show Totals', - hiddenTotal: 'Hidden Totals' - }, - recentItems: { - search: 'Filter by name, description or date', - date: 'Date', - name: 'Name', - description: 'Description' - } - }, - example: { - warning: 'Creating and editing pages cannot be cached by keep-alive because keep-alive include does not currently support caching based on routes, so it is currently cached based on component name. If you want to achieve a similar caching effect, you can use a browser caching scheme such as localStorage. Or do not use keep-alive include to cache all pages directly. See details' - }, - errorLog: { - tips: 'Please click the bug icon in the upper right corner', - description: 'Now the management system are basically the form of the spa, it enhances the user experience, but it also increases the possibility of page problems, a small negligence may lead to the entire page deadlock. Fortunately Vue provides a way to catch handling exceptions, where you can handle errors or report exceptions.', - documentation: 'Document introduction' - }, - excel: { - export: 'Export', - selectedExport: 'Export Selected Items', - placeholder: 'Please enter the file name (default excel-list)' - }, - zip: { - export: 'Export', - placeholder: 'Please enter the file name (default file)' - }, - pdf: { - tips: 'Here we use window.print() to implement the feature of downloading PDF.' - }, - theme: { - change: 'Change Theme', - documentation: 'Theme documentation', - tips: 'Tips: It is different from the theme-pick on the navbar is two different skinning methods, each with different application scenarios. Refer to the documentation for details.' - }, - tagsView: { - refresh: 'Refresh', - close: 'Close', - closeOthers: 'Close Others', - closeAll: 'Close All', - newRecord: 'New Record', - seeRecord: 'See Record', - advancedQuery: 'Advanced Query' - }, - settings: { - title: 'setting', - theme: 'Theme Color', - tagsView: 'Open Tags-View', - fixedHeader: 'Fixed Header', - sidebarLogo: 'Sidebar Logo', - showContextMenu: 'Show Context Information', - isShowTitle: 'Show Títle', - isShowMenu: 'Show Menu' - }, - profile: { - aboutMe: 'About Me', - recentItems: 'Recent Items', - favorites: 'Favorites', - PendingDocuments: 'Pending Documents', - recentItemsName: 'Name Recent Items', - role: 'Role', - availableRoles: 'Available roles', - currentRole: 'Current role', - clientName: 'Client name', - description: 'Description', - changeRole: 'Change role', - changeLanguage: 'Change language', - changeLanguagePlaceholder: 'Choose a language' - }, - window: { - newRecord: 'New Record', - deleteRecord: 'Delete Record', - undoNew: 'Undo New Record', - containerInfo: { - attachment: 'Attachment', - notes: 'Notes List', - changeLog: 'ACtivity', - workflowLog: 'Workflow Log', - changeDetail: 'Change detail', - logWorkflow: { - message: 'Message', - responsible: 'Responsible', - workflowName: 'Name of Workflow Status', - timeElapsed: 'Time Elapsed', - addNote: 'Add Note' - } - }, - documentStatus: 'Document Status', - callout: { - error: 'Error In Callout' - } - }, - field: { - field: 'Field', - info: 'Information', - calculator: 'Calculator', - preference: 'Preference', - logsField: 'Field Change Log', - logsFieldEmpty: 'The field is still unchanged', - contextInfo: 'Context Info', - codeTranslation: 'Translation Of ', - container: { - help: 'Help', - description: 'Description' - } - }, - data: { - createRecordSuccessful: 'New record created successfully', - createNewRecord: 'Mode New record', - createRecordError: 'Error creating new record', - deleteRecordSuccessful: 'Record deleted successfully', - deleteRecordError: 'Error deleting record', - exportRecord: 'Export Record', - lockRecord: 'Lock Record', - noDescription: 'No Description', - addDescription: 'Add Description', - recordAccess: { - modeMobile: { - accessRoles: 'Access Roles', - accessRolesIsReadonly: 'Roles with Access and Read Only', - lockedRoles: 'Locked Roles', - lockedRolesIsDependentEntities: 'Locked Roles with Dependent Entities' - }, - actions: 'Record Access', - configRoles: 'Roles Configurados', - availableRoles: 'Roles Configured', - isReadonly: 'Reading Only', - isDependentEntities: 'Dependent Entities', - isLock: 'Block', - isUnlock: 'Unblock', - isError: 'Error on ' - }, - selectionRequired: 'You must select a record', - undo: 'Undo', - notification: { - lockRecord: 'The Registry was Locked', - unlockRecord: 'Registry was Unlocked' - }, - addNote: 'Add Note', - emptyNote: 'Este registro no posee ninguna nota', - descriptionNote: 'Add Note or Comment to Record', - unlockRecord: 'Unlock Record' - }, - sequence: { - available: 'Available', - sequence: 'Sequence' - }, - operators: { - compareSearch: 'Compare the Search', - operator: 'Comparison operator', - EQUAL: 'Equal to "="', - NOT_EQUAL: 'Not equal to "<>"', - LIKE: 'Like "~"', - NOT_LIKE: 'Not like "!~"', - GREATER: 'Greater than ">"', - GREATER_EQUAL: 'Greater than equal to ">="', - LESS: 'Less than "<"', - LESS_EQUAL: 'Less than equal to "<="', - BETWEEN: 'Between ">-<"', - NOT_NULL: 'Is not null', - NULL: 'Is null', - IN: 'Include "()"', - NOT_IN: 'Not include "!()"' - }, - quickAccess: { - newRecord: 'Quick Access to Create New Record', - listRecords: 'Quick Access to List All Records', - searchWithEnter: 'Press enter to search for the product by Product Code, Name or UPC.' - }, - businessPartner: { - notFound: 'Business partner not found.', - emptyBusinessPartner: 'Use the filters to search for a business partner by Code, Name, Email and Phone Number' - }, - form: { - pos: { - title: 'POS', - priceList: 'Price List', - optionsPoinSales: { - title: 'Quick Point of Sales Options', - salesOrder: { - title: 'Sale Order', - newOrder: 'New Order', - ordersHistory: 'Orders History', - generateImmediateInvoice: 'Generate Immediate Invoice', - completePreparedOrder: 'Complete Prepared Order', - cancelSaleTransaction: 'Cancel Sale Transaction', - createPos: 'Create Point of Sale Withdrawal', - print: 'Print Document', - cancelOrder: 'Cancel Order', - orderRemoved: 'Order Deleted', - copyOrder: 'Copy Order', - createNewReturnOrder: 'Create a new return order', - confirmDelivery: 'Confirmar Entrega', - emptyProductDelivery: 'Product not available for delivery' - }, - cashManagement: { - title: 'Cash Management', - cashOpening: 'Cash Opening', - cashwithdrawal: 'Cash withdrawa', - closeBox: 'Close the box' - }, - generalOptions: { - title: 'General Options', - changePos: 'Change Point of Sale', - listProducts: 'Change Point of Sale', - changeWarehouseList: 'Change Warehouse', - changePriceList: 'Change Price List', - dateTo: 'Date To', - dateOrder: 'Date Order', - dateFrom: 'Date From' - } - }, - tableProduct: { - product: 'Product', - quantity: 'Quantity', - options: 'Options', - editQuantities: 'Edit Quantities', - pin: 'Insert Pin', - remove: 'Remove', - displayTaxAmount: 'Tax', - displayTaxIMP: '%Imp', - displayDiscountAmount: 'Discount', - empty: 'Enter the product name, code or UPC' - }, - order: { - order: 'Order', - seller: 'Seller', - date: 'Date', - subTotal: 'Sub-Total', - type: 'Type', - discount: '%Dcto', - tax: 'Tax', - total: 'Total', - itemQuantity: 'Item Quantity', - numberLines: 'Number of Lines', - pointSale: 'Point of Sale', - collect: 'Collect', - collections: 'Cobros', - BusinessPartnerCreate: { - businessPartner: 'Business Partner', - successfullyCreated: 'Socio de Negocio Creado Exitosamente', - customerData: 'Customer Data', - billingAddress: 'Billing Address', - shippingAddress: 'Shipping Address', - withoutSetting: 'Without Setting', - taxId: 'Tax Identification' - } - }, - collect: { - orderTotal: 'Order Total', - pending: 'Pending', - payment: 'Payment', - change: 'Change', - totalInvoiced: 'Total Invoiced', - convertAmount: 'Convert Quantity', - convertedAmount: 'Converted', - fullPayment: 'Full Payment', - dayRate: 'Day Rate', - noDayRate: 'No daily rate has been generated for the currency.', - refund: 'Refund', - paymentMethods: 'Payment Methods', - emptyRate: 'No conversion rate to date', - Currency: 'Currency', - TenderType: { - directDeposit: 'Direct Deposit', - creditCard: 'Credit Card', - directDebit: 'Direct Debit', - check: 'Check', - creditNote: 'Credit Note', - mobilePayment: 'Interbank mobile payment', - account: 'Account', - cash: 'Cash', - zelle: 'Zelle' - }, - overdrawnInvoice: { - title: 'OverdrawnInvoice', - below: 'Invoice will remain with an open balance', - above: 'Customer Details', - returned: 'Your change is', - coupon: 'Generate a Gift Card or Vale', - returnMoney: 'Return money in another form of payment', - adjustDocument: 'You want to Adjust Document', - dailyLimit: 'Daily Limit', - customerLimit: 'Order Limit', - available: 'Available', - emptyPayment: 'Unsupported payment method', - emptyListPayment: 'You do not have any payment method associated with this option', - addPayment: 'You must add a change type to complete the operation', - fieldList: { - code: 'Cedula', - name: 'Holder Name', - accountType: 'Account Type', - bank: 'Bank' - } - } - }, - keyLayout: { - noProducto: 'No product available. Back to top' - }, - pinMessage: { - pin: 'Enter pin for ', - documentType: 'change document type', - warehouse: 'change warehouse', - price: 'change price', - qtyEntered: 'change quantity', - priceList: 'change price list', - discount: 'add discount', - delete: 'delete product', - addProduct: 'add product', - invoiceOpen: 'generate invoice with an open balance', - newOrder: 'create new order' - } - }, - priceChecking: { - productNotFound: 'Unavailable Product', - basePrice: 'Base price' - }, - byInvoice: { - title: 'Aisle Vendor Orders to be Invoiced', - label: 'To be invoiced', - salesRepresentative: 'Sales Agent', - businessPartner: 'Business Partner', - copyShippingAddress: 'Copy shipping address', - documentNo: 'Document No.', - emptyList: 'Use the filters to search for orders' - }, - productInfo: { - product: 'Product', - codeProduct: 'Códe Product', - productInformation: 'Product information', - code: 'Code', - name: 'Name', - lastName: 'Nombre2', - id: 'ID', - description: 'Description', - price: 'Price', - quantityOnHand: 'Quantity On Hand', - taxAmount: 'Tax Amount', - totalIncludingTax: 'Total Including Tax', - grandTotal: 'Grand Total', - grandTotalConverted: 'Grand Total Converted', - quantityAvailable: 'Available', - upc: 'UPC / EAN', - UM: 'UM' - }, - guideSteps: { - productValue: { - description: 'Search for the product by Product Code, Name or UPC' - }, - businessPartner: { - description: 'Show Business Partner Information' - }, - linesTable: { - title: 'Order Lines', - description: 'Order Product Listing' - }, - buttonPanelLeftPos: { - title: 'Show Left Panel', - description: 'Display the Point of Sale Options panel' - }, - point: { - description: 'Current point of sale information' - }, - buttonPanelRightPos: { - title: 'Show Right Panel', - description: 'Displays the catalog panel' - }, - fieldListCollection: { - title: 'Collection Fields', - description: 'Field Group which has. Amount, Currency, Payment Type, Bank, Reference No. and Date' - }, - buttonCollection: { - title: 'Collection Tools', - description: 'Composed of a set of buttons that allows you to add, delete and process' - }, - cardCollection: { - title: 'Payment Panel', - description: 'In this panel you can see a list with the cards of the added payments' - }, - infoInvoce: { - title: 'Invoice Detail', - description: 'Invoice information with total amount, pending, change' - }, - toolsPoint: { - title: 'Point of Sale Tools' - } - }, - activity: { - title: 'Your Workflow Activities', - filtersSearch: { - history: 'History records', - forward: 'Re-send' - }, - table: { - priority: 'Priority', - node: 'Node' - }, - workflow: { - title: 'Workflow', - description: 'Workflow life cycle diagram. The highlighted Node is the one currently awaiting verification.' - }, - workflowLogs: { - title: 'Change Log', - description: 'Workflow timeline' - } - }, - match: { - title: { - invoice: 'Invoice', - deliveryReceipt: 'Delivery / Receipt' - }, - description: { - searchCriteria: 'Select a Business Partner to check the pending documents to be assigned', - invoice: 'Select an Invoice to assign the corresponding Delivery/Receipt to', - deliveryReceipt: 'Select at least one Delivery/Receipt to which you require to assign the selected invoice' - }, - field: { - toAssigned: 'To be Assigned', - assigning: 'Assigning', - difference: 'Difference' - }, - filtersSearch: { - sameBusinessPartner: 'Same Business Partner', - sameProduct: 'Same Product ', - sameQuantity: 'SameQuantity ' - }, - table: { - nrDocument: 'Nr Document' - } - }, - weight: 'Weight' - } -} diff --git a/src/lang/ADempiere/en/actionMenu.js b/src/lang/ADempiere/en/actionMenu.js index dcd79da295e..78a3a76936e 100644 --- a/src/lang/ADempiere/en/actionMenu.js +++ b/src/lang/ADempiere/en/actionMenu.js @@ -30,6 +30,8 @@ const actionMenu = { generateDefaultReport: 'Generate with default file extension', generateReportAs: 'Generate As', generateReportAsOtherFormat: 'Change file extesion to generate', + printFormats: 'Print Formats', + generateReportWithPrintFormat: 'Change print format to generate', // relations relations: 'Relations', withoutRelations: 'Without Relations', diff --git a/src/lang/ADempiere/en/index.js b/src/lang/ADempiere/en/index.js index 8e2bc8496b6..bb1b4f64b18 100644 --- a/src/lang/ADempiere/en/index.js +++ b/src/lang/ADempiere/en/index.js @@ -196,7 +196,6 @@ export default { unsupportedInfo: 'Please check that the view is supported in this version, or click the button below to return to the homepage.', unsupportedButton: 'Back to dashboard', reportView: 'Report Views', - printFormat: 'Print Formats', drillTable: 'Drill Down' }, report: { diff --git a/src/lang/ADempiere/es.js b/src/lang/ADempiere/es.js deleted file mode 100644 index 8f872aa08a1..00000000000 --- a/src/lang/ADempiere/es.js +++ /dev/null @@ -1,656 +0,0 @@ -export default { - language: 'Idioma', - route: { - dashboard: 'Panel de control', - documentation: 'Documentación', - calendar: 'Calendario', - forgotPassword: '¿Olvidó su Contraseña?', - userEnrollment: 'Registrarse', - guide: 'Guía', - page401: '401', - page404: '404', - profile: 'Perfil', - ProcessActivity: 'Histórico Procesos', - withoutLog: 'No se Encontró Registro de Error ', - ProductInfo: 'Información de Producto', - role: 'Rol', - organization: 'Organización', - warehouse: 'Almacén', - reportViewer: 'Visor de Reportes', - PriceChecking: 'Consulta del precio' - }, - notifications: { - // simplex - completed: 'Completado', - loading: 'Cargando', - succesful: ' Exitoso ', - error: ' Error ', - opened: 'Abierto', - totalProcess: 'Total de Registros Procesador ', - // search - searching: 'Buscando registros en el servidor', - succcessSearch: 'La búsqueda se ha realizado', - searchWithOutRecords: 'La búsqueda finalizo sin resultados', - errorSearch: 'La búsqueda no se ha completado.', - // process - processing: 'Procesando', - processExecuted: 'Ejecutado, ver histórico de procesos', - processError: 'No fue ejecutado', - // - emptyValues: 'Parametro(s) con valores vacios', - fieldCannotBeEmpty: 'El valor del campo no puede estar vacío.', - fieldMandatory: 'El campo es obligatorio', - requestError: 'Error al ejecutar la petición', - successChangeRole: 'El rol se ha cambiado', - errorChangeRole: 'El rol no se ha cambiado', - copySuccessful: 'Copiado', - copyUnsuccessful: 'Error, no se puede copiar', - mandatoryFieldMissing: 'Falta completar los campos ', - updateFields: 'Se actualiza el registro con el campo ', - updateSuccessfully: 'Cambios realizados exitosamente', - invalidEmailFormat: 'Formato de correo electronico invalido', - recordLocked: 'Este registro ha sido bloqueado', - recordUnlocked: 'Este registro ha sido desbloqueado', - noRoleAccess: 'Con su rol y configuración actuales, no puede ver esta información.', - errorPointOfSale: 'Sin punto de venta seleccionado' - }, - navbar: { - badge: { - Notifications: 'Notificaciones', - activity: 'Flujos de Trabajos por Aprobar', - link: 'Ir a Histórico de Procesos' - }, - logOut: 'Salir', - dashboard: 'Panel de control', - github: 'Github', - theme: 'Tema', - size: 'Tamaño global', - profile: 'Perfil' - }, - login: { - noValidUser: 'Por favor ingrese el nombre de usuario correcto', - noValidPassword: 'La contraseña no puede estar vacía', - invalidLogin: 'ID de usuario o contraseña no válida', - unexpectedError: 'Se ha producido un error inesperado, intente nuevamente', - capsLock: 'Bloqueo de mayúsculas activado', - title: 'Formulario de acceso', - submit: 'Enviar', - logIn: 'Acceso', - name: 'Nombre', - lastName: 'Apellido', - eMail: 'Correo electronico', - userName: 'Usuario', - userNameOrEmail: 'Usuario o Correo', - userEnrollment: 'Registrar usuario', - userEnrollmentSuccessful: 'Registro de usuario exitoso, verifique su correo electronico', - passwordResetSendLink: 'El enlace para reiniciar la contraseña se envio al correo ', - password: 'Contraseña', - passwordNew: 'Nueva contraseña', - passwordConfirm: 'Confirmar contraseña', - passwordConfirmNew: 'Confirmación de nueva contraseña', - any: 'nada', - thirdparty: 'Conectar con', - thirdpartyTips: 'No se puede simular en local, así que combine su propia simulación de negocios.', - invalidToken: 'El token utilizado es inválido.', - passwordReset: 'Reiniciar contraseña', - createPassword: 'Crear contraseña', - passwordResetSuccessful: 'El reinicio de contraseña se realizo correctamente', - passwordAndConfirmNotMatch: 'La contraseña nueva y su confirmación no coinciden.' - }, - documentation: { - documentation: 'Documentación', - github: 'Repositorio Github', - releases: 'Liberaciones', - branches: 'Ramas', - code: 'Código', - issues: 'Asuntos', - downloadZip: 'descargar Zip', - releaseNotes: 'Nota de Liberaciones', - goRepository: 'Ir al Repositorio', - seeDocumentation: 'Ver Documentación' - }, - permission: { - addRole: 'Nuevo rol', - editPermission: 'Permiso de edición', - roles: 'Tus permisos', - switchRoles: 'Cambiar permisos', - tips: 'En algunos casos, no es adecuado usar v-permission, como el componente Element Tab o el-table-column y otros casos de dom de representación asíncrona que solo se pueden lograr configurando manualmente v-if.', - delete: 'Borrar', - confirm: 'Confirmar', - cancel: 'Cancelar' - }, - guide: { - description: 'La página de guía es útil para algunas personas que ingresaron al proyecto por primera vez. Puede introducir brevemente las características del proyecto. Demo se basa en ', - button: 'Ver guía' - }, - components: { - date: { - Today: 'Hoy', - Yesterday: 'Ayer', - Week: 'La semana pasada', - LastMonth: 'El mes pasado', - CurrentMonth: 'El mes actual' - }, - documentation: 'Documentación', - binaryButton: 'Subir archivo', - binaryTip: 'Solo archivos con un tamaño menor a 500kb', - imageError: 'La imagen excede los 2MB y no cumple con los formato validos!', - contextMenuRelations: 'Relaciones', - contextMenuActions: 'Acciones', - contextMenuReferences: 'Referencias', - withOutReferences: 'Sin referencias para el registro', - contextMenuDownload: 'Descargar', - contextMenuShareLink: 'Compartir Link', - contextMenuRefresh: 'Actualizar', - contextMennuExport: 'Exportar Smart Browser', - contextMenuPrintFormatSetup: 'Configurar Formato de Impresión', - RunProcess: 'Ejecutar', - ChangeParameters: 'Cambiar Parametros', - RunProcessAs: 'Ejecutar como', - ExportTo: 'Exportar a', - dateStartPlaceholder: 'Fecha inicial', - dateEndPlaceholder: 'Fecha final', - timePlaceholder: 'Seleccione tiempo', - dialogCancelButton: 'Cancelar', - dialogConfirmButton: 'Confirmar', - filterableItems: 'Columnas Opcionales', - fixedleItems: 'Columnas Fijas', - resetAllFilters: 'Reiniciar todos los filtros', - switchActiveText: 'Si', - switchInactiveText: 'No', - contextFieldTitle: 'Información de Contexto', - preference: { - title: 'Valor de Preferencia', - attribute: 'Atributo', - code: 'Codigo', - yes: 'Si', - no: 'No', - defaultMessage: 'Aplica para Esta ', - defaultMessageUser: 'Aplica para Este ', - preferenceIsOk: 'Preferencia guardada', - preferenceRemoved: 'Preferencia Eliminada', - for: 'Para ', - clientAndOrganization: 'esta Compañía y Organización', - allOrganizationOfClient: 'todas las Organizaciones de esta Compañía', - entireSystem: 'todo el Sistema', - thisUser: ', este Usuario', - allUsers: ', todos los Usuarios', - thisWindow: ' y esta Ventana', - allWindows: ' y todas las Ventanas' - } - }, - grid: { - recordAccess: { - accessGranted: 'Acceso otorgado a los roles' - } - }, - views: { - browser: 'Consulta Inteligente', - smartBrowser: 'Consulta Inteligente', - process: 'Proceso', - window: 'Ventana', - report: 'Reporte', - workflow: 'Flujo de Trabajo', - task: 'Tarea', - form: 'Formulario', - noProcess: 'No hay procesos en ejecución', - logs: 'Resumen', - log: 'Bitacora', - seeReport: 'Ver Reporte', - summary: 'Resumen', - viewsHelp: 'Ayuda', - searchCriteria: 'Criterio de Búsqueda', - unsupportedSorry: 'Lo sentimos', - unsupportedHeadline: 'Esta vista no está disponible actualmente', - unsupportedInfo: 'Verifique que la vista sea compatible con esta versión, o haga clic en el botón a continuación para volver a la página de inicio.', - unsupportedButton: 'Volver al Panel de control', - reportView: 'Vistas de Reporte', - printFormat: 'Formatos de Impresión', - drillTable: 'Entrar en Detalle' - }, - report: { - ExportXlsx: '(xlsx) Extencion de Archivo Excel', - ExportXls: '(xls) Archivo Excel', - ExporXml: '(xml) Archivo Lenguaje de marcas Extensible', - ExporCsv: '(csv) Archivo Separado por Coma', - ExportTxt: '(txt) Archivo de Texto Delimitado por Tabuladores', - ExportHtml: '(html) Lenguaje de Marcas de Hipertexto' - }, - table: { - ProcessActivity: { - Name: 'Nombre', - zoomIn: 'Acercar', - Description: 'Descripción', - FileName: 'Nombre de Archivo', - Output: 'Salida', - Action: 'Acción', - Status: 'Estado', - Logs: 'Resumen', - Summary: 'Resumen', - Help: 'Ayuda' - }, - dataTable: { - search: 'Buscar', - selected: 'Seleccionados', - deleteSelection: 'Eliminar Registros Seleccionados', - advancedQuery: 'Consulta Avanzada', - exportZip: 'Exportar Zip', - showOnlyMandatoryColumns: 'Mostrar Solo Columnas Obligatorias', - showAllAvailableColumns: 'Mostrar Todas Columnas Disponibles', - exportRecordTable: 'Exportar Registros Seleccionados', - showTotal: 'Mostrar Totales', - hiddenTotal: 'Ocultar Totales' - }, - recentItems: { - search: 'Filtrar por nombre, descripción o fecha', - date: 'Fecha', - name: 'Nombre', - description: 'Descripción' - } - }, - tagsView: { - refresh: 'Actualizar', - close: 'Cerrar', - closeOthers: 'Cerrar otros', - closeAll: 'Cerrar todos', - newRecord: 'Nuevo Registro', - seeRecord: 'Ver Registro', - advancedQuery: 'Consulta Avanzada' - }, - settings: { - title: 'Configuración', - theme: 'Color del tema', - tagsView: 'Habilitar Tags-View', - fixedHeader: 'Encabezado fijo', - sidebarLogo: 'Logotipo de la barra lateral', - showContextMenu: 'Mostrar Menu de Contexto', - isShowTitle: 'Mostrar Título', - isShowMenu: 'Mostrar Menu' - }, - profile: { - aboutMe: 'Sobre Mi', - recentItems: 'Artículos Recientes', - favorites: 'Favoritos', - PendingDocuments: 'Documentos Pendientes', - recentItemsName: 'Nombre Ítems Recientes', - role: 'Rol', - availableRoles: 'Roles disponibles', - currentRole: 'Rol actual', - clientName: 'Nombre del cliente', - description: 'Descripción', - changeRole: 'Cambiar Rol', - changeLanguage: 'Cambiar idioma', - changeLanguagePlaceholder: 'Elija un idioma' - }, - window: { - newRecord: 'Nuevo Registro', - deleteRecord: 'Eliminar Registro', - undoNew: 'Descartar Nuevo Registro', - containerInfo: { - attachment: 'Anexo', - notes: 'Listado de Notas', - changeLog: 'Actividad', - workflowLog: 'Histórico de Flujo de Trabajo', - changeDetail: 'Detalle del cambio', - logWorkflow: { - message: 'Mensaje', - responsible: 'Responsable', - workflowName: 'Nombre de estado del flujo de trabajo', - timeElapsed: 'Tiempo transcurrido', - addNote: 'Agregar Nota' - } - }, - documentStatus: 'Estatus del Documento', - callout: { - error: 'Error En Callout' - } - }, - field: { - field: 'Campo', - info: 'Información', - calculator: 'Calculadora', - preference: 'Preferencia', - codeTranslation: 'Traduccion de ', - logsField: 'Bitácora de Cambios', - contextInfo: 'Información del Contexto', - logsFieldEmpty: 'El campo no tiene cambios aún', - container: { - help: 'Ayuda', - description: 'Descripción' - } - }, - data: { - createRecordSuccessful: 'Nuevo registro creado con exito', - createNewRecord: 'Modo nuevo registro', - createRecordError: 'Error al crear nuevo registro', - deleteRecordSuccessful: 'Registro eliminado exitosamente', - deleteRecordError: 'Error al eliminar el regitro', - exportRecord: 'Exportar Registro', - lockRecord: 'Registro Bloqueado', - noDescription: 'Sin Descripción', - addDescription: 'Agregue una Descripción', - recordAccess: { - modeMobile: { - accessRoles: 'Roles con Acceso', - accessRolesIsReadonly: 'Roles con Acceso y Solo lectura', - lockedRoles: 'Roles Bloqueados', - lockedRolesIsDependentEntities: 'Roles Bloqueados con Entidades Dependientes' - }, - actions: 'Acceso a Registros', - availableRoles: 'Roles Disponibles', - configRoles: 'Roles Configurados', - isReadonly: 'Solo Lectura', - isDependentEntities: 'Entidades Dependientes', - isLock: 'Bloquear', - isUnlock: 'Desbloquear', - isError: 'Error al ' - }, - selectionRequired: 'Debe seleccionar un registro', - undo: 'Deshacer', - notification: { - lockRecord: 'El Registro fue Bloqueado', - unlockRecord: 'El Registro fue Desbloqueado' - }, - addNote: 'Agregar Nota', - emptyNote: 'Este registro no posee ninguna nota', - descriptionNote: 'Agregar Nota o Comentario al Registro', - unlockRecord: 'Desbloquear Registro' - }, - sequence: { - available: 'Disponibles', - sequence: 'Secuencia' - }, - operators: { - compareSearch: 'Comparar la Búsqueda', - operator: 'Operador de comparación', - EQUAL: 'Igual a "="', - NOT_EQUAL: 'Diferente a "<>"', - LIKE: 'Contiene "~"', - NOT_LIKE: 'No contiene "!~"', - GREATER: 'Mayor que ">"', - GREATER_EQUAL: 'Mayor o igual que ">="', - LESS: 'Menor que "<"', - LESS_EQUAL: 'Menor o igual que "<="', - BETWEEN: 'Entre ">-<"', - NULL: 'No tiene valor', - NOT_NULL: 'Tiene un valor', - IN: 'Incluye "()"', - NOT_IN: 'No incluye "!()"' - }, - quickAccess: { - newRecord: 'Acceso Rápido para Crear Registro Nuevo', - listRecords: 'Acceso Rápido para Listar los Registros', - searchWithEnter: 'Pulse enter para realizar la busqueda del producto segun su Codigo, Nombre o UPC' - }, - businessPartner: { - notFound: 'Socio de negocio no encontrado.', - emptyBusinessPartner: 'Utilice los filtros para realizar la busqueda de socio de negocio según su Código, Nombre, Email y Teléfono' - }, - form: { - pos: { - title: 'Punto de Venta', - priceList: 'Lista de Precio', - discountList: 'Lista de Descuento', - optionsPoinSales: { - title: 'Opciones Rápidas del Punto de Ventas', - salesOrder: { - title: 'Orden de Venta', - newOrder: 'Nueva Orden', - ordersHistory: 'Histórico de Órdenes ', - generateImmediateInvoice: 'Generar Factura Inmediata', - completePreparedOrder: 'Completar Orden Preparada', - cancelSaleTransaction: 'Anular Transacción de Venta', - createPos: 'Crear Retiro de Punto de Venta', - print: 'Imprimir Documento', - cancelOrder: 'Cancelar Orden', - orderRemoved: 'Orden Borrada', - copyOrder: 'Copiar Orden', - createNewReturnOrder: 'Crear una nueva orden de devolución', - confirmDelivery: 'Confirmar Entrega', - emptyProductDelivery: 'Producto no disponible para entregar' - }, - cashManagement: { - title: 'Gestión de Caja', - cashOpening: 'Apertura de Caja', - cashwithdrawal: 'Retiro de Efectivo', - closeBox: 'Cierre de Caja' - }, - generalOptions: { - title: 'Opciones Generales', - changePos: 'Cambiar Punto de Venta', - listProducts: 'Lista de Productos y Precios', - changeWarehouseList: 'Cambiar de Almacén', - changePriceList: 'Cambiar Lista de Precio', - dateTo: 'Fecha Hasta', - dateOrder: 'Fecha Orden', - dateFrom: 'Fecha Desde' - } - }, - tableProduct: { - product: 'Producto', - quantity: 'Cantidad', - options: 'Opciones', - editQuantities: 'Editar Cantidades', - pin: 'Ingrese Pin', - remove: 'Eliminar', - displayTaxAmount: 'Impuesto', - displayTaxIMP: '%Imp', - displayDiscuentAmount: 'Descuento', - empty: 'Ingrese el nombre del producto, código o UPC' - }, - order: { - order: 'Orden', - seller: 'Vendedor', - date: 'Fecha', - subTotal: 'Sub-Total', - type: 'Tipo', - discount: '%Dcto', - tax: 'Impuesto', - total: 'Total', - itemQuantity: 'Cantidad de Artículos', - numberLines: 'Número de Líneas', - pointSale: 'Punto de Venta', - collect: 'Cobrar', - collections: 'Cobros', - BusinessPartnerCreate: { - businessPartner: 'Socio de Negocios', - successfullyCreated: 'Socio de Negocio Creado Exitosamente', - customerData: 'Datos del Cliente', - billingAddress: 'Dirección de Facturación', - shippingAddress: 'Dirección de Envió', - withoutSetting: 'Sin Establecer', - taxId: 'Identificación Fiscal' - } - }, - collect: { - orderTotal: 'Total de Orden', - pending: 'Pendiente', - payment: 'Pago', - change: 'Cambio', - totalInvoiced: 'Total Facturado', - convertAmount: 'Convertir Cantidad', - convertedAmount: 'Convertido', - fullPayment: 'Cobro Completo', - Currency: 'Moneda', - dayRate: 'Tasa del Día', - noDayRate: 'No se a generado una tasa del día para la moneda', - refund: 'Reembolso', - paymentMethods: 'Métodos de Pago', - emptyRate: 'Sin tasa de conversión a la fecha', - TenderType: { - directDeposit: 'Depósito Directo', - creditCard: 'Tarjeta de Crédito', - directDebit: 'Débito Directo', - check: 'Cheque', - creditNote: 'Nota de crédito', - mobilePayment: 'Pago Móvil Interbancario', - account: 'Cuenta', - cash: 'Efectivo', - zelle: 'Zelle' - }, - overdrawnInvoice: { - title: 'Factura Sobregirada', - below: 'Factura quedará con un saldo abierto', - above: 'Datos del Cliente', - returned: 'Su vuelto es', - coupon: 'Generar una Tarjeta de Regalo o Vale', - returnMoney: 'Devolver dinero en otra forma de pago', - adjustDocument: 'Desea Ajustar Documento', - dailyLimit: 'Limite Diario', - customerLimit: 'Limite Orden', - available: 'Disponible', - emptyPayment: 'Método de pago no soportado', - emptyListPayment: 'No posee ningún método de pago asociado en esta opción', - addPayment: 'Debe agregar un tipo de vuelto para completar la operación', - fieldList: { - code: 'Cedula', - name: 'Nombre del Titular', - accountType: 'Tipo de Cuenta', - bank: 'Banco' - } - } - }, - keyLayout: { - noProducto: 'No hay producto disponible Regresar al Principio' - }, - pinMessage: { - pin: 'Ingrese pin para ', - documentType: 'cambiar tipo de documento', - warehouse: 'cambiar almacén', - price: 'cambiar precio', - qtyEntered: 'cambiar cantidad', - priceList: 'cambiar lista de precio', - discount: 'agregar descuento', - delete: 'eliminar producto', - addProduct: 'agregar producto', - invoiceOpen: 'generar factura con un saldo abierto', - newOrder: 'crear nueva orden' - } - }, - priceChecking: { - productNotFound: 'Producto No Disponible', - basePrice: 'Precio Base' - }, - byInvoice: { - title: 'Pedidos Vendedor de Pasillo por Facturar', - label: 'Por Facturar', - salesRepresentative: 'Agente Comercial', - businessPartner: 'Socio de Negocio', - copyShippingAddress: 'Copiar dirección para el envío', - documentNo: 'Nro. Documento', - emptyList: 'Utilice los filtros para realizar la busqueda de las ordenes' - }, - productInfo: { - product: 'Producto', - codeProduct: 'Código de Producto', - productInformation: 'Información de Producto', - code: 'Código', - name: 'Nombre', - id: 'ID', - lastName: 'Nombre2', - description: 'Descripción', - convertedPrice: 'Precio Convertido', - quantityOnHand: 'Existencia', - price: 'Precio', - taxAmount: 'Monto de Impuesto', - totalIncludingTax: 'Total con Impuesto', - grandTotal: 'Total General', - grandTotalConverted: 'Gran Total Convertido', - quantityAvailable: 'Disponible', - upc: 'Código de Barras', - UM: 'UM' - }, - guideSteps: { - productValue: { - description: 'Busca el producto segun su Codigo, Nombre o UPC' - }, - businessPartner: { - description: 'Mostrar Informacion del Socio de Negocios' - }, - linesTable: { - title: 'Lineas de la Orden', - description: 'Listado de los Producto de la orden' - }, - buttonPanelLeftPos: { - title: 'Mostrar Panel Izquierdo', - description: 'Despliega el panel de Opciones del Punto de Venta' - }, - point: { - description: 'Informacion del punto de venta actual' - }, - buttonPanelRightPos: { - title: 'Mostrar Panel Derecho', - description: 'Despliega el panel de catalogo' - }, - fieldListCollection: { - title: 'Campos de la Cobranza', - description: 'Grupo de Campo el cual posee. Monto, Moneda, Tipo de pago, Banco, Nro Referencia y Fecha' - }, - buttonCollection: { - title: 'Herramientas de la Cobranza', - description: 'Compuesta por un conjunto de botonera que posee agregar, eliminar y porcesar' - }, - cardCollection: { - title: 'Panel de Pago', - description: 'En este panel aparece un listado con las tarjeta de los pagos agregados' - }, - infoInvoce: { - title: 'Detalle de la Factura', - description: 'Informacion de la Factura con el monto total, pendiente, cambio' - }, - toolsPoint: { - title: 'Herramientas del Punto de Venta' - } - }, - activity: { - title: 'Sus Actividades de Flujo de Trabajo', - filtersSearch: { - history: 'Registros históricos', - forward: 'Re-enviar' - }, - table: { - priority: 'Prioridad', - node: 'Nodo' - }, - guide: { - table: { - title: 'Lista de Flujos de trabajos por aprobar', - description: 'Seleccione al menos uno para ver el detalle y responsable de aprobación. De igual manera puede decidir si aprueba, rechaza o redirecciona el mismo' - }, - workflow: { - title: 'Flujo de Trabajo', - description: 'Diagrama del ciclo de vida del flijo de trabajo. El Nodo resaltado es el que se encuentra actualmente a la espera de verificación.' - }, - workflowLogs: { - title: 'Bitacora de Cambios', - description: 'Linea de tiempo del flujo de trabajo' - } - } - }, - match: { - title: { - invoice: 'Factura', - deliveryReceipt: 'Entrega / Recibo' - }, - description: { - searchCriteria: 'Seleccione un Socio de Negocio para verificar los documentos pendientes por asignar', - invoice: 'Seleccione una Factura para asignar las Entrega/Recibo correspondiente', - deliveryReceipt: 'Seleccione al menos una Entrega/Recibo a la cual requiere asignar la factura seleccionada' - }, - field: { - toAssigned: 'Para ser Asignadas', - assigning: 'Asignando', - difference: 'Diferencia' - }, - filtersSearch: { - sameBusinessPartner: 'Mismo Socio del Negocio', - sameProduct: 'Mismo Producto ', - sameQuantity: 'Misma Cantidad ' - }, - table: { - nrDocument: 'Nr Docuemnto' - } - }, - weight: 'Peso' - } -} diff --git a/src/lang/ADempiere/es/actionMenu.js b/src/lang/ADempiere/es/actionMenu.js index cc76d942a85..57045413df9 100644 --- a/src/lang/ADempiere/es/actionMenu.js +++ b/src/lang/ADempiere/es/actionMenu.js @@ -30,6 +30,8 @@ const actionMenu = { generateDefaultReport: 'Generar con extensión de archivo por defecto', generateReportAs: 'Generar Como', generateReportAsOtherFormat: 'Cambiar extensión del archivo para generar', + printFormats: 'Formatos de Impresión', + generateReportWithPrintFormat: 'Cambiar formato de impresión para generar', // relations relations: 'Relaciones', withoutRelations: 'Sin Relaciones', diff --git a/src/lang/ADempiere/es/index.js b/src/lang/ADempiere/es/index.js index 1ba682c4c00..f12f931389d 100644 --- a/src/lang/ADempiere/es/index.js +++ b/src/lang/ADempiere/es/index.js @@ -196,7 +196,6 @@ export default { unsupportedInfo: 'Verifique que la vista sea compatible con esta versión, o haga clic en el botón a continuación para volver a la página de inicio.', unsupportedButton: 'Volver al Panel de control', reportView: 'Vistas de Reporte', - printFormat: 'Formatos de Impresión', drillTable: 'Entrar en Detalle' }, report: { diff --git a/src/store/modules/ADempiere/dictionary/report/actions.js b/src/store/modules/ADempiere/dictionary/report/actions.js index 8ff5ad5593b..fe89d6bf0f0 100644 --- a/src/store/modules/ADempiere/dictionary/report/actions.js +++ b/src/store/modules/ADempiere/dictionary/report/actions.js @@ -23,8 +23,11 @@ import { requestProcessMetadata as requestReportMetadata } from '@/api/ADempiere import { runReport, runReportAs, + runReportAsPrintFormat +} from '@/utils/ADempiere/dictionary/report.js' +import { sharedLink -} from '@/utils/ADempiere/constants/actionsMenuList' +} from '@/utils/ADempiere/constants/actionsMenuList.js' // utils and helper methods import { generateProcess as generateReport } from '@/utils/ADempiere/dictionary/process.js' @@ -50,7 +53,7 @@ export default { requestReportMetadata({ uuid }) - .then(reportResponse => { + .then(async reportResponse => { const { processDefinition: reportDefinition } = generateReport({ processToGenerate: reportResponse }) @@ -61,15 +64,17 @@ export default { }) dispatch('addReportToList', reportDefinition) - dispatch('setReportActionsMenu', { - containerUuid: uuid - }) - resolve(reportDefinition) - dispatch('getListPrintFormats', { + await dispatch('getListPrintFormats', { uuid, id: reportDefinition.id }) + + dispatch('setReportActionsMenu', { + containerUuid: uuid + }) + + resolve(reportDefinition) }) .catch(error => { reject(error) @@ -81,7 +86,7 @@ export default { * Set actions menu to report * @param {string} containerUuid */ - setReportActionsMenu({ commit, getters }, { + setReportActionsMenu({ commit, getters, rootGetters }, { containerUuid }) { const reportDefinition = getters.getStoredReport(containerUuid) @@ -89,8 +94,8 @@ export default { const actionsList = [] actionsList.push(runReport) + const runTypeChilds = [] if (!isEmptyValue(reportDefinition.reportExportTypes)) { - const runTypeChilds = [] reportDefinition.reportExportTypes.forEach(reportType => { // push values runTypeChilds.push({ @@ -110,8 +115,36 @@ export default { }) runReportAs.childs = runTypeChilds - actionsList.push(runReportAs) + } else { + runReportAs.enabled = false + } + actionsList.push(runReportAs) + + const printFormats = rootGetters.getPrintFormatList(containerUuid) + if (!isEmptyValue(printFormats)) { + const printFormatChilds = [] + printFormats.forEach(printFormat => { + printFormatChilds.push({ + ...printFormat, + icon: 'el-icon-document', + enabled: true, + svg: false, + actionName: 'runReportAs', + uuid: null, + runReportAs: ({ root, containerUuid }) => { + root.$store.dispatch('startReport', { + containerUuid, + printFormatUuid: printFormat.printFormatUuid + }) + } + }) + }) + + runReportAsPrintFormat.childs = printFormatChilds + } else { + runReportAsPrintFormat.enabled = false } + actionsList.push(runReportAsPrintFormat) // action shared link actionsList.push(sharedLink) diff --git a/src/store/modules/ADempiere/dictionary/report/getters.js b/src/store/modules/ADempiere/dictionary/report/getters.js index f7c13707753..092006a33de 100644 --- a/src/store/modules/ADempiere/dictionary/report/getters.js +++ b/src/store/modules/ADempiere/dictionary/report/getters.js @@ -23,10 +23,6 @@ import { isNumberField } from '@/utils/ADempiere/references.js' * Dictionary Report Getters */ export default { - getStoredReports: (state) => { - return state.storedReports - }, - getStoredReport: (state) => (reportUuid) => { return state.storedReports[reportUuid] }, diff --git a/src/store/modules/ADempiere/processControl.js b/src/store/modules/ADempiere/processControl.js index f3dc41e78ac..a24d6631e5b 100644 --- a/src/store/modules/ADempiere/processControl.js +++ b/src/store/modules/ADempiere/processControl.js @@ -463,7 +463,7 @@ export default { // Print formats to context menu const printFormatList = { - name: language.t('views.printFormat'), + name: language.t('actionMenu.printFormats'), type: 'summary', action: '', childs: [], diff --git a/src/store/modules/ADempiere/reportManager.js b/src/store/modules/ADempiere/reportManager.js index fe892227e1b..5ba38367297 100644 --- a/src/store/modules/ADempiere/reportManager.js +++ b/src/store/modules/ADempiere/reportManager.js @@ -79,7 +79,8 @@ const reportManager = { actions: { startReport({ commit, dispatch, rootGetters }, { containerUuid, - reportFormat = 'html' + reportFormat = 'html', + printFormatUuid }) { return new Promise(resolve => { const reportDefinition = rootGetters.getStoredReport(containerUuid) @@ -104,6 +105,7 @@ const reportManager = { requestRunReport({ uuid: containerUuid, reportType: reportFormat, + printFormatUuid, parametersList }) .then(runReportRepsonse => { diff --git a/src/utils/ADempiere/constants/actionsMenuList.js b/src/utils/ADempiere/constants/actionsMenuList.js index d89583b22aa..9523462763a 100644 --- a/src/utils/ADempiere/constants/actionsMenuList.js +++ b/src/utils/ADempiere/constants/actionsMenuList.js @@ -226,37 +226,6 @@ export const runProcess = { } } -export const runReport = { - name: language.t('actionMenu.generateReport'), - description: language.t('actionMenu.generateDefaultReport'), - enabled: true, - svg: false, - icon: 'el-icon-document', - actionName: 'runReport', - uuid: null, - runReport: ({ root, containerUuid }) => { - root.$store.dispatch('startReport', { - containerUuid - }) - } -} - -export const runReportAs = { - name: language.t('actionMenu.generateReportAs'), - description: language.t('actionMenu.generateReportAsOtherFormat'), - enabled: true, - svg: false, - icon: 'el-icon-document', - actionName: 'runReportAs', - uuid: null, - childs: [], - runReportAs: ({ root, containerUuid }) => { - root.$store.dispatch('startReport', { - containerUuid - }) - } -} - export const windowActions = [ createNewRecord, refreshRecords, diff --git a/src/utils/ADempiere/dictionary/report.js b/src/utils/ADempiere/dictionary/report.js index d8f32d96b42..d12fc248561 100644 --- a/src/utils/ADempiere/dictionary/report.js +++ b/src/utils/ADempiere/dictionary/report.js @@ -14,6 +14,8 @@ // You should have received a copy of the GNU General Public License // along with this program. If not, see . +import language from '@/lang' + /** * Suppoerted render files */ @@ -39,3 +41,50 @@ export const reportFormatsList = [ 'xlsx', 'xml' ] + +export const runReport = { + name: language.t('actionMenu.generateReport'), + description: language.t('actionMenu.generateDefaultReport'), + enabled: true, + svg: false, + icon: 'el-icon-document', + actionName: 'runReport', + uuid: null, + runReport: ({ root, containerUuid }) => { + root.$store.dispatch('startReport', { + containerUuid + }) + } +} + +export const runReportAs = { + name: language.t('actionMenu.generateReportAs'), + description: language.t('actionMenu.generateReportAsOtherFormat'), + enabled: true, + svg: false, + icon: 'el-icon-document', + actionName: 'runReportAs', + uuid: null, + childs: [], + runReportAs: ({ root, containerUuid }) => { + root.$store.dispatch('startReport', { + containerUuid + }) + } +} + +export const runReportAsPrintFormat = { + name: language.t('actionMenu.printFormats'), + description: language.t('actionMenu.generateReportWithPrintFormat'), + enabled: true, + svg: false, + icon: 'el-icon-printer', + actionName: 'runReportAsPrintFormat', + uuid: null, + childs: [], + runReportAsPrintFormat: ({ root, containerUuid }) => { + root.$store.dispatch('startReport', { + containerUuid + }) + } +}