_balance_and_payments.php
1 year ago
_full_summary.php
1 year ago
_price_breakdown.php
1 year ago
_table_body.php
1 year ago
_transaction_box.php
1 year ago
index.php
1 year ago
quick_edit.php
9 months ago
reload_balance_and_payments.php
1 year ago
reload_price_breakdown.php
1 year ago
view_order_log.php
1 year ago
_price_breakdown.php
28 lines
| 1 | <?php |
| 2 | /* |
| 3 | * Copyright (c) 2024 LatePoint LLC. All rights reserved. |
| 4 | */ |
| 5 | |
| 6 | /* @var $order OsOrderModel */ |
| 7 | /* @var $price_breakdown_rows array */ |
| 8 | |
| 9 | |
| 10 | if ( ! defined( 'ABSPATH' ) ) { |
| 11 | exit; // Exit if accessed directly |
| 12 | } |
| 13 | |
| 14 | |
| 15 | ?> |
| 16 | |
| 17 | <?php |
| 18 | do_action('latepoint_order_quick_form_price_before_subtotal', $order); |
| 19 | foreach($price_breakdown_rows['before_subtotal'] as $row){ |
| 20 | OsBookingHelper::output_price_breakdown_row_as_input_field($row, 'price_breakdown[before_subtotal]'); |
| 21 | } |
| 22 | echo OsFormHelper::money_field('order[subtotal]', __('Sub Total', 'latepoint'), $order->get_subtotal() ?? 0, ['theme' => 'right-aligned'], [], ['class' => 'os-subtotal']); |
| 23 | foreach($price_breakdown_rows['after_subtotal'] as $row){ |
| 24 | OsBookingHelper::output_price_breakdown_row_as_input_field($row, 'price_breakdown[after_subtotal]'); |
| 25 | } |
| 26 | echo OsFormHelper::money_field('order[total]', __('Total Price', 'latepoint'), $order->get_total() ?? 0, ['theme' => 'right-aligned', 'class' => 'os-affects-balance'], [], ['class' => 'os-total']); |
| 27 | do_action('latepoint_order_quick_form_price_after_total', $order); |
| 28 |