mirror of
https://gitlab.com/CIEFWorldwideSdnBhd/exchange-2.0.git
synced 2026-08-27 16:34:00 +00:00
Merge branch 'dillon/137-project-upgrade-update-0-a' into vapor/development
This commit is contained in:
@@ -19,6 +19,7 @@ class LogHelper
|
||||
{
|
||||
$envVar = env('LARAVEL_VAPOR_ENABLED');
|
||||
$isLocal = env('VAPOR_ENV') === 'local';
|
||||
Log::info("Info: " . json_encode($message));
|
||||
Log::info("Info: {$message}, channelName: {$this->channelName}, envVar {$envVar}");
|
||||
if ($envVar && !$isLocal) {
|
||||
Log::channel($this->channelName.'_vapor')->info($message);
|
||||
|
||||
@@ -86,6 +86,12 @@ class CallbackBillplzLogic
|
||||
$billplzXSignatureObject = new BillplzXSignatureObject($request);
|
||||
|
||||
if(!$billplzXSignatureObject->isValidSignature()){
|
||||
Log::info('Billplz signature validation failed', [
|
||||
'computed_signature' => $billplzXSignatureObject->getBillPlzComputedXSignature(),
|
||||
'request_signature' => $request->input('x_signature'),
|
||||
'constructed_string' => $billplzXSignatureObject->getBillPlzConstructString(),
|
||||
'request_data' => $request->all(),
|
||||
]); //cief todo: 137 - DEBUG
|
||||
throw new MalformedRequestException('Billplz Payment validation failed.');
|
||||
}
|
||||
|
||||
|
||||
@@ -67,11 +67,18 @@ class ApprovePurchaseOrderLogic extends AbstractControllerLogic
|
||||
|
||||
$this->updatesTransactionStatus->execute($purchaseOrder, ApprovalStatus::APPROVED);
|
||||
|
||||
if($booking->invoice_status === ApprovalStatus::APPROVED){
|
||||
$bookingOriginalStatus = ApprovalStatus::COMPLETED;
|
||||
}
|
||||
else{
|
||||
$bookingOriginalStatus = $booking->status;
|
||||
}
|
||||
|
||||
$this->createInvoiceTransactionProcessor->execute($booking, "", null, [
|
||||
'generateEInvoice' => false,
|
||||
'generateEInvoiceWithNormalInvoiceTemplate' => false,
|
||||
'generateEInvoiceRefund' => false,
|
||||
'bookingOriginalStatus' => $booking->status
|
||||
'bookingOriginalStatus' => $bookingOriginalStatus
|
||||
]
|
||||
);
|
||||
|
||||
|
||||
+1
-1
@@ -187,7 +187,7 @@ class ImportPurchaseOrderTransactionLogic extends AbstractControllerLogic
|
||||
$sheet = $collection->first()->skip(1);
|
||||
|
||||
$products = $sheet->map(function ($row) {
|
||||
Log::info($row);
|
||||
Log::info('ImportPurchaseOrderTransactionLogic Row data: ' . json_encode($row));
|
||||
$stockCode = $row[0];
|
||||
$description = $row[1];
|
||||
$quantity = $row[2];
|
||||
|
||||
@@ -4,6 +4,9 @@ namespace App\Providers;
|
||||
|
||||
use Illuminate\Support\Facades\Schema;
|
||||
use Illuminate\Support\ServiceProvider;
|
||||
use Illuminate\Cache\RateLimiting\Limit;
|
||||
use Illuminate\Http\Request;
|
||||
use Illuminate\Support\Facades\RateLimiter;
|
||||
|
||||
class AppServiceProvider extends ServiceProvider
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user