mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-09 03:14:30 -04:00
Minor fixes
This commit is contained in:
parent
617ac98a75
commit
6caf1ff30d
@ -247,6 +247,8 @@ Route::group([
|
|||||||
Route::get('api/gateways', array('as'=>'api.gateways', 'uses'=>'AccountGatewayController@getDatatable'));
|
Route::get('api/gateways', array('as'=>'api.gateways', 'uses'=>'AccountGatewayController@getDatatable'));
|
||||||
Route::post('account_gateways/bulk', 'AccountGatewayController@bulk');
|
Route::post('account_gateways/bulk', 'AccountGatewayController@bulk');
|
||||||
|
|
||||||
|
Route::get('bank_accounts/import_ofx', 'BankAccountController@showImportOFX');
|
||||||
|
Route::post('bank_accounts/import_ofx', 'BankAccountController@doImportOFX');
|
||||||
Route::resource('bank_accounts', 'BankAccountController');
|
Route::resource('bank_accounts', 'BankAccountController');
|
||||||
Route::get('api/bank_accounts', array('as'=>'api.bank_accounts', 'uses'=>'BankAccountController@getDatatable'));
|
Route::get('api/bank_accounts', array('as'=>'api.bank_accounts', 'uses'=>'BankAccountController@getDatatable'));
|
||||||
Route::post('bank_accounts/bulk', 'BankAccountController@bulk');
|
Route::post('bank_accounts/bulk', 'BankAccountController@bulk');
|
||||||
|
@ -189,12 +189,15 @@ class ExpenseRepository extends BaseRepository
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// prevent loading all of the documents if we don't have to
|
||||||
|
if ( ! $expense->wasRecentlyCreated) {
|
||||||
foreach ($expense->documents as $document){
|
foreach ($expense->documents as $document){
|
||||||
if(!in_array($document->public_id, $document_ids)){
|
if ( ! in_array($document->public_id, $document_ids)){
|
||||||
// Not checking permissions; deleting a document is just editing the invoice
|
// Not checking permissions; deleting a document is just editing the invoice
|
||||||
$document->delete();
|
$document->delete();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
return $expense;
|
return $expense;
|
||||||
}
|
}
|
||||||
|
@ -978,8 +978,8 @@ $LANG = array(
|
|||||||
'first_page' => 'First page',
|
'first_page' => 'First page',
|
||||||
'all_pages' => 'All pages',
|
'all_pages' => 'All pages',
|
||||||
'last_page' => 'Last page',
|
'last_page' => 'Last page',
|
||||||
'all_pages_header' => 'Show header on',
|
'all_pages_header' => 'Show Header on',
|
||||||
'all_pages_footer' => 'Show footer on',
|
'all_pages_footer' => 'Show Footer on',
|
||||||
'invoice_currency' => 'Invoice Currency',
|
'invoice_currency' => 'Invoice Currency',
|
||||||
'enable_https' => 'We strongly recommend using HTTPS to accept credit card details online.',
|
'enable_https' => 'We strongly recommend using HTTPS to accept credit card details online.',
|
||||||
'quote_issued_to' => 'Quote issued to',
|
'quote_issued_to' => 'Quote issued to',
|
||||||
@ -1092,17 +1092,15 @@ $LANG = array(
|
|||||||
'document_email_attachment' => 'Attach Documents',
|
'document_email_attachment' => 'Attach Documents',
|
||||||
'download_documents' => 'Download Documents (:size)',
|
'download_documents' => 'Download Documents (:size)',
|
||||||
'documents_from_expenses' => 'From Expenses:',
|
'documents_from_expenses' => 'From Expenses:',
|
||||||
'dropzone' => array(// See http://www.dropzonejs.com/#config-dictDefaultMessage
|
'dropzone_default_message' => 'Drop files or click to upload',
|
||||||
'DefaultMessage' => 'Drop files or click to upload',
|
'dropzone_fallback_message' => 'Your browser does not support drag\'n\'drop file uploads.',
|
||||||
'FallbackMessage' => 'Your browser does not support drag\'n\'drop file uploads.',
|
'dropzone_fallback_text' => 'Please use the fallback form below to upload your files like in the olden days.',
|
||||||
'FallbackText' => 'Please use the fallback form below to upload your files like in the olden days.',
|
'dropzone_file_too_big' => 'File is too big ({{filesize}}MiB). Max filesize: {{maxFilesize}}MiB.',
|
||||||
'FileTooBig' => 'File is too big ({{filesize}}MiB). Max filesize: {{maxFilesize}}MiB.',
|
'dropzone_invalid_file_type' => 'You can\'t upload files of this type.',
|
||||||
'InvalidFileType' => 'You can\'t upload files of this type.',
|
'dropzone_response_error' => 'Server responded with {{statusCode}} code.',
|
||||||
'ResponseError' => 'Server responded with {{statusCode}} code.',
|
'dropzone_cancel_upload' => 'Cancel upload',
|
||||||
'CancelUpload' => 'Cancel upload',
|
'dropzone_cancel_upload_confirmation' => 'Are you sure you want to cancel this upload?',
|
||||||
'CancelUploadConfirmation' => 'Are you sure you want to cancel this upload?',
|
'dropzone_remove_file' => 'Remove file',
|
||||||
'RemoveFile' => 'Remove file',
|
|
||||||
),
|
|
||||||
'documents' => 'Documents',
|
'documents' => 'Documents',
|
||||||
'document_date' => 'Document Date',
|
'document_date' => 'Document Date',
|
||||||
'document_size' => 'Size',
|
'document_size' => 'Size',
|
||||||
@ -1279,7 +1277,11 @@ $LANG = array(
|
|||||||
|
|
||||||
|
|
||||||
'no_payment_method_specified' => 'No payment method specified',
|
'no_payment_method_specified' => 'No payment method specified',
|
||||||
|
'chart_type' => 'Chart Type',
|
||||||
|
'format' => 'Format',
|
||||||
|
'import_ofx' => 'Import OFX',
|
||||||
|
'ofx_file' => 'OFX File',
|
||||||
|
'ofx_parse_failed' => 'Failed to parse OFX file',
|
||||||
|
|
||||||
// WePay
|
// WePay
|
||||||
'wepay' => 'WePay',
|
'wepay' => 'WePay',
|
||||||
@ -1307,4 +1309,4 @@ $LANG = array(
|
|||||||
|
|
||||||
return $LANG;
|
return $LANG;
|
||||||
|
|
||||||
?>.
|
?>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user