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; } } Clarus Bag -

Clarus Bag

68

Clarus Bag is designed for practical daily use with a clean and functional structure. Its durable canvas fabric and balanced dimensions provide reliability and comfort, while the straightforward design keeps the look professional and versatile.

1 in stock

SKU: CLARUS_EN Categories: , ,

Description

Clarus Bag is designed for practical daily use with a clean and functional structure. Its durable canvas fabric and balanced dimensions provide reliability and comfort, while the straightforward design keeps the look professional and versatile.

The main compartment of Clarus Bag is secured with a zippered closure, ensuring safe storage throughout the day. Inside, the bag includes two interior pockets, one zippered for valuables and one open for easy access items. On the exterior, three side by side pockets enhance usability; one of these pockets features a snap button closure for added security.

Crafted with care, Clarus Bag is 100% handmade, from fabric cutting to final assembly, ensuring attention to detail and consistent quality.

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

With its structured form and efficient pocket layout, the bag supports organized daily use without unnecessary detailing.

Product Features:
• 100% handmade
• Canvas fabric
• Zippered main closure
• One zippered inner pocket
• One open inner pocket
• Three exterior pockets, one with snap button closure
• Suitable for daily use

Product Dimensions:
Width (W): 28 cm
Height (H): 32 cm
Depth (D): 11 cm

Built for durability and everyday functionality, Clarus Bag offers a clear, practical solution for users who prefer simplicity and reliability.

Reviews

There are no reviews yet.

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