{
 "id": "glass-aluminum-workshop",
 "file": "softwiro-glass-aluminum-workshop.xlsx",
 "title": "شيت ورشة الزجاج والألوميتال: الطلبات بالمتر والتقطيع والهالك",
 "language": "ar",
 "direction": "rtl",
 "how_it_works": "White cells are typed input; cells whose kind is \"formula\" are calculated and must not be overwritten. Add one record per row under the header row of a record table, keeping the columns in order.",
 "sheets": [
  {
   "name": "ابدأ هنا",
   "formula_cells": 0
  },
  {
   "name": "الإعدادات",
   "formula_cells": 0,
   "settings": [
    {
     "label": "تاريخ اليوم",
     "cell": "B4",
     "value": "2026-11-10"
    },
    {
     "label": "نسبة الهالك المسموح بها في التقطيع",
     "cell": "B5",
     "value": 0.15
    },
    {
     "label": "أول شهر في جدول الملخص (اكتب يومه الأول)",
     "cell": "B6",
     "value": "2026-10-01"
    }
   ]
  },
  {
   "name": "قائمة الأسعار",
   "formula_cells": 80,
   "record_tables": [
    {
     "header_row": 5,
     "first_record_row": 6,
     "sample_rows_filled": 12,
     "capacity_last_row": 45,
     "columns": [
      {
       "column": "A",
       "header": "الكود",
       "kind": "input",
       "examples": [
        "G01",
        "G02",
        "G03"
       ]
      },
      {
       "column": "B",
       "header": "اسم الصنف",
       "kind": "input",
       "examples": [
        "زجاج سادة شفاف 6 مم",
        "زجاج سادة شفاف 8 مم",
        "زجاج برونز 6 مم"
       ]
      },
      {
       "column": "C",
       "header": "النوع",
       "kind": "input",
       "examples": [
        "زجاج",
        "زجاج",
        "زجاج"
       ],
       "allowed_values": [
        "زجاج",
        "ألوميتال",
        "إكسسوار"
       ]
      },
      {
       "column": "D",
       "header": "الوحدة",
       "kind": "input",
       "examples": [
        "م²",
        "م²",
        "م²"
       ],
       "allowed_values": [
        "م²",
        "متر",
        "قطعة"
       ]
      },
      {
       "column": "E",
       "header": "سعر البيع",
       "kind": "input",
       "examples": [
        450,
        590,
        520
       ]
      },
      {
       "column": "F",
       "header": "التكلفة",
       "kind": "input",
       "examples": [
        300,
        400,
        350
       ]
      },
      {
       "column": "G",
       "header": "عرض اللوح (سم)",
       "kind": "input",
       "examples": [
        321,
        321,
        321
       ]
      },
      {
       "column": "H",
       "header": "ارتفاع اللوح (سم)",
       "kind": "input",
       "examples": [
        225,
        225,
        225
       ]
      },
      {
       "column": "I",
       "header": "مساحة اللوح م²",
       "kind": "formula",
       "formula_row_1": "=IF(AND(N(G6)>0,N(H6)>0),ROUND(G6*H6/10000,4),\"\")"
      },
      {
       "column": "J",
       "header": "هامش الربح",
       "kind": "formula",
       "formula_row_1": "=IF(A6&\"\"=\"\",\"\",IF(N(E6)>0,(E6-N(F6))/E6,\"\"))"
      }
     ]
    }
   ]
  },
  {
   "name": "الطلبات",
   "formula_cells": 4000,
   "record_tables": [
    {
     "header_row": 5,
     "first_record_row": 6,
     "sample_rows_filled": 9,
     "capacity_last_row": 405,
     "columns": [
      {
       "column": "A",
       "header": "رقم الطلب",
       "kind": "input",
       "examples": [
        "O001",
        "O002",
        "O003"
       ]
      },
      {
       "column": "B",
       "header": "التاريخ",
       "kind": "input",
       "examples": [
        "2026-10-04",
        "2026-10-07",
        "2026-10-10"
       ]
      },
      {
       "column": "C",
       "header": "العميل",
       "kind": "input",
       "examples": [
        "سامي منصور",
        "شركة الرحمة للمقاولات",
        "مطعم الأصيل"
       ]
      },
      {
       "column": "D",
       "header": "الجوال",
       "kind": "input",
       "examples": [
        "01011122001",
        "01011122002",
        "01011122003"
       ]
      },
      {
       "column": "E",
       "header": "التركيب (يُحصَّل)",
       "kind": "input",
       "examples": [
        600,
        1500,
        0
       ]
      },
      {
       "column": "F",
       "header": "أجرة الفني",
       "kind": "input",
       "examples": [
        350,
        900,
        0
       ]
      },
      {
       "column": "G",
       "header": "خصم",
       "kind": "input",
       "examples": [
        0,
        200,
        0
       ]
      },
      {
       "column": "H",
       "header": "العربون",
       "kind": "input",
       "examples": [
        3000,
        8000,
        2000
       ]
      },
      {
       "column": "I",
       "header": "موعد التسليم",
       "kind": "input",
       "examples": [
        "2026-10-10",
        "2026-10-18",
        "2026-10-16"
       ]
      },
      {
       "column": "J",
       "header": "الحالة",
       "kind": "input",
       "examples": [
        "تم التركيب",
        "تم التركيب",
        "تم التركيب"
       ],
       "allowed_values": [
        "جديد",
        "قيد التقطيع",
        "جاهز للتركيب",
        "تم التركيب",
        "ملغي"
       ]
      },
      {
       "column": "K",
       "header": "بنود الطلب",
       "kind": "formula",
       "formula_row_1": "=IF(A6&\"\"=\"\",\"\",SUMIFS('بنود الطلبات'!$M$6:$M$1505,'بنود الطلبات'!$A$6:$A$1505,A6&\"\"))"
      },
      {
       "column": "L",
       "header": "تكلفة البنود",
       "kind": "formula",
       "formula_row_1": "=IF(A6&\"\"=\"\",\"\",SUMIFS('بنود الطلبات'!$N$6:$N$1505,'بنود الطلبات'!$A$6:$A$1505,A6&\"\"))"
      },
      {
       "column": "M",
       "header": "إجمالي الطلب",
       "kind": "formula",
       "formula_row_1": "=IF(A6&\"\"=\"\",\"\",IF(J6=\"ملغي\",0,ROUND(K6+N(E6)-N(G6),2)))"
      },
      {
       "column": "N",
       "header": "المدفوع",
       "kind": "formula",
       "formula_row_1": "=IF(A6&\"\"=\"\",\"\",N(H6)+SUMIFS('الدفعات'!$C$6:$C$2005,'الدفعات'!$B$6:$B$2005,A6&\"\"))"
      },
      {
       "column": "O",
       "header": "المتبقي",
       "kind": "formula",
       "formula_row_1": "=IF(A6&\"\"=\"\",\"\",ROUND(M6-N6,2))"
      },
      {
       "column": "P",
       "header": "الربح",
       "kind": "formula",
       "formula_row_1": "=IF(A6&\"\"=\"\",\"\",IF(J6=\"ملغي\",0,ROUND(M6-L6-N(F6),2)))"
      },
      {
       "column": "Q",
       "header": "م² زجاج",
       "kind": "formula",
       "formula_row_1": "=IF(A6&\"\"=\"\",\"\",SUMIFS('بنود الطلبات'!$K$6:$K$1505,'بنود الطلبات'!$A$6:$A$1505,A6&\"\",'بنود الطلبات'!$J$6:$J$1505,\"زجاج\"))"
      },
      {
       "column": "R",
       "header": "هامش الربح",
       "kind": "formula",
       "formula_row_1": "=IF(A6&\"\"=\"\",\"\",IF(M6>0,P6/M6,\"\"))"
      },
      {
       "column": "S",
       "header": "تنبيه",
       "kind": "formula",
       "formula_row_1": "=IF(A6&\"\"=\"\",\"\",IF(T6<>\"\",\"متأخر \"&T6&\" يوم\",IF(AND(J6=\"تم التركيب\",O6>0),\"تم التركيب وعليه متبقي\",\"\")))"
      },
      {
       "column": "T",
       "header": "أيام التأخر",
       "kind": "formula",
       "formula_row_1": "=IF(A6&\"\"=\"\",\"\",IF(AND(ISNUMBER(I6),OR(J6=\"جديد\",J6=\"قيد التقطيع\",J6=\"جاهز للتركيب\")),IF('الإعدادات'!$B$4>I6,'الإعدادات'!$B$4-I6,\"\"),\"\"))"
      }
     ]
    }
   ]
  },
  {
   "name": "بنود الطلبات",
   "formula_cells": 13500,
   "record_tables": [
    {
     "header_row": 5,
     "first_record_row": 6,
     "sample_rows_filled": 30,
     "capacity_last_row": 1505,
     "columns": [
      {
       "column": "A",
       "header": "رقم الطلب",
       "kind": "input",
       "examples": [
        "O001",
        "O001",
        "O001"
       ],
       "allowed_values": {
        "from_range": "'الطلبات'!$A$6:$A$405"
       }
      },
      {
       "column": "B",
       "header": "الوصف",
       "kind": "input",
       "examples": [
        "شبابيك غرف سحاب",
        "قطاع سحاب للشبابيك",
        "قطاع ضلفة"
       ]
      },
      {
       "column": "C",
       "header": "كود الصنف",
       "kind": "input",
       "examples": [
        "G01",
        "A01",
        "A02"
       ],
       "allowed_values": {
        "from_range": "'قائمة الأسعار'!$A$6:$A$45"
       }
      },
      {
       "column": "D",
       "header": "اسم الصنف",
       "kind": "formula",
       "formula_row_1": "=IF(C6&\"\"=\"\",\"\",IFERROR(INDEX('قائمة الأسعار'!$B$6:$B$45,MATCH(C6&\"\",'قائمة الأسعار'!$A$6:$A$45,0))&\"\",\"كود غير موجود\"))"
      },
      {
       "column": "E",
       "header": "العرض أو الطول (سم)",
       "kind": "input",
       "examples": [
        120,
        440,
        440
       ]
      },
      {
       "column": "F",
       "header": "الارتفاع (سم)",
       "kind": "input",
       "examples": [
        100,
        220,
        210
       ]
      },
      {
       "column": "G",
       "header": "عدد القطع",
       "kind": "input",
       "examples": [
        3,
        3,
        3
       ]
      },
      {
       "column": "H",
       "header": "سعر خاص",
       "kind": "input",
       "examples": [
        460
       ]
      },
      {
       "column": "I",
       "header": "الوحدة",
       "kind": "formula",
       "formula_row_1": "=IF(C6&\"\"=\"\",\"\",IFERROR(INDEX('قائمة الأسعار'!$D$6:$D$45,MATCH(C6&\"\",'قائمة الأسعار'!$A$6:$A$45,0))&\"\",\"\"))"
      },
      {
       "column": "J",
       "header": "النوع",
       "kind": "formula",
       "formula_row_1": "=IF(C6&\"\"=\"\",\"\",IFERROR(INDEX('قائمة الأسعار'!$C$6:$C$45,MATCH(C6&\"\",'قائمة الأسعار'!$A$6:$A$45,0))&\"\",\"\"))"
      },
      {
       "column": "K",
       "header": "الكمية المحاسبية",
       "kind": "formula",
       "formula_row_1": "=IF(C6&\"\"=\"\",\"\",IF(I6=\"م²\",ROUND(N(G6)*N(E6)*N(F6)/10000,4),IF(I6=\"متر\",ROUND(N(G6)*N(E6)/100,4),N(G6))))"
      },
      {
       "column": "L",
       "header": "سعر الوحدة",
       "kind": "formula",
       "formula_row_1": "=IF(C6&\"\"=\"\",\"\",IF(ISNUMBER(H6),H6,IFERROR(INDEX('قائمة الأسعار'!$E$6:$E$45,MATCH(C6&\"\",'قائمة الأسعار'!$A$6:$A$45,0)),0)))"
      },
      {
       "column": "M",
       "header": "إجمالي البند",
       "kind": "formula",
       "formula_row_1": "=IF(C6&\"\"=\"\",\"\",ROUND(K6*L6,2))"
      },
      {
       "column": "N",
       "header": "تكلفة البند",
       "kind": "formula",
       "formula_row_1": "=IF(C6&\"\"=\"\",\"\",ROUND(K6*IFERROR(INDEX('قائمة الأسعار'!$F$6:$F$45,MATCH(C6&\"\",'قائمة الأسعار'!$A$6:$A$45,0)),0),2))"
      },
      {
       "column": "O",
       "header": "ربح البند",
       "kind": "formula",
       "formula_row_1": "=IF(C6&\"\"=\"\",\"\",ROUND(M6-N6,2))"
      },
      {
       "column": "P",
       "header": "حالة الطلب",
       "kind": "formula",
       "formula_row_1": "=IF(A6&\"\"=\"\",\"\",IFERROR(INDEX('الطلبات'!$J$6:$J$405,MATCH(A6&\"\",'الطلبات'!$A$6:$A$405,0))&\"\",\"طلب غير موجود\"))"
      }
     ]
    }
   ]
  },
  {
   "name": "الدفعات",
   "formula_cells": 2000,
   "record_tables": [
    {
     "header_row": 5,
     "first_record_row": 6,
     "sample_rows_filled": 6,
     "capacity_last_row": 2005,
     "columns": [
      {
       "column": "A",
       "header": "التاريخ",
       "kind": "input",
       "examples": [
        "2026-10-10",
        "2026-10-18",
        "2026-10-16"
       ]
      },
      {
       "column": "B",
       "header": "رقم الطلب",
       "kind": "input",
       "examples": [
        "O001",
        "O002",
        "O003"
       ],
       "allowed_values": {
        "from_range": "'الطلبات'!$A$6:$A$405"
       }
      },
      {
       "column": "C",
       "header": "المبلغ",
       "kind": "input",
       "examples": [
        5760,
        6835,
        800
       ]
      },
      {
       "column": "D",
       "header": "طريقة الدفع",
       "kind": "input",
       "examples": [
        "نقدًا",
        "تحويل بنكي",
        "نقدًا"
       ],
       "allowed_values": [
        "نقدًا",
        "تحويل بنكي",
        "محفظة"
       ]
      },
      {
       "column": "E",
       "header": "ملاحظة",
       "kind": "input"
      },
      {
       "column": "F",
       "header": "العميل",
       "kind": "formula",
       "formula_row_1": "=IF(B6&\"\"=\"\",\"\",IFERROR(INDEX('الطلبات'!$C$6:$C$405,MATCH(B6&\"\",'الطلبات'!$A$6:$A$405,0))&\"\",\"طلب غير موجود\"))"
      }
     ]
    }
   ]
  },
  {
   "name": "التقطيع",
   "formula_cells": 7000,
   "record_tables": [
    {
     "header_row": 5,
     "first_record_row": 6,
     "sample_rows_filled": 9,
     "capacity_last_row": 1005,
     "columns": [
      {
       "column": "A",
       "header": "التاريخ",
       "kind": "input",
       "examples": [
        "2026-10-05",
        "2026-10-08",
        "2026-10-11"
       ]
      },
      {
       "column": "B",
       "header": "رقم الطلب",
       "kind": "input",
       "examples": [
        "O001",
        "O002",
        "O003"
       ]
      },
      {
       "column": "C",
       "header": "كود الزجاج",
       "kind": "input",
       "examples": [
        "G01",
        "G05",
        "G02"
       ],
       "allowed_values": {
        "from_range": "'قائمة الأسعار'!$A$6:$A$45"
       }
      },
      {
       "column": "D",
       "header": "اسم الزجاج",
       "kind": "formula",
       "formula_row_1": "=IF(C6&\"\"=\"\",\"\",IFERROR(INDEX('قائمة الأسعار'!$B$6:$B$45,MATCH(C6&\"\",'قائمة الأسعار'!$A$6:$A$45,0))&\"\",\"كود غير موجود\"))"
      },
      {
       "column": "E",
       "header": "عدد الألواح",
       "kind": "input",
       "examples": [
        1,
        2,
        1
       ]
      },
      {
       "column": "F",
       "header": "عدد القطع",
       "kind": "input",
       "examples": [
        7,
        3,
        8
       ]
      },
      {
       "column": "G",
       "header": "م² المقطوع (القطع)",
       "kind": "input",
       "examples": [
        6.4,
        12.1,
        6.5
       ]
      },
      {
       "column": "H",
       "header": "م² اللوح",
       "kind": "formula",
       "formula_row_1": "=IF(C6&\"\"=\"\",\"\",IFERROR(N(INDEX('قائمة الأسعار'!$I$6:$I$45,MATCH(C6&\"\",'قائمة الأسعار'!$A$6:$A$45,0))),0))"
      },
      {
       "column": "I",
       "header": "م² الألواح كلها",
       "kind": "formula",
       "formula_row_1": "=IF(C6&\"\"=\"\",\"\",ROUND(N(E6)*H6,4))"
      },
      {
       "column": "J",
       "header": "م² الهالك",
       "kind": "formula",
       "formula_row_1": "=IF(C6&\"\"=\"\",\"\",ROUND(I6-N(G6),4))"
      },
      {
       "column": "K",
       "header": "نسبة الهالك",
       "kind": "formula",
       "formula_row_1": "=IF(C6&\"\"=\"\",\"\",IF(I6>0,J6/I6,\"\"))"
      },
      {
       "column": "L",
       "header": "تكلفة الهالك",
       "kind": "formula",
       "formula_row_1": "=IF(C6&\"\"=\"\",\"\",MAX(0,J6)*IFERROR(INDEX('قائمة الأسعار'!$F$6:$F$45,MATCH(C6&\"\",'قائمة الأسعار'!$A$6:$A$45,0)),0))"
      },
      {
       "column": "M",
       "header": "تنبيه",
       "kind": "formula",
       "formula_row_1": "=IF(C6&\"\"=\"\",\"\",IF(N(G6)>I6,\"المقطوع أكبر من الألواح\",IF(ISNUMBER(K6),IF(K6>'الإعدادات'!$B$5,\"هالك مرتفع\",\"\"),\"\")))"
      }
     ]
    }
   ]
  },
  {
   "name": "المشتريات",
   "formula_cells": 2000,
   "record_tables": [
    {
     "header_row": 5,
     "first_record_row": 6,
     "sample_rows_filled": 11,
     "capacity_last_row": 1005,
     "columns": [
      {
       "column": "A",
       "header": "التاريخ",
       "kind": "input",
       "examples": [
        "2026-10-01",
        "2026-10-02",
        "2026-10-02"
       ]
      },
      {
       "column": "B",
       "header": "كود الصنف",
       "kind": "input",
       "examples": [
        "G01",
        "A01",
        "A02"
       ],
       "allowed_values": {
        "from_range": "'قائمة الأسعار'!$A$6:$A$45"
       }
      },
      {
       "column": "C",
       "header": "اسم الصنف",
       "kind": "formula",
       "formula_row_1": "=IF(B6&\"\"=\"\",\"\",IFERROR(INDEX('قائمة الأسعار'!$B$6:$B$45,MATCH(B6&\"\",'قائمة الأسعار'!$A$6:$A$45,0))&\"\",\"كود غير موجود\"))"
      },
      {
       "column": "D",
       "header": "الكمية",
       "kind": "input",
       "examples": [
        10,
        200,
        200
       ]
      },
      {
       "column": "E",
       "header": "المورد",
       "kind": "input",
       "examples": [
        "مصنع الزجاج المتحد",
        "الشرق للألوميتال",
        "الشرق للألوميتال"
       ]
      },
      {
       "column": "F",
       "header": "المدفوع للمورد",
       "kind": "input",
       "examples": [
        21700,
        30000,
        34000
       ]
      },
      {
       "column": "G",
       "header": "تكلفة الوحدة",
       "kind": "formula",
       "formula_row_1": "=IF(B6&\"\"=\"\",\"\",IF(N(D6)>0,ROUND(N(F6)/D6,2),\"\"))"
      }
     ]
    }
   ]
  },
  {
   "name": "المخزون",
   "formula_cells": 320,
   "record_tables": [
    {
     "header_row": 5,
     "first_record_row": 6,
     "sample_rows_filled": 12,
     "capacity_last_row": 45,
     "columns": [
      {
       "column": "A",
       "header": "الكود",
       "kind": "input",
       "examples": [
        "G01",
        "G02",
        "G03"
       ],
       "allowed_values": {
        "from_range": "'قائمة الأسعار'!$A$6:$A$45"
       }
      },
      {
       "column": "B",
       "header": "الصنف",
       "kind": "formula",
       "formula_row_1": "=IF(A6&\"\"=\"\",\"\",IFERROR(INDEX('قائمة الأسعار'!$B$6:$B$45,MATCH(A6&\"\",'قائمة الأسعار'!$A$6:$A$45,0))&\"\",\"كود غير موجود\"))"
      },
      {
       "column": "C",
       "header": "النوع",
       "kind": "formula",
       "formula_row_1": "=IF(A6&\"\"=\"\",\"\",IFERROR(INDEX('قائمة الأسعار'!$C$6:$C$45,MATCH(A6&\"\",'قائمة الأسعار'!$A$6:$A$45,0))&\"\",\"\"))"
      },
      {
       "column": "D",
       "header": "وحدة الرصيد",
       "kind": "formula",
       "formula_row_1": "=IF(A6&\"\"=\"\",\"\",IF(C6=\"زجاج\",\"لوح\",IFERROR(INDEX('قائمة الأسعار'!$D$6:$D$45,MATCH(A6&\"\",'قائمة الأسعار'!$A$6:$A$45,0))&\"\",\"\")))"
      },
      {
       "column": "E",
       "header": "رصيد أول المدة",
       "kind": "input",
       "examples": [
        6,
        4,
        1
       ]
      },
      {
       "column": "F",
       "header": "الحد الأدنى",
       "kind": "input",
       "examples": [
        5,
        4,
        2
       ]
      },
      {
       "column": "G",
       "header": "المشتريات",
       "kind": "formula",
       "formula_row_1": "=IF(A6&\"\"=\"\",\"\",SUMIFS('المشتريات'!$D$6:$D$1005,'المشتريات'!$B$6:$B$1005,A6&\"\"))"
      },
      {
       "column": "H",
       "header": "المستهلك",
       "kind": "formula",
       "formula_row_1": "=IF(A6&\"\"=\"\",\"\",IF(C6=\"زجاج\",SUMIFS('التقطيع'!$E$6:$E$1005,'التقطيع'!$C$6:$C$1005,A6&\"\"),SUMIFS('بنود الطلبات'!$K$6:$K$1505,'بنود الطلبات'!$C$6:$C$1505,A6&\"\",'بنود الطلبات'!$P$6:$P$1505,\"<>ملغي\")))"
      },
      {
       "column": "I",
       "header": "الرصيد الحالي",
       "kind": "formula",
       "formula_row_1": "=IF(A6&\"\"=\"\",\"\",N(E6)+G6-H6)"
      },
      {
       "column": "J",
       "header": "قيمة الرصيد (تكلفة)",
       "kind": "formula",
       "formula_row_1": "=IF(A6&\"\"=\"\",\"\",IF(C6=\"زجاج\",ROUND(I6*IFERROR(N(INDEX('قائمة الأسعار'!$I$6:$I$45,MATCH(A6&\"\",'قائمة الأسعار'!$A$6:$A$45,0))),0)*IFERROR(INDEX('قائمة الأسعار'!$F$6:$F$45,MATCH(A6&\"\",'قائمة الأسعار'!$A$6:$A$45,0)),0),2),ROUND(I6*IFERROR(INDEX('قائمة الأسعار'!$F$6:$F$45,MATCH(A6&\"\",'قائمة الأسعار'!$A$6:$A$45,0)),0),2)))"
      },
      {
       "column": "K",
       "header": "الحالة",
       "kind": "formula",
       "formula_row_1": "=IF(A6&\"\"=\"\",\"\",IF(I6<0,\"رصيد سالب\",IF(I6<=N(F6),\"اطلب\",\"متوفر\")))"
      }
     ]
    }
   ]
  },
  {
   "name": "الملخص",
   "formula_cells": 75,
   "record_tables": [
    {
     "header_row": 42,
     "first_record_row": 43,
     "sample_rows_filled": 12,
     "capacity_last_row": 55,
     "columns": [
      {
       "column": "A",
       "header": "النوع",
       "kind": "input",
       "examples": [
        "زجاج",
        "ألوميتال",
        "إكسسوار"
       ]
      },
      {
       "column": "B",
       "header": "الإيراد",
       "kind": "formula",
       "formula_row_1": "=SUMIFS('بنود الطلبات'!$M$6:$M$1505,'بنود الطلبات'!$J$6:$J$1505,A43,'بنود الطلبات'!$P$6:$P$1505,\"<>ملغي\")"
      },
      {
       "column": "C",
       "header": "التكلفة",
       "kind": "formula",
       "formula_row_1": "=SUMIFS('بنود الطلبات'!$N$6:$N$1505,'بنود الطلبات'!$J$6:$J$1505,A43,'بنود الطلبات'!$P$6:$P$1505,\"<>ملغي\")"
      },
      {
       "column": "D",
       "header": "الربح",
       "kind": "formula",
       "formula_row_1": "=B43-C43"
      }
     ]
    }
   ],
   "results": [
    {
     "label": "عدد الطلبات المسجلة",
     "cell": "B5",
     "formula": "=COUNTIF('الطلبات'!$A$6:$A$405,\"?*\")"
    },
    {
     "label": "طلبات ملغية",
     "cell": "B6",
     "formula": "=COUNTIF('الطلبات'!$J$6:$J$405,\"ملغي\")"
    },
    {
     "label": "طلبات مفتوحة (جديد أو تقطيع أو جاهز)",
     "cell": "B7",
     "formula": "=COUNTIF('الطلبات'!$J$6:$J$405,\"جديد\")+COUNTIF('الطلبات'!$J$6:$J$405,\"قيد التقطيع\")+COUNTIF('الطلبات'!$J$6:$J$405,\"جاهز للتركيب\")"
    },
    {
     "label": "طلبات تم تركيبها",
     "cell": "B8",
     "formula": "=COUNTIF('الطلبات'!$J$6:$J$405,\"تم التركيب\")"
    },
    {
     "label": "طلبات متأخرة عن موعدها",
     "cell": "B9",
     "formula": "=COUNT('الطلبات'!$T$6:$T$405)"
    },
    {
     "label": "بنود الطلبات (دون الملغي، قبل الخصم)",
     "cell": "B12",
     "formula": "=SUMIFS('بنود الطلبات'!$M$6:$M$1505,'بنود الطلبات'!$P$6:$P$1505,\"<>ملغي\")"
    },
    {
     "label": "التركيب المحصّل",
     "cell": "B13",
     "formula": "=SUMIFS('الطلبات'!$E$6:$E$405,'الطلبات'!$J$6:$J$405,\"<>ملغي\")"
    },
    {
     "label": "الخصومات",
     "cell": "B14",
     "formula": "=SUMIFS('الطلبات'!$G$6:$G$405,'الطلبات'!$J$6:$J$405,\"<>ملغي\")"
    },
    {
     "label": "إجمالي الطلبات",
     "cell": "B15",
     "formula": "=SUM('الطلبات'!$M$6:$M$405)"
    },
    {
     "label": "تكلفة البنود",
     "cell": "B16",
     "formula": "=SUMIFS('بنود الطلبات'!$N$6:$N$1505,'بنود الطلبات'!$P$6:$P$1505,\"<>ملغي\")"
    },
    {
     "label": "أجرة الفنيين",
     "cell": "B17",
     "formula": "=SUMIFS('الطلبات'!$F$6:$F$405,'الطلبات'!$J$6:$J$405,\"<>ملغي\")"
    },
    {
     "label": "الربح قبل المصاريف الثابتة",
     "cell": "B18",
     "formula": "=SUM('الطلبات'!$P$6:$P$405)"
    },
    {
     "label": "هامش الربح",
     "cell": "B19",
     "formula": "=IF(B15=0,\"\",B18/B15)"
    },
    {
     "label": "م² الزجاج المباع",
     "cell": "B20",
     "formula": "=SUMIFS('بنود الطلبات'!$K$6:$K$1505,'بنود الطلبات'!$J$6:$J$1505,\"زجاج\",'بنود الطلبات'!$P$6:$P$1505,\"<>ملغي\")"
    },
    {
     "label": "أمتار القطاع المباعة",
     "cell": "B21",
     "formula": "=SUMIFS('بنود الطلبات'!$K$6:$K$1505,'بنود الطلبات'!$J$6:$J$1505,\"ألوميتال\",'بنود الطلبات'!$P$6:$P$1505,\"<>ملغي\")"
    },
    {
     "label": "المدفوع (عربون ودفعات)",
     "cell": "B24",
     "formula": "=SUM('الطلبات'!$N$6:$N$405)"
    },
    {
     "label": "متبقٍ على العملاء",
     "cell": "B25",
     "formula": "=SUMIF('الطلبات'!$O$6:$O$405,\">0\")"
    },
    {
     "label": "طلبات عليها متبقي",
     "cell": "B26",
     "formula": "=COUNTIF('الطلبات'!$O$6:$O$405,\">0\")"
    },
    {
     "label": "ألواح مقطوعة",
     "cell": "B29",
     "formula": "=SUM('التقطيع'!$E$6:$E$1005)"
    },
    {
     "label": "م² الألواح المستخدمة",
     "cell": "B30",
     "formula": "=SUM('التقطيع'!$I$6:$I$1005)"
    },
    {
     "label": "م² القطع المقطوعة",
     "cell": "B31",
     "formula": "=SUM('التقطيع'!$G$6:$G$1005)"
    },
    {
     "label": "م² الهالك",
     "cell": "B32",
     "formula": "=B30-B31"
    },
    {
     "label": "نسبة الهالك",
     "cell": "B33",
     "formula": "=IF(B30=0,\"\",B32/B30)"
    },
    {
     "label": "تكلفة الهالك",
     "cell": "B34",
     "formula": "=SUM('التقطيع'!$L$6:$L$1005)"
    },
    {
     "label": "تقطيعات فوق الهالك المسموح",
     "cell": "B35",
     "formula": "=COUNTIF('التقطيع'!$M$6:$M$1005,\"هالك مرتفع\")"
    },
    {
     "label": "قيمة المخزون بسعر التكلفة",
     "cell": "B38",
     "formula": "=SUM('المخزون'!$J$6:$J$45)"
    },
    {
     "label": "أصناف تحت الحد الأدنى",
     "cell": "B39",
     "formula": "=COUNTIF('المخزون'!$K$6:$K$45,\"اطلب\")+COUNTIF('المخزون'!$K$6:$K$45,\"رصيد سالب\")"
    }
   ]
  },
  {
   "name": "لماذا ما زلت على إكسل؟",
   "formula_cells": 0
  }
 ]
}