mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-05-24 02:14:21 -04:00
Fixes for Send Email (#3347)
* fixes for travis * Fixes for OpenAPI docs * Fixes for send -> send_email
This commit is contained in:
parent
2be8d89b98
commit
0690d615dd
@ -77,7 +77,7 @@ before_script:
|
||||
|
||||
script:
|
||||
- php ./vendor/bin/phpunit --debug --verbose --coverage-clover=coverage.xml
|
||||
#- php artisan dusk
|
||||
- php artisan dusk
|
||||
#- npm test
|
||||
after_success:
|
||||
- bash <(curl -s https://codecov.io/bash)
|
||||
|
@ -22,6 +22,7 @@
|
||||
* @OA\Property(property="is_primary", type="boolean", example=true, description="________"),
|
||||
* @OA\Property(property="confirmed", type="boolean", example=true, description="________"),
|
||||
* @OA\Property(property="is_locked", type="boolean", example=true, description="________"),
|
||||
* @OA\Property(property="send_email", type="boolean", example=true, description="________"),
|
||||
* @OA\Property(property="failed_logins", type="number", format="integer", example="3", description="________"),
|
||||
* @OA\Property(property="email_verified_at", type="number", format="integer", example="134341234234", description="________"),
|
||||
* @OA\Property(property="paid_to_date", type="number", format="float", example="10.00", description="________"),
|
||||
|
@ -56,9 +56,9 @@ class InvoiceRepository extends BaseRepository {
|
||||
|
||||
if (isset($data['client_contacts'])) {
|
||||
foreach ($data['client_contacts'] as $contact) {
|
||||
if ($contact['send'] == 1) {
|
||||
if ($contact['send_email'] == 1) {
|
||||
$client_contact = ClientContact::find($this->decodePrimaryKey($contact['id']));
|
||||
$client_contact->send = true;
|
||||
$client_contact->send_email = true;
|
||||
$client_contact->save();
|
||||
}
|
||||
}
|
||||
|
@ -47,9 +47,9 @@ class QuoteRepository extends BaseRepository
|
||||
|
||||
if (isset($data['client_contacts'])) {
|
||||
foreach ($data['client_contacts'] as $contact) {
|
||||
if ($contact['send'] == 1) {
|
||||
if ($contact['send_email'] == 1) {
|
||||
$client_contact = ClientContact::find($this->decodePrimaryKey($contact['id']));
|
||||
$client_contact->send = true;
|
||||
$client_contact->send_email = true;
|
||||
$client_contact->save();
|
||||
}
|
||||
}
|
||||
|
@ -37,12 +37,12 @@ class CreateInvitations extends AbstractService
|
||||
->whereInvoiceId($this->invoice->id)
|
||||
->first();
|
||||
|
||||
if (!$invitation && $contact->send) {
|
||||
if (!$invitation && $contact->send_email) {
|
||||
$ii = InvoiceInvitationFactory::create($this->invoice->company_id, $this->invoice->user_id);
|
||||
$ii->invoice_id = $this->invoice->id;
|
||||
$ii->client_contact_id = $contact->id;
|
||||
$ii->save();
|
||||
} elseif ($invitation && !$contact->send) {
|
||||
} elseif ($invitation && !$contact->send_email) {
|
||||
$invitation->delete();
|
||||
}
|
||||
});
|
||||
|
@ -22,12 +22,12 @@ class CreateInvitations
|
||||
->whereQuoteId($quote->id)
|
||||
->first();
|
||||
|
||||
if (!$invitation && $contact->send) {
|
||||
if (!$invitation && $contact->send_email) {
|
||||
$ii = QuoteInvitationFactory::create($quote->company_id, $quote->user_id);
|
||||
$ii->quote_id = $quote->id;
|
||||
$ii->client_contact_id = $contact->id;
|
||||
$ii->save();
|
||||
} elseif ($invitation && !$contact->send) {
|
||||
} elseif ($invitation && !$contact->send_email) {
|
||||
$invitation->delete();
|
||||
}
|
||||
});
|
||||
|
Loading…
x
Reference in New Issue
Block a user