Giter Club home page Giter Club logo

Comments (3)

dangowans avatar dangowans commented on June 24, 2024

If fees can be flat rate or percentage, this could address #71 as well.

from general-licence-manager.

dangowans avatar dangowans commented on June 24, 2024

SQL to update current beta databases.

create table LicenceCategoryAdditionalFees (
	licenceAdditionalFeeKey varchar(80) not null primary key,
	licenceCategoryKey varchar(50) not null,
	additionalFee varchar(100) not null,
	additionalFeeType varchar(10) not null,
	additionalFeeNumber decimal(10, 2) not null default 0,
	additionalFeeFunction varchar(50) not null default '',
	isRequired bit not null default 0,
	orderNumber smallint not null default 0,
	recordCreate_userName varchar(30) not null,
	recordCreate_timeMillis integer not null,
	recordUpdate_userName varchar(30) not null,
	recordUpdate_timeMillis integer not null,
	recordDelete_userName varchar(30),
	recordDelete_timeMillis integer,
	foreign key (licenceCategoryKey) references LicenceCategories (licenceCategoryKey)
) without rowid

create table LicenceAdditionalFees (
	licenceId integer not null,
	licenceAdditionalFeeKey varchar(80) not null,
	additionalFeeAmount decimal(10, 2) not null default 0,
	primary key (licenceId, licenceAdditionalFeeKey),
	foreign key (licenceId) references Licences (licenceId)
) without rowid

alter table Licences
add baseLicenceFee decimal(10, 2) not null default 0

update Licences
set baseLicenceFee = licenceFee

alter table Licences
add baseReplacementFee decimal(10, 2) not null default 0

update Licences
set baseReplacementFee = replacementFee

from general-licence-manager.

dangowans avatar dangowans commented on June 24, 2024

In testing now.

from general-licence-manager.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.