My form Add_Charge started behaving oddly with a sequence of "if" and "else" conditions. The sequence is meant to pass a set dollar amount to the Fee_Earned field On Add>On Success and On Edit>On success. The sequence worked fine for 5 months, then it stopped passing the dollar amount about a week and a half ago.
I created a support ticket with Zoho Creator (#17925342#) on Aug 31st that remains open and without any updates since Sept 4.
Thank you for any input or assistance in advance. Here is the original, unedited script:
- //Adds amounts due based on type of entry.
- if (input.Shift_Type = "ERCall-OnSite")
- {
- input.Fee_Earned = 1400.0;
- }
- else if (input.Shift_Type = "Wknd")
- {
- input.Fee_Earned = 1200.0;
- }
- else if (input.Shift_Type = "BprCall-Home")
- {
- input.Fee_Earned = 200.0;
- }
- else if (input.Shift_Type = "M-F PRN")
- {
- input.Fee_Earned = 1200.0;
- }
- else if (input.Add_New = "Holiday Bonus")
- {
- input.Fee_Earned = 500.0;
- }