bit fix deposit done

dev
Aji Kamaludin 1 year ago
parent 97d6b23cb5
commit 620fb9a569
No known key found for this signature in database
GPG Key ID: 19058F67F0083AD3

@ -13,7 +13,7 @@ class DepositController extends Controller
{
public function index(Request $request)
{
$query = DepositHistory::with(['customer', 'account', 'editor'])
$query = DepositHistory::with(['customer', 'account', 'depositLocation', 'editor'])
->where('credit', 0)
->orderBy('is_valid', 'desc')
->orderBy('updated_at', 'desc');

@ -21,6 +21,7 @@ export default function FormModal(props) {
holder_name: '',
account_number: '',
},
deposit_location: null,
payment_channel: '',
is_valid: 0,
status_text: '',
@ -76,6 +77,7 @@ export default function FormModal(props) {
} )`,
description: deposit.description,
reject_reason: deposit.note,
deposit_location: deposit.deposit_location,
})
return
}
@ -113,6 +115,15 @@ export default function FormModal(props) {
</td>
</tr>
)}
{data.deposit_location !== null && (
<tr>
<td className="font-bold">
Lokasi Cash / Setor Tunai
</td>
<td>:</td>
<td>{data.deposit_location.name}</td>
</tr>
)}
<tr>
<td className="font-bold">Jumlah</td>
<td>:</td>

Loading…
Cancel
Save