mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-09 02:04:30 -04:00
minor fixes for checking vendor notifications
This commit is contained in:
parent
dc39d7f01a
commit
9bfab816fb
@ -63,8 +63,8 @@ class UpdateTaxData implements ShouldQueue
|
||||
|
||||
if (!$this->client->state && $this->client->postal_code) {
|
||||
|
||||
$this->client->state = USStates::getState($this->client->postal_code);
|
||||
$this->client->saveQuietly();
|
||||
$this->client->update(['state' => USStates::getState($this->client->postal_code)]);
|
||||
// $this->client->saveQuietly();
|
||||
|
||||
}
|
||||
|
||||
|
@ -41,6 +41,9 @@ class VendorExpenseNotify implements ShouldQueue
|
||||
{
|
||||
MultiDB::setDB($this->db);
|
||||
|
||||
if(!$this->expense->vendor)
|
||||
return;
|
||||
|
||||
$this->expense->vendor->contacts->filter(function (VendorContact $contact) {
|
||||
return $contact->send_email && $contact->email;
|
||||
})->each(function (VendorContact $contact) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user