@enso-ui/discounts

Discount administration routes and pages for Enso UI.
2,315
Install
npm install @enso-ui/discounts
Latest Version:5.2.5
Vue:3
Older releases:2
License:proprietary
Last Updated:Apr 25, 2026
Links: Repository  ·  npm
Maintainer: aocneanu

Discounts

License Stable Vue JavaScript SCSS npm Issues Merge Requests

Description

Discounts ships the Enso UI route tree and page modules used to manage client and supplier discount rules.

It covers the full backend-driven discount workflow for general, product, and service discounts, with dedicated list, create, and edit screens for both client and supplier contexts.

Installation

This package is distributed as part of the private Enso UI workspace and is normally consumed from the Solarlink client bundle.

Features

  • exports the /discounts route tree consumed by the Enso shell
  • ships separate client and supplier discount flows
  • covers general, product, and service discount families
  • reuses a shared Enso form wrapper to enforce mutually exclusive company/person selection on client forms

Usage

import discountsRoutes from '@enso-ui/discounts';
import ClientDiscountIndex from '@enso-ui/discounts/src/bulma/pages/discounts/clients/Index.vue';
import SupplierProductDiscountEdit from '@enso-ui/discounts/src/bulma/pages/discounts/suppliers/products/Edit.vue';

The package is page-oriented. Applications usually register the route tree and let the backend forms and tables drive the create/edit/index pages.

API

Default export

Default export for the discount route group.

Import: @enso-ui/discounts

Shared form building block

  • src/bulma/pages/discounts/clients/components/BaseForm.vue

Wraps EnsoForm and toggles the company_id and person_id fields so only one client target can be selected at a time.

Routes

/discounts/clients

Route names:

  • discounts.clients.index
  • discounts.clients.generals.create
  • discounts.clients.generals.edit
  • discounts.clients.products.create
  • discounts.clients.products.edit
  • discounts.clients.services.create
  • discounts.clients.services.edit

Pages:

  • src/bulma/pages/discounts/clients/Index.vue
  • src/bulma/pages/discounts/clients/generals/Create.vue
  • src/bulma/pages/discounts/clients/generals/Edit.vue
  • src/bulma/pages/discounts/clients/products/Create.vue
  • src/bulma/pages/discounts/clients/products/Edit.vue
  • src/bulma/pages/discounts/clients/services/Create.vue
  • src/bulma/pages/discounts/clients/services/Edit.vue

/discounts/suppliers

Route names:

  • discounts.suppliers.index
  • discounts.suppliers.generals.create
  • discounts.suppliers.generals.edit
  • discounts.suppliers.products.create
  • discounts.suppliers.products.edit
  • discounts.suppliers.services.create
  • discounts.suppliers.services.edit

Pages:

  • src/bulma/pages/discounts/suppliers/Index.vue
  • src/bulma/pages/discounts/suppliers/generals/Create.vue
  • src/bulma/pages/discounts/suppliers/generals/Edit.vue
  • src/bulma/pages/discounts/suppliers/products/Create.vue
  • src/bulma/pages/discounts/suppliers/products/Edit.vue
  • src/bulma/pages/discounts/suppliers/services/Create.vue
  • src/bulma/pages/discounts/suppliers/services/Edit.vue

Companion Backend Package

The backend companion provides the route contracts, form payloads, and table definitions consumed by these discount pages.

Depends On

License

Proprietary. See LICENSE.

Related Packages

vue

The progressive JavaScript framework for building modern web UI.

588,019,132 54,801
vue
@vueuse/shared
372,738,348 22,398
@vueuse/core

Collection of essential Vue Composition Utilities

367,188,523 22,398
@vitejs/plugin-vue

The official plugin for Vue SFC support in Vite.

333,357,380 686
eslint-plugin-vue

Official ESLint plugin for Vue.js

266,364,830 4,591

Version History

Version Released Vue License
5.2.5 ^3.5.0 proprietary
5.2.4 ^3.5.0 Custom
2.0.0 ^2.5.16 CC-BY-NC-ND-4.0
1.3.4 ^2.5.16 CC-BY-NC-ND-4.0
1.3.3 ^2.5.16 CC-BY-NC-ND-4.0