Exemplo n.º 1
0
</h2>

    <?php 
$selected_account_id = isset($_GET['account_id']) ? intval($_GET['account_id']) : 0;
$dropdown = erp_ac_get_chart_dropdown(['exclude' => [1, 4, 5], 'required' => true, 'name' => 'line_account[]']);
?>

    <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>
Exemplo n.º 2
0
<div class="crm-customer-assing-company-wrap">

    <# if ( data.type == 'assign_company' ) { #>

        <div class="row">
            <?php 
erp_html_form_input(array('label' => __('Company Name', 'wp-erp'), 'name' => 'erp_assign_company_id', 'type' => 'select', 'id' => 'erp-select-customer-company', 'class' => 'erp-crm-select2-add-more erp-crm-customer-company-dropdown', 'custom_attr' => ['data-id' => 'erp-contact-new', 'data-type' => 'company', 'data-single' => 1], 'required' => true, 'options' => ['' => __('--Select a Company--', 'wp-erp')] + erp_get_peoples_array(['type' => 'company', 'number' => -1])));
?>
        </div>

    <# } else if ( data.type == 'assign_customer' ) { #>

        <div class="row">
            <?php 
erp_html_form_input(array('label' => __('Contact Name', 'wp-erp'), 'name' => 'erp_assign_customer_id', 'type' => 'select', 'id' => 'erp-select-customer-company', 'class' => 'erp-crm-select2-add-more erp-crm-customer-company-dropdown', 'custom_attr' => ['data-id' => 'erp-contact-new', 'data-type' => 'contact', 'data-single' => 1], 'required' => true, 'options' => ['' => __('--Select a Contact--', 'wp-erp')] + erp_get_peoples_array(['type' => 'contact', 'number' => -1])));
?>
        </div>

    <# } #>

    <?php 
wp_nonce_field('wp-erp-crm-assign-customer-company-nonce');
?>

    <input type="hidden" name="action" value="erp-crm-customer-add-company">
    <input type="hidden" name="id" value="{{ data.id }}">
    <input type="hidden" name="assign_type" value="{{ data.type }}">
</div>
Exemplo n.º 3
0
?>
</h2>

    <?php 
$dropdown = erp_ac_get_chart_dropdown(['exclude' => [1, 2, 3], 'required' => true, 'name' => 'line_account[]']);
?>

    <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' => __('Customer', 'erp-accounting'), 'name' => 'user_id', 'placeholder' => __('Select a payee', 'erp-accounting'), 'type' => 'select', 'class' => 'select2 erp-ac-payment-receive', 'options' => ['' => __('&mdash; Select &mdash;', 'erp-accounting')] + erp_get_peoples_array(['type' => 'customer', 'number' => 100])));
?>
                    </li>

                    <li class="erp-form-field">
                        <?php 
erp_html_form_input(array('label' => __('Reference', 'erp-accounting'), 'name' => 'ref', 'type' => 'text', 'addon' => '#'));
?>
                    </li>
                </ul>
            </li>

            <li>
                <ul class="erp-form-fields two-col block clearfix">
                    <li class="erp-form-field">
                        <?php