mirror of
https://gitlab.com/CIEFWorldwideSdnBhd/exchange-2.0.git
synced 2026-08-21 13:33:57 +00:00
Debug and fixing a decimal problem at Invoice in CRM
This commit is contained in:
@@ -196,8 +196,6 @@ class CreatePerfexCRMInvoiceProcessor
|
||||
}
|
||||
}
|
||||
|
||||
Log::error('CreatePerfexCRMInvoiceProcessor debug: '.json_encode($transaction)); //cief todo: to be removed
|
||||
|
||||
//When this transaction is of TransactionType::PAYMENT, the amount is actually in the currecy user choose to pay (RM)
|
||||
//So there is no need to convert it
|
||||
if ($transaction->type == TransactionType::PAYMENT){
|
||||
|
||||
@@ -62,7 +62,7 @@ class FetchPerfexCRMInvoiceProcessor
|
||||
if ($result) {
|
||||
$invoiceId = $result->payload['id'];
|
||||
} else {
|
||||
$log['message'] = 'FetchPerfexCRMInvoiceProcessor CreatePerfexCRMInvoiceProcessor failed';
|
||||
$log['message'] = 'FetchPerfexCRMInvoiceProcessor failed';
|
||||
Helper::debugLogger($log);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -24,8 +24,6 @@ class TransactionToPerfexCRMProcessorV2
|
||||
$projectName = 'Exchange | ' . $bookingInfo['serviceTypeName'] . ' | ' . $bookingInfo['bookingMarking'];
|
||||
$tasks = $this->defineTasks($model, $status);
|
||||
|
||||
Log::error('TransactionToPerfexCRMProcessorV2 debug: '.json_encode($transaction)); //cief todo: to be removed
|
||||
|
||||
if(count($tasks) > 0) {
|
||||
$updatePerfexCRMObject = new UpdatePerfexCRMObject(
|
||||
$bookingInfo['companyName'],
|
||||
|
||||
Reference in New Issue
Block a user