Working on task invoices

This commit is contained in:
Hillel Coren 2017-06-20 21:34:07 +03:00
parent 0d1b9e0dc9
commit 71d325cb98
4 changed files with 13 additions and 11 deletions

View File

@ -39,7 +39,7 @@ class LookupUser extends LookupModel
->firstOrFail();
$lookupUser->email = $user->email;
$lookupUser->confirmation_code = $user->confirmation_code;
$lookupUser->confirmation_code = $user->confirmation_code ?: null;
$lookupUser->oauth_user_key = ($user->oauth_provider_id && $user->oauth_user_id) ? ($user->oauth_provider_id . '-' . $user->oauth_user_id) : null;
$lookupUser->referral_code = $user->referral_code;
$lookupUser->save();

File diff suppressed because one or more lines are too long

View File

@ -110,12 +110,14 @@
try {
return getPDFString(refreshPDFCB, force);
} catch (exception) {
console.warn('Failed to generate PDF');
console.warn('Failed to generate PDF: %s', exception.message);
var href = location.href;
if (href.indexOf('/view/') > 0 && href.indexOf('phantomjs') == -1) {
var url = href.replace('/view/', '/download/') + '?base64=true';
$.get(url, function(result) {
refreshPDFCB(result);
if (result && result.indexOf('data:application/pdf') == 0) {
refreshPDFCB(result);
}
})
}
}

View File

@ -202,7 +202,7 @@
<p>&nbsp;<br/>&nbsp;</p>
@endif
@if ($accountGateway->isGateway(GATEWAY_WEPAY) && $account->token_billing_type_id === TOKEN_BILLING_DISABLED)
@if ($accountGateway->isGateway(GATEWAY_WEPAY) && $account->token_billing_type_id == TOKEN_BILLING_DISABLED)
{{--- do nothing ---}}
@else
<div class="row">