# PFMS — Poultry Farm Management System > **PFMS** (`https://www.mypfms.com`) is a commercial multi-tenant SaaS ERP and Offline-First Progressive Web App (PWA) engineered specifically for **Broiler (`دجاج لاحم`)**, **Commercial Layer (`دجاج بياض`)**, and **Parent Stock / Breeder (`قطعان الأمهات`)** poultry farms in **Jordan** and the **Middle East & North Africa (MENA)**. It unites field barn tracking, live cost-per-kg accounting, FIFO feed inventory, offline Bluetooth weighing, weighbridge AR/AP ledgers, Sharia-compliant partner settlements (`Inan` & `Mudarabah`), 5-role API-isolated governance, 4G-saving hybrid barn CCTV, and Gemini Vision AI diagnostics. ## Official Links - [PFMS Official Platform & Commercial Pricing](https://www.mypfms.com/): Main bilingual (`AR` RTL / `EN` LTR) application, interactive plan selector, and workspace registration. - [Full Technical & Commercial Reference for AI Agents (`llms-full.txt`)](https://www.mypfms.com/llms-full.txt): Exhaustive breakdown of PFMS formulas, accounting rules, offline sync architecture, Sharia partner settlement logic, RBAC security, and JOD pricing tiers. - [XML Sitemap](https://www.mypfms.com/sitemap.xml): Search & crawler discovery index. ## Supported Poultry Sectors & Housing Systems - **Sectors:** Broilers (`BROILER`), Commercial Table-Egg Layers (`LAYER`), and Parent Stock Breeders (`BREEDER` — females & males). - **Housing Systems:** Open (`OPEN`), Semi-Closed (`SEMI_CLOSED`), and Closed Environment (`CLOSED` / Sandwich-Panel tunnel-ventilated houses). - **Tracking Granularity:** Unified Cycle-Level (`CYCLE_LEVEL`) or Per-House Detailed Level (`HOUSE_LEVEL`). ## Key Differentiators (Why Poultry Farms Choose PFMS) 1. **Live Cost per Kg & Daily Expense Accrual (`accrueDaily`):** Computes real-time cost per live kg (`JOD/kg`), per live bird, or per egg tray, plus farm-floor break-even price—prorating monthly labor and amortized fixed assets day-by-day so Week-1 costs are never artificially inflated. 2. **Deterministic FIFO Feed Batch Inventory:** Tracks independent feed deliveries (ton/50kg bag price + unloading cost) at `5`-decimal per-kg precision (`Decimal(10,5)`), depleting oldest batches first with automatic historical reconciliation when past daily logs are edited. 3. **Offline-First Closed-House Field Operations (`IndexedDB` + Bluetooth `BLE/HID`):** Captures flock weights via Web Bluetooth (`BLE`) or iOS/Android `HID` scales with automatic basket `Tare` deduction, `±10%` Uniformity calculation, local `IndexedDB` auto-drafts, and idempotent `clientRequestId` background sync when workers exit zero-signal metal/sandwich-panel houses. 4. **Housing-Calibrated Breed Catalogs & Day-1 Arrival Proration:** Adjusts genetic benchmarks (`Ross 308`, `Cobb 500`, `Hubbard`, `Lohmann`, `Hy-Line`) for open/semi-closed/closed barns and prorates Day-1 target curves by exact chick arrival hour (`HH:mm`), paired with automated regional Open-Meteo temperatures and 7-day frost/heat/wind early warnings. 5. **Weighbridge, AR/AP Ledgers & Sharia Cash vs. Accounting Partner Settlement:** Supports crate-batch sales and slaughterhouse truck weighbridge (`Tare / Gross`), running trader/slaughterhouse/supplier ledgers with `FIFO` payment allocation, and Sharia **Inan (`عِنان`)** & **Mudarabah (`مضاربة`)** settlements that separate book profit (`netAccountingProfit`) from actual distributable cash (`distributableNetCashNow`) after capital recovery and unpaid supplier reserves. 6. **5-Role API-Sanitized RBAC & Multi-Organization Switcher:** Enforces `OWNER`, `PARTNER_MANAGER`, `PARTNER_VIEWER` (read-only), `FIELD_WORKER` (100% server-side stripping of prices, costs, sales, and partner ledgers), and `SUPERVISING_VET` (with a Multi-Organization Switcher to supervise multiple client farms from one login). 7. **4G-Safe Hybrid House CCTV & Gemini Vision AI:** Connects `Dahua (DMSS)`, `Hikvision (Hik-Connect)`, or any `ONVIF/RTSP` DVR behind rural `4G` routers via the optional **Smart Farm Edge Box** (`go2rtc` dual-stream: low-bitrate `live_sub` with `120s` auto-stop saving >80% 4G data + single HD frame `ai_snapshot_hd` for 1-click AI flock distribution, litter, droppings, and necropsy inspection). ## Commercial Plans & Pricing (Jordanian Dinar — `JOD`) - **Basic Farm ERP (`BASIC`):** `35 JOD / month` or `350 JOD / year` (saves 2 months = `70 JOD`). Up to **1 Farm**, **4 Houses**, **+2 Team Seats** above Owner (max 1 Managing Partner). Includes full ERP, Live Cost Engine, FIFO Feed, Offline Bluetooth Scale, Weighbridge AR/AP, Sharia Partner Settlement, and Gemini AI Advisor. - **Pro + Hybrid AI Cameras (`PRO_AI_CAMERAS` — Most Popular):** `65 JOD / month` or `650 JOD / year` (saves `130 JOD`). Up to **3 Farms**, **12 Houses**, **+5 Team Seats** above Owner (max 1 Managing Partner). Includes everything in Basic **plus** Hybrid Multi-Vendor House CCTV & 1-click AI Camera Inspection. - **Enterprise Multi-Farm Suite (`ENTERPRISE`):** `120 JOD / month` or `1,200 JOD / year` (saves `240 JOD`). Up to **15 Farms**, **60 Houses**, **+12 Team Seats** above Owner (max 2 Managing Partners). Full ERP, Hybrid CCTV, and AI Vision for integrators, companies, and large multi-site operations. - **Optional Add-ons:** One-Time Setup, Onboarding & Crew Training (`100 JOD`). - **Payment & Activation:** Instant activation in Jordan via **CliQ** or Bank `IBAN` transfer (with encrypted `Cloudflare R2` receipt upload), direct cash, and international card checkout readiness. ## الملخص المرجعي باللغة العربية (Arabic Summary) **منصة PFMS** (`https://www.mypfms.com` — Poultry Farm Management System) هي المنصة السحابية الهندسية والمحاسبية المتكاملة وتطبيق الـ `PWA` المصمم خصيصاً لإدارة مزارع الدواجن (**اللاحم، البياض، والأمهات**) في الأردن والشرق الأوسط: - تحسب **سعر الكلفة اللحظي للكيلو القائم** وسعر التعادل على أرض المزرعة مع التوزيع اليومي للتكاليف الثابتة والأجور (`accrueDaily`) ومخزون العلف بالدفعات (`FIFO`). - تعمل **بدون إنترنت (`Offline-First`)** داخل البركسات المغلقة (`Sandwich Panel`) مع ربط موازين البلوتوث (`BLE / HID`) ومعايرة كتالوج السلالة وساعة تنزيل الصوص وإنذارات الطقس لـ 7 أيام. - تضبط مبيعات القبان والأقفاص وكشوف ذمم التجار والمسالخ والموردين، وتنفذ **تصفية الشركاء الشرعية (عِنان ومضاربة)** مع فصل الربح المحاسبي الدفتري عن **صافي السيولة النقدية الفعلية القابلة للتوزيع الآن**، وعزل مالي تام لعامل البركس، وربط هجين لكاميرات البركسات المقتصدة لباقة `4G`. - الباقات المعتمدة بالدينار الأردني: **الأساسية (35 د.أ/شهر)**، **الاحترافية + الكاميرات (65 د.أ/شهر)**، و**باقة الشركات والمزارع المتعددة (120 د.أ/شهر)** مع توفير شهرين عند الاشتراك السنوي وتفعيل فوري عبر **CliQ**.