28 Commits

Author SHA1 Message Date
graham-dds
aabedbcac4 Make PoP start and end dates inclusive.
Also removes the clock class.

Makes PoP date ranges inclusive such that a task order with:
-  a start date on or after the current date
and
- an end date on or before the current date
should be considered valid.

This commit also removes the Clock class. This class had two methods as
shortcuts for common uses of pendlum functions. But it wasn't being used
in very many places, and it took up about the same space as

    from pendulum import today()
    ...
    today(tz="UTC").date()

If we want to add this back in, it might be a good idea to extend it for
other time functions we have sprinkled around, like the random date
functions in our tests
2020-01-06 12:29:59 -05:00
leigh-mil
614514d6a2 Update tables to match business logic 2019-12-02 14:46:11 -05:00
graham-dds
2af0a2ecaf Update existing tests for new CLIN logic
- Factory adds total_amount field, which is always greater than obligated
field
- add total_amount field on tests that create TOs manually
- update tests that calculate total_contract_amount and
total_obligated_amount
2019-09-12 16:11:12 -04:00
graham-dds
41bbbe8a39 add a sorted_clins property for clin sorting logic
CLINS have a special ordering:
 - First, they are sorted by the last three digits
 - Then, they are sorted by the first digit

Trying to add CLIN sorting logic to the relationship field in the task
order proved to be more challenging than expected. So, a separate
property was defined in order to access the clins in sorted order.
2019-09-04 12:35:56 -04:00
dandds
9fc6514d80 Clean up defunct upload and CRL logic.
- Applies our previous CSP namespacing pattern to the upload classes.
- Removes code and config for previous uploader implementation.
- Removes Attachment model's ability to upload files directly and
  adjusts tests that expected that behavior.
2019-08-08 13:20:27 -04:00
leigh-mil
299804ade2 Check to make sure clins complete as part of checking if TO is complete 2019-07-29 15:50:50 -04:00
richard-dds
48d4b466b1 Formatting 2019-06-10 15:16:26 -04:00
richard-dds
c4d02bb026 Remove unused imports 2019-06-10 15:16:26 -04:00
richard-dds
e84e61bbad Update seed script with TOs of various statuses 2019-06-10 15:15:39 -04:00
richard-dds
0f4d17a94a Implemen TaskOrder.is_completed 2019-06-10 15:15:39 -04:00
richard-dds
8ecf112c48 Implement new CLIN-based TO statuses 2019-06-10 15:15:08 -04:00
richard-dds
7b8ccbf145 Implement TO start_date and end_date 2019-06-10 15:15:08 -04:00
Montana
f462c3bd5e Add unit tests 2019-06-05 09:40:33 -04:00
leigh-mil
7bec073f78 Delete things related to deleted columns and table 2019-05-31 13:07:03 -04:00
Patrick Smith
ba3000dccc Add started status to task order model 2019-02-13 10:24:02 -05:00
Montana
9182b1078c Refactor attachment setters and add tests 2019-02-07 11:27:03 -05:00
Montana
d980260e7f Update test 2019-02-05 10:49:51 -05:00
Patrick Smith
045dcef6f9 Handle submitting form without csp estimate 2019-01-23 16:30:28 -05:00
Patrick Smith
672c562323 Allow removing a csp estimate from a task order 2019-01-23 11:16:54 -05:00
Patrick Smith
f580f69d35 Raise error if csp estimate is not of proper type 2019-01-23 11:16:54 -05:00
Patrick Smith
c9639435aa fixup w/ 8f8e7fa6 2019-01-15 10:54:39 -05:00
Patrick Smith
8f8e7fa65e Add active & expired task order statuses 2019-01-15 10:51:00 -05:00
Patrick Smith
2b61621402 Fix setting default status on task orders 2019-01-11 10:35:04 -05:00
dandds
e509c34cdd change name of request relationship to legacy task order 2018-12-13 11:36:45 -05:00
dandds
2f515d7b47 change current task order table name
rename existing task order factory

fix legacy task order repr
2018-12-13 11:36:44 -05:00
richard-dds
5f54468082 Timestamps and uuids everywhere 2018-09-21 14:00:01 -04:00
dandds
ca8b9028bc reports shows real budget information for total spend 2018-09-18 16:04:03 -04:00
dandds
a7fbd386e0 show financial verification data for existing task order 2018-09-12 08:53:53 -04:00