class MCF_Ledger_Engine { public function get_daily_ledger() { global $wpdb; $table = $wpdb->prefix . 'mcf_ledger'; $rows = $wpdb->get_results(" SELECT order_id, order_date, currency, net_sale, profit, exchange_rate FROM {$table} ORDER BY order_date ASC "); $result = []; foreach ($rows as $row) { if (empty($row->order_date)) { continue; } $date = date('Y-m-d', strtotime($row->order_date)); if (!isset($result[$date])) { $result[$date] = [ 'consolidated' => ['sales'=>0.0,'profit'=>0.0], 'TRY' => ['sales'=>0.0,'profit'=>0.0], 'EUR' => ['sales'=>0.0,'profit'=>0.0], 'orders' => [] ]; } $currency = strtoupper(trim($row->currency)); $net_sale = (float) $row->net_sale; $profit = (float) $row->profit; $exchange_rate = (float) $row->exchange_rate; if ($exchange_rate <= 0) { $exchange_rate = 1; } // Currency raw aggregation if (isset($result[$date][$currency])) { $result[$date][$currency]['sales'] += $net_sale; $result[$date][$currency]['profit'] += $profit; } // TL Consolidation if ($currency === 'EUR') { $sale_tl = $net_sale * $exchange_rate; $profit_tl = $profit * $exchange_rate; } else { $sale_tl = $net_sale; $profit_tl = $profit; } $result[$date]['consolidated']['sales'] += $sale_tl; $result[$date]['consolidated']['profit'] += $profit_tl; $result[$date]['orders'][] = [ 'id' => (int) $row->order_id, 'currency' => $currency, 'profit_tl' => round($profit_tl,2) ]; } return $result; } } Vinculum Wooden Desk Clock -

Vinculum Wooden Desk Clock

(1 customer review)

78

Vinculum Wooden Desk Clock is designed as a compact desk clock with a balanced and minimalist form. Its bridge shaped silhouette creates a clear and stable presence, making it suitable for desks, shelves, and workspaces where simplicity and clarity are preferred.

Out of stock

Description

Vinculum Wooden Desk Clock is designed as a compact desk clock with a balanced and minimalist form. Its bridge shaped silhouette creates a clear and stable presence, making it suitable for desks, shelves, and workspaces where simplicity and clarity are preferred.

Crafted from walnut wood, the clock highlights the natural grain and warm tone of the material. The surface is finished with a glossy varnish that enhances the wood’s texture while providing surface protection. An aged copper toned frame surrounds the mechanism, adding a subtle contrast and a timeless character to the overall design.

Vinculum Wooden Desk Clock is 100% handmade, carefully shaped from the first cut of walnut wood to the final polishing stage. Each step reflects attention to detail and traditional woodworking craftsmanship.

Due to the natural and handmade nature of the product, minor variations in wood grain, tone, and surface texture may occur. These natural differences mean that the delivered product may show slight nuances compared to the photos, without affecting overall quality or functionality.

Product Features:
• 100% handmade
• Walnut wood body
• Glossy protective varnish
• Aged copper toned frame
• Compact desk clock design
• Suitable for indoor use

Product Dimensions:
Width (W): 15 cm
Height (H): 16 cm
Depth (D): 8 cm

Built for durability and everyday reliability, Vinculum Wooden Desk Clock functions as both a practical timepiece and a refined decorative object, offering a clean and timeless presence in any workspace or interior setting.

1 review for Vinculum Wooden Desk Clock

There are no reviews yet.

Only logged in customers who have purchased this product may leave a review.