Debug and fixing a decimal problem at Invoice in CRM

This commit is contained in:
Dillon
2023-08-02 23:21:17 +08:00
parent 07eac828aa
commit 43aa0cc9c1
3 changed files with 1 additions and 5 deletions
@@ -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'],