{
 "id": "garment-printing-orders",
 "file": "softwiro-garment-printing-orders.xlsx",
 "title": "شيت مطبعة الملابس: طلبات الطباعة DTF والسلك سكرين والتكلفة",
 "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,
   "record_tables": [
    {
     "header_row": 4,
     "first_record_row": 5,
     "sample_rows_filled": 5,
     "capacity_last_row": 9,
     "columns": [
      {
       "column": "A",
       "header": "الإعداد",
       "kind": "input",
       "examples": [
        "تاريخ اليوم",
        "أقل هامش ربح مقبول",
        "عرض رول الفيلم المفيد (سم)"
       ]
      },
      {
       "column": "B",
       "header": "القيمة",
       "kind": "input",
       "examples": [
        "2026-11-15",
        0.2,
        58
       ]
      },
      {
       "column": "C",
       "header": "ملاحظة",
       "kind": "input",
       "examples": [
        "اكتبه بيدك كل مرة تفتح فيها الشيت؛ منه يُحسب تأخر التسليم.",
        "الطلب الذي ربحه أقل من هذه النسبة من إجماليه يظهر «هامش منخفض».",
        "العرض الذي يمكن الطباعة عليه فعلًا؛ منه تُحسب أمتار الفيلم والورق."
       ]
      }
     ]
    }
   ]
  },
  {
   "name": "قواعد الأسعار",
   "formula_cells": 0,
   "record_tables": [
    {
     "header_row": 5,
     "first_record_row": 6,
     "sample_rows_filled": 12,
     "capacity_last_row": 23,
     "columns": [
      {
       "column": "A",
       "header": "الطريقة",
       "kind": "input",
       "examples": [
        "DTF",
        "سلك سكرين",
        "سبلميشن"
       ]
      },
      {
       "column": "B",
       "header": "أساس التسعير",
       "kind": "input",
       "examples": [
        "مساحة",
        "ألوان",
        "مساحة"
       ],
       "allowed_values": [
        "مساحة",
        "ألوان",
        "ألف غرزة"
       ]
      },
      {
       "column": "C",
       "header": "سعر الوحدة للقطعة",
       "kind": "input",
       "examples": [
        0.09,
        3.5,
        0.07
       ]
      },
      {
       "column": "D",
       "header": "أقل سعر للطبعة",
       "kind": "input",
       "examples": [
        8,
        4,
        8
       ]
      },
      {
       "column": "E",
       "header": "رسم التجهيز للطلب",
       "kind": "input",
       "examples": [
        0,
        120,
        0
       ]
      },
      {
       "column": "F",
       "header": "تكلفة المواد للوحدة",
       "kind": "input",
       "examples": [
        0.03,
        0.9,
        0.025
       ]
      },
      {
       "column": "G",
       "header": "تكلفة العمل للقطعة",
       "kind": "input",
       "examples": [
        2,
        1.5,
        2.5
       ]
      },
      {
       "column": "H",
       "header": "تكلفة التجهيز الفعلية",
       "kind": "input",
       "examples": [
        0,
        70,
        0
       ]
      }
     ]
    }
   ]
  },
  {
   "name": "الملابس",
   "formula_cells": 160,
   "record_tables": [
    {
     "header_row": 5,
     "first_record_row": 6,
     "sample_rows_filled": 6,
     "capacity_last_row": 45,
     "columns": [
      {
       "column": "A",
       "header": "الكود",
       "kind": "input",
       "examples": [
        "G01",
        "G02",
        "G03"
       ]
      },
      {
       "column": "B",
       "header": "القطعة الفارغة",
       "kind": "input",
       "examples": [
        "تيشيرت قطن أبيض",
        "تيشيرت قطن أسود",
        "بولو قطن"
       ]
      },
      {
       "column": "C",
       "header": "التكلفة",
       "kind": "input",
       "examples": [
        95,
        100,
        150
       ]
      },
      {
       "column": "D",
       "header": "سعر البيع",
       "kind": "input",
       "examples": [
        130,
        135,
        200
       ]
      },
      {
       "column": "E",
       "header": "المستلم",
       "kind": "input",
       "examples": [
        150,
        60,
        40
       ]
      },
      {
       "column": "F",
       "header": "المستخدم",
       "kind": "formula",
       "formula_row_1": "=IF(A6&\"\"=\"\",\"\",SUMIFS('الطلبات'!$G$6:$G$205,'الطلبات'!$F$6:$F$205,A6&\"\",'الطلبات'!$E$6:$E$205,\"من الورشة\",'الطلبات'!$I$6:$I$205,\"<>ملغي\"))"
      },
      {
       "column": "G",
       "header": "الرصيد",
       "kind": "formula",
       "formula_row_1": "=IF(A6&\"\"=\"\",\"\",N(E6)-F6)"
      },
      {
       "column": "H",
       "header": "الحد الأدنى",
       "kind": "input",
       "examples": [
        30,
        20,
        15
       ]
      },
      {
       "column": "I",
       "header": "الحالة",
       "kind": "formula",
       "formula_row_1": "=IF(A6&\"\"=\"\",\"\",IF(G6<=0,\"نفد\",IF(G6<N(H6),\"اطلب\",\"متوفر\")))"
      },
      {
       "column": "J",
       "header": "قيمة المخزون",
       "kind": "formula",
       "formula_row_1": "=IF(A6&\"\"=\"\",\"\",ROUND(MAX(G6,0)*N(C6),2))"
      }
     ]
    }
   ]
  },
  {
   "name": "المستهلكات",
   "formula_cells": 120,
   "record_tables": [
    {
     "header_row": 5,
     "first_record_row": 6,
     "sample_rows_filled": 5,
     "capacity_last_row": 35,
     "columns": [
      {
       "column": "A",
       "header": "الكود",
       "kind": "input",
       "examples": [
        "C01",
        "C02",
        "C03"
       ]
      },
      {
       "column": "B",
       "header": "المستهلك",
       "kind": "input",
       "examples": [
        "فيلم DTF عرض 60 سم",
        "بودرة DTF",
        "حبر DTF"
       ]
      },
      {
       "column": "C",
       "header": "الوحدة",
       "kind": "input",
       "examples": [
        "متر",
        "كجم",
        "لتر"
       ]
      },
      {
       "column": "D",
       "header": "الطريقة التي يخدمها",
       "kind": "input",
       "examples": [
        "DTF",
        "DTF",
        "DTF"
       ],
       "allowed_values": {
        "from_range": "'قواعد الأسعار'!$A$6:$A$13"
       }
      },
      {
       "column": "E",
       "header": "استهلاك لكل متر أو لون×قطعة",
       "kind": "input",
       "examples": [
        1,
        0.03,
        0.01
       ]
      },
      {
       "column": "F",
       "header": "تكلفة الوحدة",
       "kind": "input",
       "examples": [
        55,
        600,
        1800
       ]
      },
      {
       "column": "G",
       "header": "الرصيد الافتتاحي + المستلم",
       "kind": "input",
       "examples": [
        60,
        2,
        0.5
       ]
      },
      {
       "column": "H",
       "header": "المستخدم",
       "kind": "formula",
       "formula_row_1": "=IF(A6&\"\"=\"\",\"\",ROUND(N(E6)*(SUMIFS('الطبعات'!$Q$6:$Q$505,'الطبعات'!$C$6:$C$505,D6&\"\")+SUMIFS('الطبعات'!$R$6:$R$505,'الطبعات'!$C$6:$C$505,D6&\"\")),3))"
      },
      {
       "column": "I",
       "header": "الرصيد",
       "kind": "formula",
       "formula_row_1": "=IF(A6&\"\"=\"\",\"\",ROUND(N(G6)-H6,3))"
      },
      {
       "column": "J",
       "header": "الحد الأدنى",
       "kind": "input",
       "examples": [
        20,
        0.5,
        0.3
       ]
      },
      {
       "column": "K",
       "header": "الحالة",
       "kind": "formula",
       "formula_row_1": "=IF(A6&\"\"=\"\",\"\",IF(I6<=0,\"نفد\",IF(I6<N(J6),\"اطلب\",\"متوفر\")))"
      },
      {
       "column": "L",
       "header": "قيمة المخزون",
       "kind": "formula",
       "formula_row_1": "=IF(A6&\"\"=\"\",\"\",ROUND(MAX(I6,0)*N(F6),2))"
      }
     ]
    }
   ]
  },
  {
   "name": "الطلبات",
   "formula_cells": 3200,
   "record_tables": [
    {
     "header_row": 5,
     "first_record_row": 6,
     "sample_rows_filled": 10,
     "capacity_last_row": 205,
     "columns": [
      {
       "column": "A",
       "header": "رقم الطلب",
       "kind": "input",
       "examples": [
        "P001",
        "P002",
        "P003"
       ]
      },
      {
       "column": "B",
       "header": "التاريخ",
       "kind": "input",
       "examples": [
        "2026-10-05",
        "2026-10-09",
        "2026-10-14"
       ]
      },
      {
       "column": "C",
       "header": "العميل",
       "kind": "input",
       "examples": [
        "أكاديمية النجوم الرياضية",
        "مدرسة الأمل الخاصة",
        "مقهى الجسر"
       ]
      },
      {
       "column": "D",
       "header": "الجوال",
       "kind": "input",
       "examples": [
        "01010000011",
        "01010000012",
        "01010000013"
       ]
      },
      {
       "column": "E",
       "header": "القطعة",
       "kind": "input",
       "examples": [
        "من الورشة",
        "من العميل",
        "من الورشة"
       ],
       "allowed_values": [
        "من العميل",
        "من الورشة"
       ]
      },
      {
       "column": "F",
       "header": "كود القطعة",
       "kind": "input",
       "examples": [
        "G01",
        "G03",
        "G04"
       ],
       "allowed_values": {
        "from_range": "'الملابس'!$A$6:$A$45"
       }
      },
      {
       "column": "G",
       "header": "الكمية",
       "kind": "input",
       "examples": [
        40,
        120,
        18
       ]
      },
      {
       "column": "H",
       "header": "موعد التسليم",
       "kind": "input",
       "examples": [
        "2026-10-15",
        "2026-10-25",
        "2026-10-28"
       ]
      },
      {
       "column": "I",
       "header": "الحالة",
       "kind": "input",
       "examples": [
        "تم التسليم",
        "تم التسليم",
        "جاهز"
       ],
       "allowed_values": [
        "جديد",
        "تصميم وموافقة",
        "قيد الطباعة",
        "جاهز",
        "تم التسليم",
        "ملغي"
       ]
      },
      {
       "column": "J",
       "header": "العربون",
       "kind": "input",
       "examples": [
        3000,
        500,
        1500
       ]
      },
      {
       "column": "K",
       "header": "اسم القطعة",
       "kind": "formula",
       "formula_row_1": "=IF(A6&\"\"=\"\",\"\",IF(NOT(E6=\"من الورشة\"),\"من العميل\",IFERROR(INDEX('الملابس'!$B$6:$B$45,MATCH(F6&\"\",'الملابس'!$A$6:$A$45,0))&\"\",\"كود غير موجود\")))"
      },
      {
       "column": "L",
       "header": "ثمن القطع",
       "kind": "formula",
       "formula_row_1": "=IF(A6&\"\"=\"\",\"\",IF(OR(NOT(E6=\"من الورشة\"),I6=\"ملغي\"),0,ROUND(N(G6)*IFERROR(INDEX('الملابس'!$D$6:$D$45,MATCH(F6&\"\",'الملابس'!$A$6:$A$45,0)),0),2)))"
      },
      {
       "column": "M",
       "header": "خصم الكمية",
       "kind": "formula",
       "formula_row_1": "=IF(A6&\"\"=\"\",\"\",IFERROR(INDEX('قواعد الأسعار'!$B$19:$B$26,MATCH(N(G6),'قواعد الأسعار'!$A$19:$A$26,1)),0))"
      },
      {
       "column": "N",
       "header": "إيراد الطباعة",
       "kind": "formula",
       "formula_row_1": "=IF(A6&\"\"=\"\",\"\",IF(I6=\"ملغي\",0,ROUND(SUMIFS('الطبعات'!$O$6:$O$505,'الطبعات'!$A$6:$A$505,A6&\"\"),2)))"
      },
      {
       "column": "O",
       "header": "إجمالي الطلب",
       "kind": "formula",
       "formula_row_1": "=IF(A6&\"\"=\"\",\"\",ROUND(L6+N6,2))"
      },
      {
       "column": "P",
       "header": "المدفوع",
       "kind": "formula",
       "formula_row_1": "=IF(A6&\"\"=\"\",\"\",N(J6)+SUMIFS('الدفعات'!$C$6:$C$305,'الدفعات'!$B$6:$B$305,A6&\"\"))"
      },
      {
       "column": "Q",
       "header": "المتبقي",
       "kind": "formula",
       "formula_row_1": "=IF(A6&\"\"=\"\",\"\",ROUND(O6-P6,2))"
      },
      {
       "column": "R",
       "header": "تكلفة القطع",
       "kind": "formula",
       "formula_row_1": "=IF(A6&\"\"=\"\",\"\",IF(OR(NOT(E6=\"من الورشة\"),I6=\"ملغي\"),0,ROUND(N(G6)*IFERROR(INDEX('الملابس'!$C$6:$C$45,MATCH(F6&\"\",'الملابس'!$A$6:$A$45,0)),0),2)))"
      },
      {
       "column": "S",
       "header": "تكلفة الطباعة",
       "kind": "formula",
       "formula_row_1": "=IF(A6&\"\"=\"\",\"\",IF(I6=\"ملغي\",0,ROUND(SUMIFS('الطبعات'!$P$6:$P$505,'الطبعات'!$A$6:$A$505,A6&\"\"),2)))"
      },
      {
       "column": "T",
       "header": "إجمالي التكلفة",
       "kind": "formula",
       "formula_row_1": "=IF(A6&\"\"=\"\",\"\",ROUND(R6+S6,2))"
      },
      {
       "column": "U",
       "header": "الربح",
       "kind": "formula",
       "formula_row_1": "=IF(A6&\"\"=\"\",\"\",ROUND(O6-T6,2))"
      },
      {
       "column": "V",
       "header": "الهامش",
       "kind": "formula",
       "formula_row_1": "=IF(A6&\"\"=\"\",\"\",IF(O6>0,U6/O6,\"\"))"
      },
      {
       "column": "W",
       "header": "تنبيه",
       "kind": "formula",
       "formula_row_1": "=IF(A6&\"\"=\"\",\"\",IF(I6=\"ملغي\",\"\",IF(X6=1,\"متأخر \"&('الإعدادات'!$B$5-H6)&\" يوم\",IF(K6=\"كود غير موجود\",\"كود قطعة غير موجود\",IF(COUNTIFS('الطبعات'!$A$6:$A$505,A6&\"\")=0,\"أدخل الطبعات\",IF(AND(O6>0,U6<O6*'الإعدادات'!$B$6),\"هامش منخفض\",\"\"))))))"
      },
      {
       "column": "X",
       "header": "متأخر؟",
       "kind": "formula",
       "formula_row_1": "=IF(A6&\"\"=\"\",\"\",IF(AND(I6<>\"ملغي\",I6<>\"تم التسليم\",N(H6)>0,N(H6)<'الإعدادات'!$B$5),1,0))"
      },
      {
       "column": "Y",
       "header": "ترتيب التأخر",
       "kind": "formula",
       "formula_row_1": "=IF(X6=1,SUM($X$6:X6),\"\")"
      },
      {
       "column": "Z",
       "header": "ترتيب المتبقي",
       "kind": "formula",
       "formula_row_1": "=IF(ISNUMBER(Q6),IF(Q6>0,COUNTIFS($Q$6:$Q$205,\">\"&Q6)+COUNTIFS($Q$6:Q6,Q6),\"\"),\"\")"
      }
     ]
    }
   ]
  },
  {
   "name": "الطبعات",
   "formula_cells": 6500,
   "record_tables": [
    {
     "header_row": 5,
     "first_record_row": 6,
     "sample_rows_filled": 16,
     "capacity_last_row": 505,
     "columns": [
      {
       "column": "A",
       "header": "رقم الطلب",
       "kind": "input",
       "examples": [
        "P001",
        "P001",
        "P002"
       ],
       "allowed_values": {
        "from_range": "'الطلبات'!$A$6:$A$205"
       }
      },
      {
       "column": "B",
       "header": "المكان",
       "kind": "input",
       "examples": [
        "الصدر",
        "الظهر",
        "الصدر"
       ],
       "allowed_values": [
        "الصدر",
        "الظهر",
        "الكم",
        "يسار الصدر",
        "الرقبة"
       ]
      },
      {
       "column": "C",
       "header": "الطريقة",
       "kind": "input",
       "examples": [
        "DTF",
        "DTF",
        "سلك سكرين"
       ],
       "allowed_values": {
        "from_range": "'قواعد الأسعار'!$A$6:$A$13"
       }
      },
      {
       "column": "D",
       "header": "العرض سم",
       "kind": "input",
       "examples": [
        25,
        30,
        20
       ]
      },
      {
       "column": "E",
       "header": "الطول سم",
       "kind": "input",
       "examples": [
        30,
        35,
        25
       ]
      },
      {
       "column": "F",
       "header": "الألوان",
       "kind": "input",
       "examples": [
        2,
        1,
        1
       ]
      },
      {
       "column": "G",
       "header": "آلاف الغرز",
       "kind": "input",
       "examples": [
        5,
        4
       ]
      },
      {
       "column": "H",
       "header": "حالة الطلب",
       "kind": "formula",
       "formula_row_1": "=IF(A6&\"\"=\"\",\"\",IFERROR(INDEX('الطلبات'!$I$6:$I$205,MATCH(A6&\"\",'الطلبات'!$A$6:$A$205,0))&\"\",\"طلب غير موجود\"))"
      },
      {
       "column": "I",
       "header": "الكمية",
       "kind": "formula",
       "formula_row_1": "=IF(A6&\"\"=\"\",\"\",IFERROR(INDEX('الطلبات'!$G$6:$G$205,MATCH(A6&\"\",'الطلبات'!$A$6:$A$205,0)),0))"
      },
      {
       "column": "J",
       "header": "خصم الكمية",
       "kind": "formula",
       "formula_row_1": "=IF(A6&\"\"=\"\",\"\",IFERROR(INDEX('الطلبات'!$M$6:$M$205,MATCH(A6&\"\",'الطلبات'!$A$6:$A$205,0)),0))"
      },
      {
       "column": "K",
       "header": "وحدات التسعير",
       "kind": "formula",
       "formula_row_1": "=IF(A6&\"\"=\"\",\"\",IFERROR(IF(INDEX('قواعد الأسعار'!$B$6:$B$13,MATCH(C6&\"\",'قواعد الأسعار'!$A$6:$A$13,0))=\"مساحة\",N(D6)*N(E6),IF(INDEX('قواعد الأسعار'!$B$6:$B$13,MATCH(C6&\"\",'قواعد الأسعار'!$A$6:$A$13,0))=\"ألوان\",N(F6),N(G6))),0))"
      },
      {
       "column": "L",
       "header": "سعر القطعة قبل الخصم",
       "kind": "formula",
       "formula_row_1": "=IF(A6&\"\"=\"\",\"\",IFERROR(IF(K6=0,0,MAX(INDEX('قواعد الأسعار'!$D$6:$D$13,MATCH(C6&\"\",'قواعد الأسعار'!$A$6:$A$13,0)),ROUND(K6*INDEX('قواعد الأسعار'!$C$6:$C$13,MATCH(C6&\"\",'قواعد الأسعار'!$A$6:$A$13,0)),2))),0))"
      },
      {
       "column": "M",
       "header": "سعر القطعة بعد الخصم",
       "kind": "formula",
       "formula_row_1": "=IF(A6&\"\"=\"\",\"\",ROUND(L6*(1-J6),2))"
      },
      {
       "column": "N",
       "header": "رسم التجهيز",
       "kind": "formula",
       "formula_row_1": "=IF(A6&\"\"=\"\",\"\",IFERROR(IF(K6=0,0,ROUND(INDEX('قواعد الأسعار'!$E$6:$E$13,MATCH(C6&\"\",'قواعد الأسعار'!$A$6:$A$13,0))*IF(INDEX('قواعد الأسعار'!$B$6:$B$13,MATCH(C6&\"\",'قواعد الأسعار'!$A$6:$A$13,0))=\"ألوان\",N(F6),1),2)),0))"
      },
      {
       "column": "O",
       "header": "إيراد الطبعة",
       "kind": "formula",
       "formula_row_1": "=IF(A6&\"\"=\"\",\"\",ROUND(M6*I6,2)+N6)"
      },
      {
       "column": "P",
       "header": "تكلفة الطبعة",
       "kind": "formula",
       "formula_row_1": "=IF(A6&\"\"=\"\",\"\",IFERROR(IF(K6=0,0,ROUND((INDEX('قواعد الأسعار'!$F$6:$F$13,MATCH(C6&\"\",'قواعد الأسعار'!$A$6:$A$13,0))*K6+INDEX('قواعد الأسعار'!$G$6:$G$13,MATCH(C6&\"\",'قواعد الأسعار'!$A$6:$A$13,0)))*I6+INDEX('قواعد الأسعار'!$H$6:$H$13,MATCH(C6&\"\",'قواعد الأسعار'!$A$6:$A$13,0))*IF(INDEX('قواعد الأسعار'!$B$6:$B$13,MATCH(C6&\"\",'قواعد الأسعار'!$A$6:$A$13,0))=\"ألوان\",N(F6),1),2)),0))"
      },
      {
       "column": "Q",
       "header": "أمتار الرول",
       "kind": "formula",
       "formula_row_1": "=IF(A6&\"\"=\"\",\"\",IFERROR(IF(OR(H6=\"ملغي\",INDEX('قواعد الأسعار'!$B$6:$B$13,MATCH(C6&\"\",'قواعد الأسعار'!$A$6:$A$13,0))<>\"مساحة\"),0,ROUND(N(D6)*N(E6)*I6/('الإعدادات'!$B$7*100)*(1+'الإعدادات'!$B$8),3)),0))"
      },
      {
       "column": "R",
       "header": "ألوان × قطع",
       "kind": "formula",
       "formula_row_1": "=IF(A6&\"\"=\"\",\"\",IFERROR(IF(OR(H6=\"ملغي\",INDEX('قواعد الأسعار'!$B$6:$B$13,MATCH(C6&\"\",'قواعد الأسعار'!$A$6:$A$13,0))<>\"ألوان\"),0,N(F6)*I6),0))"
      },
      {
       "column": "S",
       "header": "تنبيه",
       "kind": "formula",
       "formula_row_1": "=IF(A6&\"\"=\"\",\"\",IF(H6=\"طلب غير موجود\",\"طلب غير موجود\",IF(ISNA(MATCH(C6&\"\",'قواعد الأسعار'!$A$6:$A$13,0)),\"طريقة غير معروفة\",IF(K6=0,\"أدخل المقاس أو الألوان\",\"\"))))"
      },
      {
       "column": "T",
       "header": "قيمة الخصم",
       "kind": "formula",
       "formula_row_1": "=IF(A6&\"\"=\"\",\"\",ROUND((L6-M6)*I6,2))"
      }
     ]
    }
   ]
  },
  {
   "name": "الدفعات",
   "formula_cells": 300,
   "record_tables": [
    {
     "header_row": 5,
     "first_record_row": 6,
     "sample_rows_filled": 6,
     "capacity_last_row": 305,
     "columns": [
      {
       "column": "A",
       "header": "التاريخ",
       "kind": "input",
       "examples": [
        "2026-10-15",
        "2026-10-25",
        "2026-10-28"
       ]
      },
      {
       "column": "B",
       "header": "رقم الطلب",
       "kind": "input",
       "examples": [
        "P001",
        "P002",
        "P003"
       ],
       "allowed_values": {
        "from_range": "'الطلبات'!$A$6:$A$205"
       }
      },
      {
       "column": "C",
       "header": "المبلغ",
       "kind": "input",
       "examples": [
        5000,
        982,
        700
       ]
      },
      {
       "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$205,MATCH(B6&\"\",'الطلبات'!$A$6:$A$205,0))&\"\",\"طلب غير موجود\"))"
      }
     ]
    }
   ]
  },
  {
   "name": "المتابعة",
   "formula_cells": 362,
   "record_tables": [
    {
     "header_row": 6,
     "first_record_row": 7,
     "sample_rows_filled": 0,
     "capacity_last_row": 51,
     "columns": [
      {
       "column": "A",
       "header": "م",
       "kind": "formula",
       "formula_row_1": "=IF(1<=$B$5,1,\"\")"
      },
      {
       "column": "B",
       "header": "الطلب",
       "kind": "formula",
       "formula_row_1": "=IF($A7=\"\",\"\",INDEX('الطلبات'!$A$6:$A$205,MATCH($A7,'الطلبات'!$Y$6:$Y$205,0)))"
      },
      {
       "column": "C",
       "header": "العميل",
       "kind": "formula",
       "formula_row_1": "=IF($A7=\"\",\"\",INDEX('الطلبات'!$C$6:$C$205,MATCH($A7,'الطلبات'!$Y$6:$Y$205,0)))"
      },
      {
       "column": "D",
       "header": "الجوال",
       "kind": "formula",
       "formula_row_1": "=IF($A7=\"\",\"\",INDEX('الطلبات'!$D$6:$D$205,MATCH($A7,'الطلبات'!$Y$6:$Y$205,0)))"
      },
      {
       "column": "E",
       "header": "الحالة",
       "kind": "formula",
       "formula_row_1": "=IF($A7=\"\",\"\",INDEX('الطلبات'!$I$6:$I$205,MATCH($A7,'الطلبات'!$Y$6:$Y$205,0)))"
      },
      {
       "column": "F",
       "header": "الموعد",
       "kind": "formula",
       "formula_row_1": "=IF($A7=\"\",\"\",INDEX('الطلبات'!$H$6:$H$205,MATCH($A7,'الطلبات'!$Y$6:$Y$205,0)))"
      },
      {
       "column": "G",
       "header": "أيام التأخر",
       "kind": "formula",
       "formula_row_1": "=IF($A7=\"\",\"\",'الإعدادات'!$B$5-F7)"
      },
      {
       "column": "H",
       "header": "المتبقي",
       "kind": "formula",
       "formula_row_1": "=IF($A7=\"\",\"\",INDEX('الطلبات'!$Q$6:$Q$205,MATCH($A7,'الطلبات'!$Y$6:$Y$205,0)))"
      },
      {
       "column": "I",
       "header": "الكمية",
       "kind": "formula",
       "formula_row_1": "=IF($A7=\"\",\"\",INDEX('الطلبات'!$G$6:$G$205,MATCH($A7,'الطلبات'!$Y$6:$Y$205,0)))"
      }
     ]
    }
   ],
   "results": [
    {
     "label": "عدد الطلبات المتأخرة",
     "cell": "B5",
     "formula": "=SUM('الطلبات'!$X$6:$X$205)"
    }
   ]
  },
  {
   "name": "الملخص",
   "formula_cells": 105,
   "record_tables": [
    {
     "header_row": 24,
     "first_record_row": 25,
     "sample_rows_filled": 0,
     "capacity_last_row": 48,
     "columns": [
      {
       "column": "A",
       "header": "الطريقة",
       "kind": "formula",
       "formula_row_1": "=IF('قواعد الأسعار'!A6=\"\",\"\",'قواعد الأسعار'!A6)"
      },
      {
       "column": "B",
       "header": "عدد الطبعات",
       "kind": "formula",
       "formula_row_1": "=IF($A25=\"\",\"\",COUNTIFS('الطبعات'!$C$6:$C$505,$A25,'الطبعات'!$H$6:$H$505,\"<>ملغي\"))"
      },
      {
       "column": "C",
       "header": "القطع المطبوعة",
       "kind": "formula",
       "formula_row_1": "=IF($A25=\"\",\"\",SUMIFS('الطبعات'!$I$6:$I$505,'الطبعات'!$C$6:$C$505,$A25,'الطبعات'!$H$6:$H$505,\"<>ملغي\"))"
      },
      {
       "column": "D",
       "header": "الإيراد",
       "kind": "formula",
       "formula_row_1": "=IF($A25=\"\",\"\",SUMIFS('الطبعات'!$O$6:$O$505,'الطبعات'!$C$6:$C$505,$A25,'الطبعات'!$H$6:$H$505,\"<>ملغي\"))"
      },
      {
       "column": "E",
       "header": "التكلفة",
       "kind": "formula",
       "formula_row_1": "=IF($A25=\"\",\"\",SUMIFS('الطبعات'!$P$6:$P$505,'الطبعات'!$C$6:$C$505,$A25,'الطبعات'!$H$6:$H$505,\"<>ملغي\"))"
      },
      {
       "column": "F",
       "header": "الربح",
       "kind": "formula",
       "formula_row_1": "=IF($A25=\"\",\"\",D25-E25)"
      }
     ]
    }
   ],
   "results": [
    {
     "label": "عدد الطلبات المسجلة",
     "cell": "B5",
     "formula": "=COUNTIF('الطلبات'!$A$6:$A$205,\"?*\")"
    },
    {
     "label": "طلبات ملغية",
     "cell": "B6",
     "formula": "=COUNTIF('الطلبات'!$I$6:$I$205,\"ملغي\")"
    },
    {
     "label": "طلبات مفتوحة (لم تُسلَّم)",
     "cell": "B7",
     "formula": "=B5-B6-COUNTIF('الطلبات'!$I$6:$I$205,\"تم التسليم\")"
    },
    {
     "label": "طلبات متأخرة عن موعدها",
     "cell": "B8",
     "formula": "=SUM('الطلبات'!$X$6:$X$205)"
    },
    {
     "label": "قطع مطلوبة (دون الملغي)",
     "cell": "B9",
     "formula": "=SUMIFS('الطلبات'!$G$6:$G$205,'الطلبات'!$I$6:$I$205,\"<>ملغي\")"
    },
    {
     "label": "ثمن القطع الفارغة المباعة",
     "cell": "B12",
     "formula": "=SUM('الطلبات'!$L$6:$L$205)"
    },
    {
     "label": "إيراد الطباعة",
     "cell": "B13",
     "formula": "=SUM('الطلبات'!$N$6:$N$205)"
    },
    {
     "label": "إجمالي الطلبات",
     "cell": "B14",
     "formula": "=B12+B13"
    },
    {
     "label": "المحصّل (عربون ودفعات)",
     "cell": "B15",
     "formula": "=SUM('الطلبات'!$P$6:$P$205)"
    },
    {
     "label": "المتبقي عند العملاء",
     "cell": "B16",
     "formula": "=SUMIF('الطلبات'!$Q$6:$Q$205,\">0\")"
    },
    {
     "label": "التكلفة",
     "cell": "B17",
     "formula": "=SUM('الطلبات'!$T$6:$T$205)"
    },
    {
     "label": "الربح",
     "cell": "B18",
     "formula": "=B14-B17"
    },
    {
     "label": "هامش الربح",
     "cell": "B19",
     "formula": "=IF(B14=0,\"\",B18/B14)"
    },
    {
     "label": "خصومات الكمية الممنوحة",
     "cell": "B20",
     "formula": "=SUMIFS('الطبعات'!$T$6:$T$505,'الطبعات'!$H$6:$H$505,\"<>ملغي\")"
    },
    {
     "label": "مستهلكات وقطع تحت الحد الأدنى",
     "cell": "B21",
     "formula": "=COUNTIF('المستهلكات'!$K$6:$K$35,\"اطلب\")+COUNTIF('المستهلكات'!$K$6:$K$35,\"نفد\")+COUNTIF('الملابس'!$I$6:$I$45,\"اطلب\")+COUNTIF('الملابس'!$I$6:$I$45,\"نفد\")"
    }
   ]
  },
  {
   "name": "لماذا ما زلت على إكسل؟",
   "formula_cells": 0
  }
 ]
}