diff --git a/app/Classes/Modules/PerfexCRM/Services/UpdatesPerfexCRMInvoice.php b/app/Classes/Modules/PerfexCRM/Services/UpdatesPerfexCRMInvoice.php index b7ab4b2a..c29a84b7 100644 --- a/app/Classes/Modules/PerfexCRM/Services/UpdatesPerfexCRMInvoice.php +++ b/app/Classes/Modules/PerfexCRM/Services/UpdatesPerfexCRMInvoice.php @@ -35,6 +35,9 @@ class UpdatesPerfexCRMInvoice array_push($newInvoiceItems,$item); } + $allowedPaymentModes = []; + array_push($allowedPaymentModes, 1, 2); + $data = [ 'number' => $invoice->number, 'date' => $invoice->date, @@ -46,7 +49,7 @@ class UpdatesPerfexCRMInvoice 'shipping_street' => $invoice->billing_street, 'project_id' => $projectId, 'items' => $newInvoiceItems, - 'allowed_payment_modes' => $invoice->allowed_payment_modes, + 'allowed_payment_modes' => $allowedPaymentModes, ]; $response = Http::asJson()->withHeaders([