qbicsoftware / qoffer-portlet

QBiC offer generator aims to fulfill quotation preparation processes in a fully automatised fashion.
MIT License
0 stars 0 forks source link
other

Qoffer-Portlet

Build StatusCode Coverage

Qoffer-Portlet - The QBiC Offer Manager allows the user to create offers via the Offer Generator Tab, manage and print existing offers via the Offer Manager Tab and create and manage packages for the offers via the Package Manager Tab.

Author

Created by Benjamin Sailer, Jennifer Boedker (jennifer.boedker@student.uni-tuebingen.de).

Note for Developers

Since some resource files contain sensitive information they are stored in Google Drive. Ask the BioPMs for them when working on this portlet.

Known Issues

Browser Caching

Firefox caches the generated offer-files. Changes to the contents in the offer are not reflected in the file of a fresh download since the filename stays the same and the browser provides the old cached file. This can be avoided by disabling caching: browse about:config and set browser.cache.disk.enable to false (see: https://github.com/qbicsoftware/qoffer-portlet/issues/15).

Description

Offer Generator

The Offer Generator Tab allows the user to generate offers for the available openBIS projects and also to add the packages at the same time. The packages can then be edited via Offer Generator tab (change quantity, add/remove packages) or via the Package Manager tab (change package name, description, price, etc.).

Generating an offer:

  1. Select a project from the list of available projects. Note: You can filter the projects by typing the openBIS id of the project you want to create the offer for in the ComboBox.
  2. Add the desired packages to the project by either double clicking or using the arrow buttons. The packages can also be filtered by their name and/or their id using the TextField.
  3. Generate the offer by hitting the complete button.

Offer Manager

The Offer Manager Tab allows the user to view all the offers stored in the database, edit some fields (e.g. offer name, description, etc.) and adding/removing the packages for the offers. Furthermore the user can update the package quantity for the currently selected offer and also change the price (internal/external academic/external commercial) the package should use. Additionally the user can generate a .docx file for the current offer and download it.

Editing an offer:

The following operations are supported via the edit menu (opens by either selecting an offer and hitting shift + enter or by double clicking an offer):

The following operations are supported via the control bar below the offer grid:

The following operations are supported via the control bar at the bottom. Note #1: This control bar is only shown when an offer has been selected! Note #2: You can change the packages to display via the Select package group ComboBox. E.g. if you want to see only the Sequencing packages below, simply select Sequencing in the Select Package group ComboBox.

Generating the .docx file:

Generating the .docx file is rather easy:

  1. Select an offer.
  2. Hit the Generate Offer button.
  3. Download the generated file via the dialog.

The implementation details can be found here.

Package Manager

The package manager allows the user to add new packages and also to edit or delete existing ones.

Package management:

The following operations are supported for the packages:

Editing a package:

Editing a package is usually done via the inline editor. To open the editor either select the package and hit shift + enter (works more consistently) or double click the package.

The following operations are supported for editing the packages:

Automatic price calculation:

qOffer supports automatic calculation of the external academic and external commercial price based on the internal price. To enable this check the Auto-calculate external prices check box and edit the internal price via the inline editor (see above). Note: It might be necessary to open the inline editor via selecting the row and hitting shift + enter rather than double clicking, since Vaadin sometimes fails to grab the currently selected row if selected via double click. The detailed README on the implementation details can be found here.

How to Install

Install as any other portlet in your Liferay instance.