Laravel EnsoLaravel Enso
Guide
Back End
Front End
GitHub
Guide
Back End
Front End
GitHub
  • Front End

    • Accessories
    • Addresses
    • Algolia
    • Audits
    • Auth
    • Bookmarks
    • Calendar
    • Card
    • Cargo Partner
    • Categories
    • Charts
    • Checkbox
    • Clipboard
    • Comments
    • Commercial
    • Companies
    • Confirmation
    • Currencies
    • Data Import
    • Date
    • Datepicker
    • Directives
    • Discounts
    • Divider
    • Documents
    • Dropdown
    • Dropdown Indicator
    • Eav
    • Emag
    • Emails
    • Enums
    • ERD
    • Facebook
    • Files
    • Filters
    • Financials
    • Forms
    • Frisbo
    • Google
    • Holidays
    • How to
    • Interactions
    • Inventory
    • IO
    • Laravel Validation
    • Loader
    • Localisation
    • Logs
    • Measurement Units
    • Meili Search
    • Menus
    • Mixins
    • Modal
    • Money
    • Monitored Emails
    • Notifications
    • Orderable Trees
    • Packaging Units
    • Pagination
    • People
    • Permissions
    • Product Lots
    • Products
    • Progress Bar
    • Progress Circle
    • Progress Indicator
    • Questionnaires
    • Quick View
    • Range Slider
    • Rating
    • Roles
    • Route Mapper
    • Sale Channels
    • Scroll to Top
    • Search Mode
    • Select
    • Sentry
    • Services
    • Smart Bill
    • SMS Advert
    • Strings
    • Switch
    • Tables
    • Tabs
    • Tasks
    • Teams
    • Textarea
    • Themes
    • Ticketing
    • Toastr
    • Transitions
    • Tree View
    • Tutorials
    • Typeahead
    • Typesense
    • UI
    • Uploader
    • UPS
    • User Groups
    • Users
    • Virtual Call Center
    • Vouchers
    • Webshop
    • WYSIWYG

Discounts

LicenseStableVueJavaScriptSCSSnpmIssuesMerge 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

  • laravel-enso/discounts ↗

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

Depends On

  • @enso-ui/filters ↗
  • @enso-ui/forms ↗
  • @enso-ui/tables ↗
  • @enso-ui/ui ↗

License

Proprietary. See LICENSE.

Edit this page on GitHub
Last Updated: 4/21/2026, 11:51:25 AM
Prev
Directives
Next
Divider