1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-11-10 13:12:50 +01:00

Update texts

This commit is contained in:
David Bomba 2021-04-14 07:40:07 +10:00
parent ed83f27537
commit 5c1eb7f7eb
5 changed files with 13 additions and 4 deletions

View File

@ -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)));

View File

@ -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;
}

View File

@ -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

View File

@ -120,6 +120,12 @@ class TemplateEngine
}
}
$converter = new CommonMarkConverter([
'allow_unsafe_links' => false,
]);
$this->body = $converter->convertToHtml($this->body);
return $this;
}

View File

@ -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;