Skip to content

Conversation

@RealDekkia
Copy link
Contributor

This PR Adds "maintenance Schedule" as another value-type an inventory-field can have.
grafik

The existing imf_value_list field is used to configure the reoccurring maintenance dates as described in the tooltip:

The internal name of the date field the current schedules applies to must be specified with a # symbol. e.g. #LAST_CHECK 
The cycle interval must be written in the same line separated by the |-symbol after the title. e.g. Yearly | 1y 
If no unit is specified, days are assumed. 
Possible units: d: days, w: weeks, m: months, y: years

The configuration can look like the one in the screenshot for example.

The Inventory-table automatically adds a column with the remaining days until the next maintenance after the maintenance-selection row itself:
grafik

The Translations for french are machine-generated, so they're probably not perfect.

@MightyMCoder MightyMCoder self-requested a review August 5, 2025 17:28
@MightyMCoder MightyMCoder added this to the Release 1.2.0 milestone Aug 5, 2025
@MightyMCoder MightyMCoder added the enhancement New feature or request label Aug 5, 2025
Copy link
Owner

@MightyMCoder MightyMCoder left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

On the maintain Itemfields page in fields.php the new field type didn't show up:
image

@RealDekkia
Copy link
Contributor Author

On the maintain Itemfields page in fields.php the new field type didn't show up: image

Fixed in 4c252b2
grafik

@RealDekkia RealDekkia requested a review from MightyMCoder August 8, 2025 11:03
@MightyMCoder MightyMCoder merged commit 6ee02b8 into MightyMCoder:master Aug 8, 2025
1 check passed
@MightyMCoder
Copy link
Owner

@RealDekkia: Many thanks for your work.
I implemented a separate selectbox to define the corresponding date field so there is no #FIELD_NAME necessary in the value list.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants