This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Products with a Limited Request Period

Hi,

I am struggling with requesting items that have the validity period in ITShop set to a value.

In my scenario the Validity period is set to 365 days. When a user requests an item without specifying "Valid until" as additional information in the shopping cart, the request is sent to the approver with "unlimited" set as valid until value.

If the approver chooses to approve the request, but dont fill in the valid until field, he presented with an error message stating that "Valid until is a compulsory field and needs to be filled". If the approver denies the request, he is unable to change the valid until field and is presented with the same error message.

Is it possible to automatically fill the "Valid until"-value in the webshop with the validity period from the ITShop item?

I'm using D1IM 6.1.2

Any help will be greatly appreciated!

Parents
  • I was celebrating a bit too early.

    After the final approver have approved the request, the ValidUntil date is reset to the date of approval plus the value of MaxValidDays from the product requested, no matter what I set as ValidUntil in the shopping cart, or later in the approval process.

    Example:

    I set MaxValidDays on the service item to 365
    When the user orders an item, the ValidUntil is automaticcally set to 13.09.2017,
    The user changes the date to 20.09.2016
    The approver gets the new date and approves the request with ValidUntil set to 20.09.2016
    The date is reset to 13.09.2017 when the request is approved. The date should have been 20.09.2016


    This happens even with the custom template in ShoppingCartItem is removed.

Reply
  • I was celebrating a bit too early.

    After the final approver have approved the request, the ValidUntil date is reset to the date of approval plus the value of MaxValidDays from the product requested, no matter what I set as ValidUntil in the shopping cart, or later in the approval process.

    Example:

    I set MaxValidDays on the service item to 365
    When the user orders an item, the ValidUntil is automaticcally set to 13.09.2017,
    The user changes the date to 20.09.2016
    The approver gets the new date and approves the request with ValidUntil set to 20.09.2016
    The date is reset to 13.09.2017 when the request is approved. The date should have been 20.09.2016


    This happens even with the custom template in ShoppingCartItem is removed.

Children
No Data