Closed DeeMcCart closed 6 months ago
31/01/24: DMcC: Now represented in the Product model, as cat 5 (?).
with these values selectable on a product:
14/02/24 Returned to this and simplified the structure. Lead time (days) now represented by an integer field on the product
14/02/24 DMcC: Returned to this and simplified the structrue. lead time(days) now represented by an integer field on the product, if this is 0 then the lead time is taken from the product's cat6 (STOCK, MTO, COMM etc) value, as these each have different lead times. The products model now includes:
def lead_time(self):
""" return lead time for product, if not set """
""" on product use from category leadtime """
if self.item_lead_time != 0:
return (self.item_lead_time)
else:
return (self.cat6_value.default_lead_time)
This is seen on the product detail as per images below:
14/02/24 DMcC added field order.planned_ship_date, method order order_ship_date (based on latest date of any order lines) added field orderline.line_ship_date, method item_ship_date Methods are not available to the order at first creation (werent picking up as default values) but can be used within the order creation functions. Job done.
EPIC: #24
FTU_07: As a First-Time User I want to understand whether an item is in-stock, made-to-order and what are lead times (e.g. available now, lead time 6 weeks for make-to-order, lead time 1 week for casted items)
Assumptions or Pre-Requisites:
Acceptance Criteria: (Must be completed before task is moved to 'Done')
Tasks
Before changing task status to 'Review' or 'Done' please provide comment (and screenprints if appropriate) as documentary evidence of task completion