Skip to content

GitLab

  • Menu
    • Projects Groups Snippets
      Help
Projects Groups Snippets
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • S sistempos_finaltask
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 0
    • Issues 0
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 0
    • Merge requests 0
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Packages & Registries
    • Packages & Registries
    • Package Registry
    • Container Registry
    • Infrastructure Registry
  • Analytics
    • Analytics
    • CI/CD
    • Repository
    • Value stream
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • Mujahid Rofiq
  • sistempos_finaltask
  • Merge requests
  • !179

Merged
Created 1 year ago by Mujahid Rofiq@MujahidRMaintainer

fix taxnet saat create transfer

  • Overview 1
  • Commits 1
  • Changes 2

Created by: arneyva

  • Mujahid Rofiq
    Mujahid Rofiq @MujahidR · 1 year ago
    Author Maintainer

    Merged by: arneyva at 2024-05-22 06:52:46 UTC

  • You're only seeing other activity in the feed. To add a comment, switch to one of the following options.
Please register or sign in to reply
Compare
  • main (base)

and
  • latest version
    7ae18363
    1 commit, 10 months ago

2 files
+ 16
- 4

    Preferences

    File browser
    Compare changes
resources/views/t‎emplates/transfer‎
create.b‎lade.php‎ +1 -0
edit.bl‎ade.php‎ +15 -4
resources/views/templates/transfer/create.blade.php
+ 1
- 0
  • View file @ 7ae18363

  • Edit in single-file editor

  • Edit in Web IDE


Show all unchanged lines Show 20 lines
var taxRate = parseFloat($('#tax_rate').val()) || 0;
var taxNet = (taxRate / 100) * grandTotal;
$('#tax_net').val(taxNet.toFixed(2));
grandTotal = grandTotal - discount + shipping + taxNet;
$('#grandTotal').val(grandTotal.toFixed(2));
Show 20 lines Show all unchanged lines
resources/views/templates/transfer/edit.blade.php
+ 15
- 4
  • View file @ 7ae18363

  • Edit in single-file editor

  • Edit in Web IDE


Show all unchanged lines Show 20 lines
</tr>
</thead>
<tbody id="product-table-body">
@foreach ($details as $detail)
<td>#</td>
<td>{{ $detail['name'] }}</td>
<td>{{ $detail['Net_cost'] }}</td>
<td>{{ $detail['quantity'] }}</td>
<td>{{ $detail['quantity'] }}</td>
<td>{{ $detail['DiscountNet'] }}</td>
<td>{{ $detail['taxe'] }}</td>
<td>{{ $detail['subtotal'] }}</td>
@endforeach
<!-- Isi dari tbody akan diisi secara dinamis menggunakan JavaScript -->
</tbody>
</table>
Show 20 lines Show all unchanged lines Show 20 lines
<div class="form-group input-group">
<input type="number" class="form-control" id="tax_rate"
placeholder="input tax" name="transfer[tax_rate]"
value="{{ old('transfer.tax_rate') }}">
value="{{ $transfer['tax_rate'] }}">
<span class="input-group-text" id="basic-addon1">%</span>
</div>
@error('transfer.tax_rate')
Show 20 lines Show all unchanged lines Show 20 lines
<div class="form-group input-group">
<input type="number" class="form-control" id="discount"
placeholder="input discount" name="transfer[discount]"
value="{{ old('transfer.discount') }}">
value="{{ $transfer['discount'] }}">
<span class="input-group-text" id="basic-addon1">Rp. </span>
</div>
@error('transfer.discount')
Show 20 lines Show all unchanged lines Show 20 lines
<div class="form-group input-group">
<input type="number" class="form-control" id="shipping"
placeholder="input shipping" name="transfer[shipping]"
value="{{ old('transfer.shipping') }}">
value="{{ $transfer['shipping'] }}">
<span class="input-group-text" id="basic-addon1">Rp. </span>
</div>
@error('transfer.shipping')
Show 20 lines Show all unchanged lines Show 20 lines
<label class="form-label" for="status">Status *</label>
<select class="form-select select2" id="status" name="transfer[statut]"
required data-placeholder="Select a Status">
<option selected disabled value="">Choose...</option>
<option value="{{ $transfer['statut'] }}">{{ $transfer['statut'] }}
</option>
<option value="sent">Sent</option>
<option value="completed">Completed</option>
</select>
Show 20 lines Show all unchanged lines
0 Assignees
None
Assign to
0 Reviewers
None
Request review from
Milestone
No milestone
None
None
Time tracking
No estimate or time spent
0
Labels
None
Lock merge request
Unlocked
1
1 participant
Mujahid Rofiq
Reference: MujahidR/sistempos_finaltask!179
Source branch: dev-eth

Menu

Projects Groups Snippets
Help