post_type === \EasyInvoice\Constants\PostTypes::EASY_INVOICE_POST_TYPE) { // Load invoice from post using the correct service provider $invoice = \EasyInvoice\Providers\InvoiceServiceProvider::getInvoiceRepository()->find($post->ID); } if (!$invoice) { wp_die(__('Invoice not found.', 'easy-invoice')); } // Initialize formatter for currency formatting $formatter = new \EasyInvoice\Helpers\InvoiceFormatter($invoice); // Stripe is handled by the Pro plugin // Get the selected template for this invoice $current_template = $invoice->getTemplate(); if (empty($current_template)) { $current_template = 'standard'; } // Check if the template file exists $template_file = EASY_INVOICE_PLUGIN_DIR . 'templates/invoice-templates/' . $current_template . '.php'; $template_file = file_exists($template_file) ? $template_file : EASY_INVOICE_PLUGIN_DIR . 'templates/invoice-templates/default.php'; ?> >
| getName()); ?> | getDescription()); ?> | getQuantity()); ?> | format($item->getPrice())); ?> | getAdjustPercentage(); if ($adjust_percentage != 0) { echo esc_html($adjust_percentage > 0 ? '+' : '') . esc_html($adjust_percentage) . '%'; } else { echo esc_html__('—', 'easy-invoice'); } ?> | format($item->getAmount())); ?> |