Skip to content

Commit

Permalink
Merge pull request #283 from basoro/mlite
Browse files Browse the repository at this point in the history
Show hide detail obat di billing
  • Loading branch information
basoro authored Nov 26, 2024
2 parents 95dfa1c + 9633b18 commit 885904c
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion plugins/kasir_rawat_jalan/Admin.php
Original file line number Diff line number Diff line change
Expand Up @@ -946,7 +946,7 @@ public function anyFaktur()
// Output a PDF file save to server
$mpdf->Output(UPLOADS.'/invoices/'.$result['kd_billing'].'.pdf','F');

echo $this->draw('billing.besar.html', ['wagateway' => $this->settings->get('wagateway'), 'billing' => $result, 'billing_besar_detail' => $result_detail, 'pasien' => $pasien, 'qrCode' => $qrCode, 'fullname' => $this->core->getUserInfo('fullname', null, true)]);
echo $this->draw('billing.besar.html', ['billing_obat' => $this->settings->get('billing_obat'), 'wagateway' => $this->settings->get('wagateway'), 'billing' => $result, 'total_billing_obat' => $total_detail_pemberian_obat, 'billing_besar_detail' => $result_detail, 'pasien' => $pasien, 'qrCode' => $qrCode, 'fullname' => $this->core->getUserInfo('fullname', null, true)]);
break;
case "kecil":
$result = $this->db('mlite_billing')->where('no_rawat', $_GET['no_rawat'])->like('kd_billing', 'RJ%')->desc('id_billing')->oneArray();
Expand Down
6 changes: 6 additions & 0 deletions plugins/kasir_rawat_jalan/view/admin/billing.besar.html
Original file line number Diff line number Diff line change
Expand Up @@ -81,8 +81,13 @@
<td colspan="1">Biaya Obat & BHP</td>
<td></td>
<td></td>
{if: $billing_obat == true}
<td></td>
{else}
<td>Rp. <span class="pull-right">{?= number_format($total_billing_obat,2,',','.')?}</span></td>
{/if}
</tr>
{if: $billing_obat == true}
{if: $billing_besar_detail.detail_pemberian_obat}
<tr>
<td></td>
Expand All @@ -98,6 +103,7 @@
<td>Rp. <span class="pull-right">{?= number_format($data.total,2,',','.')?}</span></td>
</tr>
{/loop}
{/if}
<tr border='1', height='20px'>
<td>III</td>
<td colspan="1">Jasa Dokter</td>
Expand Down

0 comments on commit 885904c

Please sign in to comment.