$this->get_label(), 'description' => __('Photograph or upload supplier invoices and delivery notes. Rooster One reads them, matches every line to your catalogue, and updates cost of goods, stock and receiving in one step.', 'ai-eshop-optimizer'), 'bullets' => array( __('Upload many documents at once — PDFs, scans and phone photos together.', 'ai-eshop-optimizer'), __('Read from the headings on the document itself: VAT numbers, invoice and delivery-note titles, related-note references, discount and VAT columns.', 'ai-eshop-optimizer'), __('Learns your supplier line codes, so the second invoice matches itself.', 'ai-eshop-optimizer'), __('Writes weighted-average cost of goods and increments stock without double-counting a delivery note.', 'ai-eshop-optimizer'), ), ); } private function engine_present() { return class_exists(self::ENGINE_MARKER); } public function register_hooks() { } public function enqueue_admin_assets() { if ($this->engine_present() && method_exists(self::ENGINE_MARKER, 'enqueue_admin_assets')) { call_user_func(array(self::ENGINE_MARKER, 'enqueue_admin_assets')); } } public function render_subtab() { if (!$this->engine_present()) { $this->render_engine_missing_notice(); return; } call_user_func(array(self::ENGINE_MARKER, 'render_screen'), array( 'module' => $this, 'nonce' => wp_create_nonce(AIEO_DMM::NONCE_ACTION), 'ajax' => admin_url('admin-ajax.php'), 'return_url' => $this->get_url(), 'erp_setup_url' => class_exists('AIEO_DMM_ERP_Connectors') ? AIEO_DMM_ERP_Connectors::setup_url() : '', )); } private function render_engine_missing_notice() { echo '

' . esc_html__('Rooster One Pro is not installed.', 'ai-eshop-optimizer') . ' ' . esc_html__('Supplier invoice scanning — the document reader, the line matcher and the cost and stock write-back — ships with the Rooster One Pro plugin. Install and activate it and this screen comes alive without further setup.', 'ai-eshop-optimizer') . '

'; if (class_exists('AIEO_One_Installer')) { AIEO_One_Installer::render('invoice_scanner'); } echo '
'; echo '

' . esc_html__('What this does', 'ai-eshop-optimizer') . '

'; echo '

' . esc_html__('Upload supplier invoices and delivery notes — several at once, as PDFs, scans or phone photos. Each document is read server-side, its lines are matched to your products, and once you confirm the matches Rooster One updates cost of goods, increases stock and closes the matching supplier pre-orders.', 'ai-eshop-optimizer') . '

'; echo ''; echo '
'; } }