Admin Workflow - Fix Tested Issues

This commit is contained in:
Dillon Ngo
2025-01-10 12:19:20 +08:00
parent 701936d311
commit 67d7af1053
5 changed files with 26 additions and 15 deletions
@@ -129,14 +129,14 @@ class UpdateNextQuestionV1AdminWFLogic extends AbstractControllerLogic
$key1 = '1688_'.$key1;
$key2 = '1688_'.$key2;
}
// if (strpos($currentQuestion['question_number'], 'fill_po') === 0) {
// $key1 = 'fill_po_'.$key1;
// $key2 = 'fill_po_'.$key2;
// }
// if (strpos($currentQuestion['question_number'], 'approve_po') === 0) {
// $key1 = 'approve_po_'.$key1;
// $key2 = 'approve_po_'.$key2;
// }
if (strpos($currentQuestion['question_number'], 'fill_po') === 0) {
$key1 = 'xfill_po_'.$key1;
$key2 = 'xfill_po_'.$key2;
}
if (strpos($currentQuestion['question_number'], 'approve_po') === 0) {
$key1 = 'xapprove_po_'.$key1;
$key2 = 'xapprove_po_'.$key2;
}
$processingRecord = $booking->attributesKVP()->where('key', $key2)->first();
if ($processingRecord) {
@@ -149,7 +149,7 @@ class UpdateNextQuestionV1AdminWFLogic extends AbstractControllerLogic
$keyValuePairObject = new KeyValuePairObject($key1, true);
$this->createsKeyValuePair->execute($booking, $keyValuePairObject);
}
// $isNoGoingBack = 1;
$isNoGoingBack = 1;
}
$previousAnswer = null;