@dhyasama/totem-models 7.50.0 → 7.50.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/Financials.js +3 -3
- package/package.json +1 -1
package/lib/Financials.js
CHANGED
|
@@ -363,7 +363,7 @@ module.exports = function(mongoose, config) {
|
|
|
363
363
|
var isRejected = !_.isEmpty(snapshot.rejection);
|
|
364
364
|
|
|
365
365
|
// no uuid means the data was captured from the google sheet
|
|
366
|
-
if((!snapshot.uuid) || (!isManagedServices && isSubmitted) || (
|
|
366
|
+
if((!snapshot.uuid) || (!isManagedServices && isSubmitted) || (isManagedServices && isReviewed)) {
|
|
367
367
|
snapshot.status = 'Completed';
|
|
368
368
|
snapshot.action = null;
|
|
369
369
|
}
|
|
@@ -389,8 +389,8 @@ module.exports = function(mongoose, config) {
|
|
|
389
389
|
|
|
390
390
|
else {
|
|
391
391
|
snapshot.status = 'In Progress';
|
|
392
|
-
if(
|
|
393
|
-
else if(
|
|
392
|
+
if(isManagedServices && isSubmitted && !isRejected) snapshot.action = 'Review';
|
|
393
|
+
else if(isManagedServices && isSubmitted && isRejected) snapshot.action = 'Rejected';
|
|
394
394
|
else if(latestSentOn.status) snapshot.action = latestSentOn.status;
|
|
395
395
|
}
|
|
396
396
|
|