Template:IMS Document control: Difference between revisions

No edit summary
Tags: Reverted 2017 source edit
No edit summary
Tags: Manual revert 2017 source edit
Line 36: Line 36:
!Valid:
!Valid:
|{{#if:{{{validFrom|}}}|[[IMS Valid from::{{#time:d.m.Y|{{{validFrom|}}}}}]] to |}} {{#if:{{{validUntil|}}}|{{#set:IMS Valid until={{{validUntil}}}}}{{#time:d.m.Y|{{{validUntil|}}}}} {{#invoke:IndicatorProcess|forDate|{{{validUntil|}}}}}|{{#ifeq: {{#show:{{FULLPAGENAME}}|?QM/Document state}}|First draft|Not valid|{{#set:IMS Valid until={{#var:validUntil}}}} {{#show:{{FULLPAGENAME}}|?IMS Valid until#-F[d.m.Y]}} {{#invoke:IndicatorProcess|forDate|{{#var:validUntil}}}}}}}}
|{{#if:{{{validFrom|}}}|[[IMS Valid from::{{#time:d.m.Y|{{{validFrom|}}}}}]] to |}} {{#if:{{{validUntil|}}}|{{#set:IMS Valid until={{{validUntil}}}}}{{#time:d.m.Y|{{{validUntil|}}}}} {{#invoke:IndicatorProcess|forDate|{{{validUntil|}}}}}|{{#ifeq: {{#show:{{FULLPAGENAME}}|?QM/Document state}}|First draft|Not valid|{{#set:IMS Valid until={{#var:validUntil}}}} {{#show:{{FULLPAGENAME}}|?IMS Valid until#-F[d.m.Y]}} {{#invoke:IndicatorProcess|forDate|{{#var:validUntil}}}}}}}}
{{#show:{{FULLPAGENAME}}|?QM/Document state}}
{{#vardefineecho:validUntil|{{#time:d.m.Y|{{#show:{{FULLPAGENAME}}|? QM/Approval date#-F[d.m.Y]}}  + 366days}}}}
{{#ifeq: {{{documentType}}}|Work instruction|
{{#ifeq: {{{documentType}}}|Work instruction|
{{!}}-  
{{!}}-  

Revision as of 11:29, 14 June 2024

Template for IMS Document control.