payment_form
1 year ago
edit_data.php
4 months ago
email_form.php
1 week ago
new_form.php
4 months ago
payment_form.php
1 year ago
summary_before_payment.php
1 year ago
view.php
1 year ago
view_by_key.php
1 year ago
new_form.php
49 lines
| 1 | <?php |
| 2 | /* |
| 3 | * Copyright (c) 2023 LatePoint LLC. All rights reserved. |
| 4 | */ |
| 5 | |
| 6 | /* @var $invoice OsInvoiceModel */ |
| 7 | ?> |
| 8 | <div class="invoice-settings-wrapper" data-route="<?php echo esc_attr(OsRouterHelper::build_route_name('invoices', 'create')); ?>"> |
| 9 | <?php |
| 10 | echo OsFormHelper::hidden_field('invoice[order_id]', $invoice->order_id); |
| 11 | echo OsFormHelper::hidden_field('invoice[payment_portion]', $invoice->payment_portion); |
| 12 | // Add protection nonce. |
| 13 | wp_nonce_field( 'create_invoice', '_wpnonce', false ); |
| 14 | ?> |
| 15 | <div class="invoice-settings-heading"> |
| 16 | <div><?php esc_html_e( 'Invoice Settings', 'latepoint' ); ?></div> |
| 17 | <a href="#" class="invoice-settings-close"><i class="latepoint-icon latepoint-icon-x"></i></a> |
| 18 | </div> |
| 19 | <div class="invoice-settings-body"> |
| 20 | <div class="invoice-setting-column"> |
| 21 | <?php |
| 22 | echo '<div class="label-for-select">' . esc_html__( 'Amount', 'latepoint' ) . '</div>'; |
| 23 | echo '<div class="custom-charge-amount-wrapper">'; |
| 24 | echo OsFormHelper::money_field( 'invoice[charge_amount]', false, 0, [ 'class' => 'size-small', 'theme' => 'simple' ] ); |
| 25 | echo '</div>'; |
| 26 | ?> |
| 27 | </div> |
| 28 | <div class="invoice-setting-column"> |
| 29 | <?php |
| 30 | echo '<div class="label-for-select">' . esc_html__( 'Due On', 'latepoint' ) . '</div>'; |
| 31 | echo OsFormHelper::date_picker_field( 'invoice[due_at]', OsTimeHelper::get_readable_date_from_string( OsTimeHelper::today_date( 'Y-m-d' ) ), OsTimeHelper::today_date( 'Y-m-d' ), [ |
| 32 | 'class' => 'size-small', |
| 33 | 'theme' => 'simple' |
| 34 | ] ); |
| 35 | ?> |
| 36 | </div> |
| 37 | <div class="invoice-setting-column"> |
| 38 | <?php |
| 39 | echo '<div class="label-for-select">' . esc_html__( 'Status', 'latepoint' ) . '</div>'; |
| 40 | echo '<div class="custom-charge-amount-wrapper">'; |
| 41 | echo OsFormHelper::select_field( 'invoice[status]', false, OsInvoicesHelper::list_of_statuses_for_select(), LATEPOINT_INVOICE_STATUS_DRAFT, [ 'class' => 'size-small', 'theme' => 'simple' ] ); |
| 42 | echo '</div>'; |
| 43 | ?> |
| 44 | </div> |
| 45 | </div> |
| 46 | <div class="invoice-settings-buttons"> |
| 47 | <a href="#" class="latepoint-btn latepoint-btn-sm latepoint-btn-primary create-invoice-button"><?php esc_html_e( 'Create Invoice', 'latepoint' ); ?></a> |
| 48 | </div> |
| 49 | </div> |