Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[FEATURE REQUEST] Additional licence fees #85

Closed
dangowans opened this issue May 25, 2022 · 3 comments
Closed

[FEATURE REQUEST] Additional licence fees #85

dangowans opened this issue May 25, 2022 · 3 comments
Assignees
Labels
enhancement New feature or request

Comments

@dangowans
Copy link
Member

What feature are you suggesting?

I noticed that under the fee, we need to add a category for re-inspection. This is only for certain licences.

A re-inspection fee is at the discretion of the by-law officer or police officer. We would charge that in addition to the renewal fee.

Is your feature request related to a problem?

No.

Are there any workarounds? Are there any alternative solutions that would work?

Any amount can be added to the transaction log, including a re-inspection fee. There are notes available as well to further specify the nature of the transaction.

Are there any other helpful details?

Additional fees will affect determining the outstanding balance on a licence,

@dangowans dangowans added the enhancement New feature or request label May 25, 2022
@dangowans
Copy link
Member Author

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

@dangowans
Copy link
Member Author

dangowans commented May 27, 2022

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

dangowans added a commit that referenced this issue May 27, 2022
dangowans added a commit that referenced this issue May 27, 2022
@dangowans dangowans self-assigned this May 27, 2022
dangowans added a commit that referenced this issue May 30, 2022
done
- add additional fee
- update additional fee
- reorder additional fees

todo
- delete additional fee
- format render additional fees
dangowans added a commit that referenced this issue Jun 3, 2022
@dangowans
Copy link
Member Author

In testing now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant