CLONE - Tank Monitor Auto Generates Order

Issue No: TM-3304
Created 1/24/2022 1:00:41 AM
Type Feature
Priority Critical
Status Closed
Resolution Fixed
Fixed Version 21.2
Description *This issue relates to i21 Help Desk ticket:* [ HDTN-268582 - Freeman Propane - Tank Monitor Auto Generates Order|https://helpdesk.irely.com/iRelyi21live/#/HD/Ticket/?ticket=HDTN-268582]   +Background:+   * Auto creation of orders via tank monitor is originally based on Wesroc Tank Monitor import with a specific conditions. ** If csv file > [ta_ltankcrit] value is True ** Run Out Date is Less than or equal to 5 days of Last Imported Date and Site has no existing call order * EcoGreen has been added on the tank monitor list wherein the data will be pulled via api. A condition for auto generation of order has been also added where: ** Order will be created if QuantityInTank(_Estimated Gallons_) < Site Total Reserve ** The conditions from Wesroc and tank monitor import business rules has been carried over * Anova GasLog is the third tank monitor which is based from EcoGreen wherein the data is also pulled via api. ** [ta_ltankcrit] or QuantityInTank fields is not used for Anova so the conditions for this were skipped. ** Tank monitor import business rules and the conditions from Wesroc - _Run Out Date is Less than or equal to 5 days of Last Imported Date and Site has no existing call order_ has been carried over   +Issue:+   * Call order is auto generated due to blank/null Run Out Date   +Suggestions for Review:+   * Skip auto generation of order when Run Out Date is blank/null * Skip auto generation of order if the condition from Wesroc is not applicable for Anova