mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-09 03:14:30 -04:00
Minor bug fixes
This commit is contained in:
parent
dcc852eafa
commit
b6d6758169
@ -57,6 +57,11 @@ class SendRecurringInvoices extends Command {
|
||||
$invoice->tax_name = $recurInvoice->tax_name;
|
||||
$invoice->tax_rate = $recurInvoice->tax_rate;
|
||||
$invoice->invoice_design_id = $recurInvoice->invoice_design_id;
|
||||
$invoice->custom_value1 = $recurInvoice->custom_value1;
|
||||
$invoice->custom_value2 = $recurInvoice->custom_value2;
|
||||
$invoice->custom_taxes1 = $recurInvoice->custom_taxes1;
|
||||
$invoice->custom_taxes2 = $recurInvoice->custom_taxes2;
|
||||
$invoice->is_amount_discount = $recurInvoice->is_amount_discount;
|
||||
|
||||
if ($invoice->client->payment_terms)
|
||||
{
|
||||
|
@ -878,7 +878,7 @@ class AccountController extends \BaseController {
|
||||
}
|
||||
else
|
||||
{
|
||||
//$this->accountRepo->registerUser($user);
|
||||
$this->accountRepo->registerUser($user);
|
||||
}
|
||||
|
||||
$activities = Activity::scope()->get();
|
||||
|
@ -99,7 +99,7 @@ class AppController extends BaseController {
|
||||
$user->amend();
|
||||
|
||||
//Auth::login($user, true);
|
||||
//$this->accountRepo->registerUser($user);
|
||||
$this->accountRepo->registerUser($user);
|
||||
|
||||
return Redirect::to('/invoices/create');
|
||||
}
|
||||
|
@ -310,6 +310,17 @@ class InvoiceController extends \BaseController {
|
||||
|
||||
private static function getViewModel()
|
||||
{
|
||||
$recurringHelp = '';
|
||||
foreach(preg_split("/((\r?\n)|(\r\n?))/", trans('texts.recurring_help')) as $line){
|
||||
$parts = explode("=>", $line);
|
||||
if (count($parts) > 1) {
|
||||
$line = $parts[0] . ' => ' . Utils::processVariables($parts[0]);
|
||||
$recurringHelp .= '<li>' . strip_tags($line) . '</li>';
|
||||
} else {
|
||||
$recurringHelp .= $line;
|
||||
}
|
||||
}
|
||||
|
||||
return [
|
||||
'account' => Auth::user()->account,
|
||||
'products' => Product::scope()->orderBy('id')->get(array('product_key','notes','cost','qty')),
|
||||
@ -330,7 +341,8 @@ class InvoiceController extends \BaseController {
|
||||
5 => 'Three months',
|
||||
6 => 'Six months',
|
||||
7 => 'Annually'
|
||||
)
|
||||
),
|
||||
'recurringHelp' => $recurringHelp
|
||||
];
|
||||
}
|
||||
|
||||
@ -490,7 +502,7 @@ class InvoiceController extends \BaseController {
|
||||
public function bulk($entityType = ENTITY_INVOICE)
|
||||
{
|
||||
$action = Input::get('action');
|
||||
$statusId = Input::get('statusId');
|
||||
$statusId = Input::get('statusId', INVOICE_STATUS_SENT);
|
||||
$ids = Input::get('id') ? Input::get('id') : Input::get('ids');
|
||||
$count = $this->invoiceRepo->bulk($ids, $action, $statusId);
|
||||
|
||||
|
@ -257,7 +257,7 @@ define('NINJA_GATEWAY_ID', GATEWAY_AUTHORIZE_NET);
|
||||
define('NINJA_GATEWAY_CONFIG', '{"apiLoginId":"626vWcD5","transactionKey":"4bn26TgL9r4Br4qJ","testMode":"","developerMode":""}');
|
||||
define('NINJA_WEB_URL', 'https://www.invoiceninja.com');
|
||||
define('NINJA_APP_URL', 'https://app.invoiceninja.com');
|
||||
define('NINJA_VERSION', '1.5.2');
|
||||
define('NINJA_VERSION', '1.6.0');
|
||||
define('NINJA_DATE', '2000-01-01');
|
||||
define('NINJA_FROM_EMAIL', 'maildelivery@invoiceninja.com');
|
||||
define('RELEASES_URL', 'https://github.com/hillelcoren/invoice-ninja/releases/');
|
||||
|
@ -303,6 +303,11 @@
|
||||
@endif
|
||||
@endif
|
||||
|
||||
@if ($invoice->invoice_status_id < INVOICE_STATUS_SENT)
|
||||
<li class="divider"></li>
|
||||
<li><a href="javascript:onMarkClick()">{{ trans("texts.mark_sent") }}</a></li>
|
||||
@endif
|
||||
|
||||
<li class="divider"></li>
|
||||
<li><a href="javascript:onArchiveClick()">{{ trans("texts.archive_{$entityType}") }}</a></li>
|
||||
<li><a href="javascript:onDeleteClick()">{{ trans("texts.delete_{$entityType}") }}</a></li>
|
||||
@ -487,7 +492,7 @@
|
||||
</div>
|
||||
|
||||
<div style="background-color: #fff; padding-left: 16px; padding-right: 16px">
|
||||
{{ trans('texts.recurring_help') }}
|
||||
{{ $recurringHelp }}
|
||||
</div>
|
||||
|
||||
<div class="modal-footer" style="margin-top: 0px">
|
||||
@ -741,6 +746,10 @@
|
||||
return (isValid && sendTo)
|
||||
}
|
||||
|
||||
function onMarkClick() {
|
||||
submitAction('mark');
|
||||
}
|
||||
|
||||
function onCloneClick() {
|
||||
submitAction('clone');
|
||||
}
|
||||
@ -1187,7 +1196,7 @@
|
||||
|
||||
this.totals.paidToDate = ko.computed(function() {
|
||||
var total = self.totals.rawPaidToDate();
|
||||
return total > 0 ? formatMoney(total, self.client().currency_id()) : '';
|
||||
return formatMoney(total, self.client().currency_id());
|
||||
});
|
||||
|
||||
this.totals.total = ko.computed(function() {
|
||||
@ -1231,7 +1240,7 @@
|
||||
total -= paid;
|
||||
}
|
||||
|
||||
return total != 0 ? formatMoney(total, self.client().currency_id()) : '';
|
||||
return formatMoney(total, self.client().currency_id());
|
||||
});
|
||||
|
||||
self.onDragged = function(item) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user