mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-09 03:14:30 -04:00
Merge branch 'v5-develop' of https://github.com/turbo124/invoiceninja into v5-develop
This commit is contained in:
commit
3533a51c79
@ -71,7 +71,7 @@ class RecurringInvoicesCron
|
|||||||
SendRecurring::dispatchNow($recurring_invoice, $recurring_invoice->company->db);
|
SendRecurring::dispatchNow($recurring_invoice, $recurring_invoice->company->db);
|
||||||
}
|
}
|
||||||
catch(\Exception $e){
|
catch(\Exception $e){
|
||||||
nlog("Unable to sending recurring invoice {$recurring_invoice->id}");
|
nlog("Unable to sending recurring invoice {$recurring_invoice->id} ". $e->getMessage());
|
||||||
}
|
}
|
||||||
|
|
||||||
});
|
});
|
||||||
@ -107,7 +107,7 @@ class RecurringInvoicesCron
|
|||||||
SendRecurring::dispatchNow($recurring_invoice, $recurring_invoice->company->db);
|
SendRecurring::dispatchNow($recurring_invoice, $recurring_invoice->company->db);
|
||||||
}
|
}
|
||||||
catch(\Exception $e){
|
catch(\Exception $e){
|
||||||
nlog("Unable to sending recurring invoice {$recurring_invoice->id}");
|
nlog("Unable to sending recurring invoice {$recurring_invoice->id} ". $e->getMessage());
|
||||||
}
|
}
|
||||||
|
|
||||||
});
|
});
|
||||||
|
@ -73,6 +73,7 @@ class SendRecurring implements ShouldQueue
|
|||||||
$invoice->date = now()->format('Y-m-d');
|
$invoice->date = now()->format('Y-m-d');
|
||||||
$invoice->due_date = $this->recurring_invoice->calculateDueDate(now()->format('Y-m-d'));
|
$invoice->due_date = $this->recurring_invoice->calculateDueDate(now()->format('Y-m-d'));
|
||||||
$invoice->recurring_id = $this->recurring_invoice->id;
|
$invoice->recurring_id = $this->recurring_invoice->id;
|
||||||
|
$invoice->saveQuietly();
|
||||||
|
|
||||||
if($invoice->client->getSetting('auto_email_invoice'))
|
if($invoice->client->getSetting('auto_email_invoice'))
|
||||||
{
|
{
|
||||||
|
@ -84,7 +84,7 @@ class GatewayType extends StaticModel
|
|||||||
case self::EPS:
|
case self::EPS:
|
||||||
return ctrans('texts.eps');
|
return ctrans('texts.eps');
|
||||||
case self::BECS:
|
case self::BECS:
|
||||||
return ctrans('tets.becs');
|
return ctrans('texts.becs');
|
||||||
case self::ACSS:
|
case self::ACSS:
|
||||||
return ctrans('texts.acss');
|
return ctrans('texts.acss');
|
||||||
case self::DIRECT_DEBIT:
|
case self::DIRECT_DEBIT:
|
||||||
|
@ -33,7 +33,7 @@ class MarkSent extends AbstractService
|
|||||||
{
|
{
|
||||||
|
|
||||||
/* Return immediately if status is not draft */
|
/* Return immediately if status is not draft */
|
||||||
if ($this->invoice->fresh()->status_id != Invoice::STATUS_DRAFT) {
|
if ($this->invoice && $this->invoice->fresh()->status_id != Invoice::STATUS_DRAFT) {
|
||||||
return $this->invoice;
|
return $this->invoice;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -22,7 +22,7 @@
|
|||||||
</label>
|
</label>
|
||||||
<div id="mandate-acceptance">
|
<div id="mandate-acceptance">
|
||||||
<input type="checkbox" id="becs-mandate-acceptance" class="input mr-4">
|
<input type="checkbox" id="becs-mandate-acceptance" class="input mr-4">
|
||||||
<label for="becs-mandate-acceptance">{{ctrans('texts.becs_mandat')}}</label>
|
<label for="becs-mandate-acceptance">{{ctrans('texts.becs_mandate')}}</label>
|
||||||
</div>
|
</div>
|
||||||
</form>
|
</form>
|
||||||
@endcomponent
|
@endcomponent
|
||||||
|
Loading…
x
Reference in New Issue
Block a user