mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2026-03-03 02:37:02 +00:00
Test routing ID if deliverable
This commit is contained in:
@@ -613,6 +613,26 @@ class Mutator implements MutatorInterface
|
||||
$this->setEmailRouting($client_email);
|
||||
}
|
||||
|
||||
|
||||
if(stripos($this->invoice->client->routing_id ?? '', ":") !== false){
|
||||
|
||||
$parts = explode(":", $this->invoice->client->routing_id);
|
||||
|
||||
if(count($parts) == 2){
|
||||
$scheme = $parts[0];
|
||||
$id = $parts[1];
|
||||
|
||||
if($this->storecove->discovery($id, $scheme)){
|
||||
$this->setStorecoveMeta($this->buildRouting([
|
||||
["scheme" => $scheme, "id" => $id]
|
||||
]));
|
||||
|
||||
return $this;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
$code = $this->getClientRoutingCode();
|
||||
$identifier = false;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user