mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2024-11-10 13:12:50 +01:00
Update texts
This commit is contained in:
parent
ed83f27537
commit
5c1eb7f7eb
@ -279,8 +279,8 @@ class TaskController extends BaseController
|
||||
|
||||
$task = $this->task_repo->save($request->all(), $task);
|
||||
|
||||
if($task->status_order != $old_task->status_order)
|
||||
$this->task_repo->sortStatuses($old_task, $task);
|
||||
// if($task->status_order != $old_task->status_order)
|
||||
// $this->task_repo->sortStatuses($old_task, $task);
|
||||
|
||||
event(new TaskWasUpdated($task, $task->company, Ninja::eventVars(auth()->user()->id)));
|
||||
|
||||
|
@ -84,7 +84,7 @@ class ValidInvoicesRules implements Rule
|
||||
}
|
||||
else if($invoice['amount'] > $inv->balance) {
|
||||
|
||||
$this->error_msg = ctrans('texts.amount_greater_than_balance');
|
||||
$this->error_msg = ctrans('texts.amount_greater_than_balance_v5');
|
||||
|
||||
return false;
|
||||
}
|
||||
|
@ -250,11 +250,12 @@ class SubscriptionService
|
||||
->where('balance', '>', 0)
|
||||
->first();
|
||||
|
||||
$pro_rata_refund = null;
|
||||
|
||||
// we calculate the pro rata refund for this invoice.
|
||||
if($outstanding_invoice)
|
||||
{
|
||||
|
||||
// $pro_rata_refund = $this->calculateProRataRefund($out
|
||||
}
|
||||
|
||||
//logic
|
||||
|
@ -120,6 +120,12 @@ class TemplateEngine
|
||||
}
|
||||
}
|
||||
|
||||
$converter = new CommonMarkConverter([
|
||||
'allow_unsafe_links' => false,
|
||||
]);
|
||||
|
||||
$this->body = $converter->convertToHtml($this->body);
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
|
@ -4209,6 +4209,8 @@ $LANG = array(
|
||||
'activity_82' => ':user archived subscription :subscription',
|
||||
'activity_83' => ':user deleted subscription :subscription',
|
||||
'activity_84' => ':user restored subscription :subscription',
|
||||
'amount_greater_than_balance_v5' => 'The amount is greater than the invoice balance. You cannot overpay an invoice.',
|
||||
|
||||
);
|
||||
|
||||
return $LANG;
|
||||
|
Loading…
Reference in New Issue
Block a user