Code Monkey home page Code Monkey logo

stat's People

Contributors

aemreunal avatar bbsarikaya avatar uguurozkan avatar

Watchers

 avatar  avatar  avatar  avatar

Forkers

uguurozkan

stat's Issues

HeadlessException when running tests

With the introduction of a GUI at e6c5cf1, all the tests fail with a java.awt.HeadlessException. This is normal, as the tests are (by default) ran in a headless environment. There should be a custom ApplicationContext for testing, which does not instantiate a GUI.

Sold product deletion

When a sold product (meaning a product that is part of a sale) is attempted to be deleted by the ProductService, a ConstraintViolationException is thrown. Must be fixed by either:

  1. Disassociating sales from the product when the product is being deleted
  2. Refusing to remove until there are outstanding sales of that product

Sale total decimal

When calculating the total of a sale, floating point precision leads to weird sales totals.
Sales total decimal
As seen above, the sales total has lots of trailing 9's.

Forecast time frame

When we are in 2015, should we forecast the entirety of 2015 using historic data or should we forecast 2016 using historic data, plus incomplete 2015 data?

Product duplication

Existing products should be duplicated with a single button click. The names must be different, though.

Single filters to range filters

Filters for the followings should be changed:

  • Sale Page
    • Date of Sale -> From - To
    • Total Price -> Min - Max
  • Product Page
    • Unit Price -> Min - Max

Duplicate product name handling

The error for trying to create a product with a name as same as that of another, pre-existing product should be actually handled, rather than ignored (as seen here).

Cancel adding a product

After opening the new product window, the 'Back' button used to cancel product entry (and close the window) is disabled and can't be clicked.

Product Info page

capture

Description should be multiline and
unit price and description can be switched.

Date parse problem

I'm taking java.lang.IllegalArgumentException when I run the application. Possibly it appears when converting Date taken from DB to JTable object.

image

Zero total price

image

Although there are products attached to sales, the total price shows zero.

ID tracking structure

The idList structure (See here) causes problems like removing a product from view even it is there. It should be changed.

Same product shown twice

After creating a product, restarting the program and clicking to create a new sale, the same product is listed twice:
Duplicate product
The same product can be added twice to the sale:
Duplicate product sale

Add window button placement

The 'Confirm' & 'Cancel' buttons of the AddProductPage and AddSalePage should be side-by-side instead of on top of each other. Current GUI:

addsalepage
addproductpage

Customer name completion

When creating a sale, the customer name field should show a suggestion, based on previous sales' customer names and the characters typed into the customer name field.

Date picker

When adding a sale, the date should be chosen with a 'date picker', similar to the one below:
Date picker
The example in question is from the JDatePicker project.

Window size

image

Window size is getting smaller when switching back to menu page

Add product window cosmetics

  1. The add product window should close automatically when/after a new product is created.
  2. The 'Back' button should be relabelled as 'Cancel' or such.

Sales of a product

Sales of a certain product can't be accessed through the product entity (using the ProductService).

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.