Skip to content

Purchasing v1#5

Open
kelete wants to merge 19 commits into
kbhff:masterfrom
kelete:purchasing
Open

Purchasing v1#5
kelete wants to merge 19 commits into
kbhff:masterfrom
kelete:purchasing

Conversation

@kelete

@kelete kelete commented May 10, 2019

Copy link
Copy Markdown
Contributor

Purchasing module v1.

  • Creation of sql structures.
  • List / add / edit / Remove / Change Status of products.
  • Implemented Type Product structure
  • Item Department
  • Item Product
  • theme/classes/system/html.class.php > Implemented button option for script. Review if necessary.
    theme/classes/items/items.class.php
  • implemented class

Review js and css:

  • theme/www/js/lib/desktop/i-product_new.js

To Be Removed from pull request:

  • theme/www/bliv-medlem.php
  • theme/www/butik.php
  • theme/www/janitor/restructure.php

kelete added 19 commits March 22, 2019 13:31
V1 of modulse.
TODO:
- Fix CSS .
- Add image management in creation and edit of product.
- finish: AFHENTNINGSDAGE OG LOKALE ÅBNINGSDAGE
    - Data Structure review.
    - Calendar “exceptions” model design and functionality.
- Review obfuscation of form values.
- Review quality of i-product_new.js
- Review how we create and use Look Up Lists like “productAvailabilityOptions”, “supplierlist”, “productTypes”….
Some code that was added to janitor related to departments and products and it belongs to kbhff_dk
git is a hard tool to get...
Added code for item_departemnt .
Enhaced button functionality to accept javascript functions.
Update on price structure to give the option to create prices for the membership type.
TODO:
- Review css in general.
- Review css for media management in indkoeb.php and edit.php.
- finish functionality in AFHENTNINGSDAGE OG LOKALE ÅBNINGSDAGE
SQL:
system_departments: added column ['opening_weekday' TINYINT(1) NULL] to table [system_departments] to hold 1 to 7 the weekday where the department is open.
department_schedule: created table [department_schedule] to hold departemnt schedule exceptions:. Columns: closed: 1/0, schedule_date, opening_hours

Class:
Department Class: Modified to handle the opening_weekday;
Department Class. Function getDepartments: Added _option 'schedule_period_weeks' to add schedule list to the department list;
Afhentningsdage Class: Created to handle Department Schedules.

PHP:
afhentningsdage.php : controler for schedule.
afhentningsdage/list.php : display list of departments and a list with their schedule for 6 weeks ahead.
afhentningsdage/new.php : Create and edit department schedules.

TODO:
- communication with members when a department schedule changes.
- Convert <table> to <ul><li> in afhentningsdage/list.php
- Increase navigation on weeks in afhentningsdage/list.php
This code now in in the schedule / Afhentningsdage
Week starts on Sunday in PHP. In the calendar it's on monday.
The database takes the weekday number starting on Sunday now
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant