|
@@ 153-156 (lines=4) @@
|
| 150 |
|
$payments = $subscription->get_child_payments(); |
| 151 |
|
?> |
| 152 |
|
<p class="wpi-meta-row wpi-sub-label <?php echo 'status-' . $subscription->status; ?>"><?php _e('Recurring Payment', 'invoicing'); ?></p> |
| 153 |
|
<?php if ( ! empty( $subscription ) && ! empty( $subscription->id ) ) { ?> |
| 154 |
|
<p class="wpi-meta-row wpi-sub-id"> |
| 155 |
|
<label><?php _e( 'Subscription ID:', 'invoicing' ); ?> </label><a href="<?php echo esc_url( admin_url( 'admin.php?page=wpinv-subscriptions&id=' . $subscription->id ) ); ?>" title="<?php esc_attr_e( 'View or edit subscription', 'invoicing' ); ?>" target="_blank"><?php echo $subscription->id; ?></a></p> |
| 156 |
|
<?php } ?> |
| 157 |
|
<p class="wpi-meta-row wpi-bill-cycle"> |
| 158 |
|
<label><?php _e( 'Billing Cycle:', 'invoicing'); ?> </label><?php printf( _x( '%s then %s', 'Initial subscription amount then billing cycle and amount', 'invoicing' ), $initial, $billing ); ?> |
| 159 |
|
</p> |
|
@@ 199-199 (lines=1) @@
|
| 196 |
|
$parent_id = wpinv_get_invoice_number( $invoice->parent_invoice ); |
| 197 |
|
$subscription = wpinv_get_subscription( $invoice ); |
| 198 |
|
?> |
| 199 |
|
<?php if ( ! empty( $subscription ) ) { ?><p class="wpi-meta-row wpi-sub-id"><label><?php _e('Subscription ID:', 'invoicing'); ?> </label><a href="<?php echo esc_url( admin_url( 'admin.php?page=wpinv-subscriptions&id=' . $subscription->id ) ); ?>" title="<?php esc_attr_e( 'View or edit subscription', 'invoicing' ); ?>" target="_blank"><?php echo $subscription->id; ?></a></p><?php } ?> |
| 200 |
|
<p class="wpi-meta-row wpi-parent-id"><label><?php _e( 'Parent Invoice:', 'invoicing' );?> </label><a href="<?php echo esc_url( $parent_url ); ?>"><?php echo $parent_id; ?></a></p> |
| 201 |
|
<?php |
| 202 |
|
} |