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) public function index(Request $request)
{ {
$query = DepositHistory::with(['customer', 'account', 'editor']) $query = DepositHistory::with(['customer', 'account', 'depositLocation', 'editor'])
->where('credit', 0) ->where('credit', 0)
->orderBy('is_valid', 'desc') ->orderBy('is_valid', 'desc')
->orderBy('updated_at', 'desc'); ->orderBy('updated_at', 'desc');

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

Loading…
Cancel
Save