BBnepal-Accounts/account/application/views/accounts/vouchers/cashpaymentvoucher/create.php

74 lines
4.4 KiB
PHP
Raw Permalink Normal View History

2024-07-10 12:43:19 +00:00
<div class="content-wrapper">
<div class="content">
<div class="container-fluid">
<div class="row">
<div class="col">
<div class="card card-primary card-outline">
<div class="card-header">
<h5 class="m-0">Create <?php echo $pageTitle; ?> </h5>
</div>
<div class="card-body">
<form method=POST action="" enctype="multipart/form-data" name="tbl_accounts">
<div class="row">
<div class="col-3">
<fieldset>
<legend><?php myLang("Payment Date"); ?></legend><input type="text" class="form-control nepaliDatePicker" id="voucher_date" value="<?php echo NepaliDate(); ?>" name="voucher_date">
</fieldset>
</div>
<div class="col-3">
<fieldset>
<?php $DefaultAccount=$this->myaccounts->getAccountDetails($VoucherType->default_account);?>
<legend><?php echo $DefaultAccount->account_name; ?> <?php myLang("Balance");?></legend><?php echo myCurrency($DefaultAccount->Balance); ?>
</fieldset>
</div>
<div class="col-3 offset-3">
<fieldset>
<legend><?php mylang("Voucher"); ?> #</legend><input type="text" readonly class="form-control" id="voucher_no" value="<?php echo generateVoucherNo(); ?>" name="voucher_no">
</fieldset>
</div>
</div>
<div class="row">
<div class="col">
<fieldset>
<legend><?php myLang("Enter Deposit Details"); ?></legend>
<div class="row">
<div class="col"><?php createInput("debit[]","Deposited Amount","debit","",""); ?></div>
<div class="col"><?php fillComboWithValue("account_ids[]", "In Account Against", "account_id", "tbl_accounts", "account_name", "account_id", "", "", "", "status=1"); ?></div>
</div>
<div class="row">
<div class="col"><?php createInput("narration[]","Narration","narration","",""); ?></div>
</div>
<div class="row">
<div class="col"><?php createInput("cheque_number[]","Deposited Cheque","cheque_number","",""); ?></div>
<div class="col"><?php createInput("cheque_details[]","Deposited Cheque Details","cheque_details","",""); ?></div>
</div>
</fieldset>
</div>
</div>
<div class="row">
<!--COL START-->
<div class="col">
<div class="form-group"> <label for="remarks">Remarks</label> <textarea class="form-control" id="remarks" name="remarks"></textarea> </div>
</div>
<!--COL END-->
</div> <button class="btn btn-primary" type="submit" id="saveButton" name="submit">Save Voucher</button>
</form>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<script>
$("#saveButton").prop("disabled", false);
</script>