Fix error from production logs

This commit is contained in:
Dillon
2023-08-05 01:31:15 +08:00
parent bea8180e20
commit 818672bbf5
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -61,7 +61,7 @@ class UpdatePerfexCRM implements ShouldQueue
}
private function getInvoiceIdOrCreateInvoice(){
if($this->transaction != null && $this->transaction->type !== TransactionType::PURCHASE_ORDER){
if($this->transaction != null){
$fetchPerfexCRMInvoiceObject = new FetchPerfexCRMInvoiceObject(
$this->updatePerfexCRMObject->getContactEmail(),
$this->transaction
+1 -1
View File
@@ -60,7 +60,7 @@ class UpdatePerfexCRMInvoice implements ShouldQueue
Log::error(json_encode('UpdatePerfexCRMInvoice debug $number: '.$number));
if(is_null($invoice)){
$result = (App()->make(CreatePerfexCRMInvoiceProcessor::class))->execute($transaction, null, null, $this->updatePerfexCRMInvoiceObject->getIsPaid());
$result = (App()->make(CreatePerfexCRMInvoiceProcessor::class))->execute($transaction, null, null);
if ($result) {
$invoiceId = $result->payload['id'];
} else {