예제 #1
0
    <div class="row">
        <?php 
erp_html_form_input(array('label' => __('Date', 'erp-accounting'), 'name' => 'date', 'id' => 'erp-ac-date', 'class' => 'erp-ac-date-field', 'required' => true));
?>
    </div>

    <div class="row">
        <?php 
erp_html_form_input(array('label' => __('From Account', 'erp-accounting'), 'name' => 'form_account_id', 'placeholder' => __('Select an Account', 'erp-accounting'), 'type' => 'select', 'class' => 'select2 erp-ac-bank-ac-drpdwn erp-ac-bank-ac-drpdwn-frm', 'required' => true, 'value' => '', 'options' => ['' => __('&mdash; Select &mdash;', 'erp-accounting')] + erp_ac_get_bank_dropdown()));
?>

    </div>

    <div class="row">
        <?php 
erp_html_form_input(array('label' => __('To Account', 'erp-accounting'), 'name' => 'to_account_id', 'placeholder' => __('Select an Account', 'erp-accounting'), 'type' => 'select', 'class' => 'select2 erp-ac-bank-ac-drpdwn erp-ac-bank-ac-drpdwn-to', 'required' => true, 'value' => '', 'options' => ['' => __('&mdash; Select &mdash;', 'erp-accounting')] + erp_ac_get_bank_dropdown()));
?>
    </div>

    <div class="row">
        <?php 
erp_html_form_input(array('label' => __('Amount', 'erp-accounting'), 'type' => 'number', 'name' => 'amount', 'id' => 'erp-ac-amount', 'value' => '', 'required' => true, 'custom_attr' => array('min' => '0')));
?>
    </div>

    <div class="row">
        <?php 
erp_html_form_input(array('label' => __('Memo', 'erp-accounting'), 'name' => 'memo', 'type' => 'textarea', 'id' => 'erp-ac-memo', 'value' => ''));
?>
    </div>
        <?php 
예제 #2
0
    <form action="" method="post" class="erp-form" style="margin-top: 30px;">

        <ul class="form-fields block" style="width:50%;">

            <li>
                <ul class="erp-form-fields two-col block">
                    <li class="erp-form-field">
                        <?php 
erp_html_form_input(array('label' => __('Vendor', 'erp-accounting'), 'name' => 'user_id', 'type' => 'select', 'class' => 'select2', 'options' => ['' => __('&mdash; Select &mdash;', 'erp-accounting')] + erp_get_peoples_array(['type' => 'vendor', 'number' => 100]), 'custom_attr' => ['data-placeholder' => __('Select a payee', 'erp-accounting')]));
?>
                    </li>

                    <li class="cols erp-form-field">
                        <?php 
erp_html_form_input(array('label' => __('From Account', 'erp-accounting'), 'name' => 'account_id', 'placeholder' => __('Select an Account', 'erp-accounting'), 'type' => 'select', 'class' => 'select2', 'value' => $account_id ? $account_id : $selected_account_id, 'options' => ['' => __('&mdash; Select &mdash;', 'erp-accounting')] + erp_ac_get_bank_dropdown()));
?>

                        <span class="balance-wrap">
                            <strong><?php 
_e('Balance:', 'erp-accounting');
?>
</strong>
                        </span>
                    </li>
                </ul>
            </li>

            <li>
                <ul class="erp-form-fields two-col block clearfix">
                    <li class="erp-form-field">
예제 #3
0
                        <?php 
// if ( $account_id ) {
//     $bank = WeDevs\ERP\Accounting\Model\Ledger::bank()->find($account_id);
//     erp_html_form_input( array(
//         'name'  => 'account_id',
//         'type'  => 'hidden',
//         'value' => $account_id,
//     ) );
//     erp_html_form_input( array(
//         'label' => __( 'Deposit To', 'erp-accounting' ),
//         'type'  => 'text',
//         'custom_attr' => array( 'disabled' => 'disabled' ),
//         'value' => $bank->name,
//     ) );
// } else {
erp_html_form_input(array('label' => __('Deposit To', 'erp-accounting'), 'name' => 'account_id', 'placeholder' => __('Select an Account', 'erp-accounting'), 'type' => 'select', 'class' => 'select2 erp-ac-deposit-dropdown', 'value' => $account_id ? $account_id : '', 'required' => true, 'options' => ['' => __('&mdash; Select &mdash;', 'erp-accounting')] + erp_ac_get_bank_dropdown()));
// }
?>
                    </li>
                </ul>
            </li>

        </ul>

        
        <div class="erp-ac-receive-payment-table"><?php 
include dirname(dirname(__FILE__)) . '/common/transaction-table.php';
?>
</div>
            
        <?php