mirror of
https://gitlab.com/CIEFWorldwideSdnBhd/exchange-2.0.git
synced 2026-08-31 18:34:10 +00:00
dmin Workflow - Fix Reported Issues - Automatically deduct funds from customer wallet when customer underpaid
This commit is contained in:
+6
-4
@@ -4,12 +4,14 @@ namespace App\Classes\Modules\Questionnaires\Processors;
|
||||
|
||||
class FetchNextQuestionMetadataV1AdminWFProcessor
|
||||
{
|
||||
public function execute($returnQuestion, $questionMetadata){
|
||||
public function execute($returnQuestion, $questionMetadata) {
|
||||
|
||||
if($returnQuestion && $returnQuestion->question_number === '1688_order_verification'){
|
||||
$returnQuestion->question_description = $questionMetadata['amount_processed'] ." ".$questionMetadata['fixed_currency']['short_code'] . "/" . $questionMetadata['amount'] ." ".$questionMetadata['fixed_currency']['short_code'];
|
||||
if($returnQuestion && $returnQuestion->question_number === '1688_underpaid_order_1'){
|
||||
$processed = $questionMetadata['amount_processed'];
|
||||
$amount = $questionMetadata['amount'];
|
||||
$questionMetadata['amount_to_be_deducted'] = $amount - $processed;
|
||||
}
|
||||
|
||||
return $returnQuestion;
|
||||
return $questionMetadata;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user