Updates for search controller

This commit is contained in:
David Bomba 2024-01-20 13:41:07 +11:00
parent 58efa6dcad
commit 8aef589fe0
2 changed files with 5 additions and 1 deletions

View File

@ -50,7 +50,7 @@ class SearchController extends Controller
->when(!$user->hasPermission('view_all') || !$user->hasPermission('view_client'), function ($query) use ($user) {
$query->where('user_id', $user->id);
})
->orderBy('id', 'desc')
->orderBy('updated_at', 'desc')
->take(1000)
->get();

View File

@ -741,6 +741,10 @@ class HtmlEngine
if((int)$this->client->country_id !== (int)$this->company->settings->country_id) {
$tax_label .= ctrans('texts.intracommunity_tax_info') . "<br>";
if($this->entity_calc->getTotalTaxes() > 0)
$tax_label = '';
}
return $tax_label;