mirror of
https://gitlab.com/CIEFWorldwideSdnBhd/exchange-2.0.git
synced 2026-08-22 14:04:01 +00:00
20 lines
598 B
PHP
20 lines
598 B
PHP
<?php
|
|
|
|
namespace App\Classes\Modules\Questionnaires\Processors;
|
|
|
|
use App\Models\QAQuestions;
|
|
|
|
class FetchNextQuestionMetadataV1AdminWFProcessor
|
|
{
|
|
public function execute(QAQuestions $returnQuestion, ?array $questionMetadata) {
|
|
|
|
if($returnQuestion && $returnQuestion->question_number === '1688_underpaid_order_1'){
|
|
$amountProcessed = $questionMetadata['amount_processed'];
|
|
$amountPaid = $questionMetadata['paid_amount'];
|
|
$questionMetadata['amount_to_be_deducted'] = $amountProcessed - $amountPaid;
|
|
}
|
|
|
|
return $questionMetadata;
|
|
}
|
|
}
|