Commit Graph

93 Commits

Author SHA1 Message Date
Bilal Catic
55086fb54b handle unknown members, offices and rooms 2020-01-13 12:42:20 +01:00
Bilal Catic
62dc399a1a stop inserting and changing deleted unlock incidents 2020-01-09 23:23:28 +01:00
Bilal Catic
aafd046063 show rounded decimals for default values; handle zero as normal input 2020-01-09 02:26:35 +01:00
Bilal Catic
1a21e91796 implement backend methods to update incident fees 2020-01-09 01:33:19 +01:00
Bilal Catic
b2450faa0c add special check for unscheduled use in brake between reservations 2019-12-26 02:31:40 +01:00
Bilal Catic
40aef5ed30 reformat booking change incident fee description 2019-12-16 10:29:52 +01:00
Bilal Catic
ba5dc504b2 remove first N minutes from unscheduled use (N is time resolution) 2019-12-15 18:15:23 +01:00
Bilal Catic
501b8cf629 fix how unlocked and unscheduled incidents are applied 2019-12-13 18:36:39 +01:00
Bilal Catic
052f2ac482 change date of shortening fees to the date of booking 2019-12-09 07:39:46 +01:00
Bilal Catic
b13980a16d change date of shortening fees to the date of booking 2019-12-09 06:55:14 +01:00
Bilal Catic
2dc787d2ed reformat "moved to another day" fee text, show old booking time 2019-12-09 06:51:03 +01:00
Bilal Catic
9d142901df do not re-create deleted incidents 2019-12-06 06:04:45 +01:00
Bilal Catic
d4f205af1f Fix wrong unlocked incident level on the last day of month 2019-12-06 05:44:18 +01:00
Bilal Catic
fa1fa35986 add custom check for incident between two, not back-to-back bookings 2019-12-06 05:39:01 +01:00
Bilal Catic
8944f5181c fix how unlocked incident fees are applied 2019-12-06 03:16:24 +01:00
Bilal Catic
f9694570a5 add debugging logs 2019-12-05 09:27:39 +01:00
Bilal Catic
0ef109ffce insert debugging logs, comment for now 2019-12-03 18:21:38 +01:00
Bilal Catic
a14ca5aaa7 remove console logging 2019-12-03 18:20:34 +01:00
Bilal Catic
c30fb1adf6 synchronize incidents detection and save incidents to the DB 2019-12-02 20:57:46 +01:00
Bilal Catic
93d46c231e allow first time segment length for unscheduled use to be configurable 2019-11-22 20:22:44 +01:00
Bilal Catic
7c8a5e954e change fees formatting 2019-11-22 08:58:36 +01:00
Bilal Catic
fa4e574d6e remove obsolete logging 2019-11-21 14:34:50 +01:00
Bilal Catic
8a3db0d481 add deleteFees route and implement logic 2019-11-21 07:12:50 +01:00
Bilal Catic
3d051766b1 fetch only non-deleted unlocked/unscheduled incidents 2019-11-20 15:26:20 +01:00
Bilal Catic
136cad8bbd fix fee formatting issues 2019-11-20 12:27:42 +01:00
Bilal Catic
9ac1f57396 apply weekend rate to the reservation if applicable 2019-10-28 20:02:57 +01:00
Bilal Catic
8ac69f1497 delete reservations removed from ORD 2019-10-07 15:16:09 +02:00
Bilal Catic
639ba6b8cb fix practice summary report 2019-10-07 09:55:00 +02:00
Bilal Catic
aa8931f91a fix discount date 2019-10-04 19:51:39 +02:00
Bilal Catic
ef932ed36b add discount on first day of the month 2019-10-04 19:41:51 +02:00
Bilal Catic
fc662b73a6 Add logging in addFees steps 2019-10-04 16:54:12 +02:00
Bilal Catic
ca55bf83af load resource price if booking price is zero 2019-10-03 10:39:16 +02:00
Bilal Catic
0a4da1b18f fix dates in fees description 2019-09-11 12:26:08 +02:00
Bilal Catic
cd77159ea2 fix charging reservation changes 2019-09-11 12:25:25 +02:00
Bilal Catic
1b421d651c reformat fee descriptions 2019-09-03 09:58:23 +02:00
Bilal Catic
38f0f03736 remove square brackets from membership plan name before comparing 2019-09-02 23:28:31 +02:00
Bilal Catic
d55131e1f2 select all members when sending fees to the ORD if memberIds is empty 2019-08-31 02:12:12 +02:00
Bilal Catic
831cb43a92 change reservation fee description 2019-08-30 10:58:14 +02:00
Bilal Catic
52af9913fa add member name to the fee description if member is not part of the company 2019-08-27 09:01:55 +02:00
Bilal Catic
8e3f970037 update membership fee name for specific memberships 2019-08-27 08:23:54 +02:00
Bilal Catic
85b844cd59 change fees name format 2019-08-26 14:32:00 +02:00
Bilal Catic
47ff1d86cc change incident fee name format and add weekday name 2019-08-25 18:18:44 +02:00
Bilal Catic
9c855692b7 remove incidents if new duration is longer than initial duration 2019-08-24 09:26:52 +02:00
Bilal Catic
934ffa90a7 add migration; insert 'deleted' column in booking change incidents table 2019-08-22 11:14:35 +02:00
Bilal Catic
69ebf36bb1 add comment for possible future improvement 2019-08-21 06:49:12 +02:00
Bilal Catic
27cbe1f51c fix non-returning promise warning 2019-08-21 06:45:43 +02:00
Bilal Catic
ed9a3bf949 include overuse / unscheduled use in discount 2019-08-15 10:00:09 +02:00
Bilal Catic
930915cb95 reuse incidents data to calculate discount 2019-08-14 21:58:57 +02:00
Bilal Catic
8a80321fe3 skip adding null fees if there is no discount 2019-08-14 12:27:02 +02:00
Bilal Catic
dd4d909b5d add plan name filter for discount 2019-08-14 12:18:35 +02:00