Jump to content

Ground Handling Fee


Recommended Posts

Exclude rows with 0 (zero) expense or income (for GH Cost, it will be expense, debit) while you are in the foreach loop.


As this is mostly a "theming" issue, you can check below example from my theme and apply the change in your duplicate (or your own) theme.




@foreach($pirep->transactions->where('journal_id', $pirep->airline->journal->id) as $entry)
  @if($entry->credit == 0 && $entry->debit == 0) @continue @endif
    <td class="text-start">{{ $entry->memo }}</td>
    <td>@if($entry->credit){{ money($entry->credit, $units['currency']) }}@endif</td>
    <td>@if($entry->debit){{ money($entry->debit, $units['currency']) }}@endif</td>




Edited by DisposableHero
Link to comment
Share on other sites

My pleasure :)


I was a developer, many years ago (while I was a teenager and a youngster around my twenties).That "basic" knowledge comes from those nice years, rest is 2+ years experience with v7 and some refreshed skills for v7 addon/theme development (I needed them, no one was around, so I started developing again), nothing more ;) 


Enjoy v7

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Create New...