{
 "id": "cash-flow-forecast",
 "file": "softwiro-cash-flow-forecast.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": 219,
   "record_tables": [
    {
     "header_row": 25,
     "first_record_row": 26,
     "sample_rows_filled": 0,
     "capacity_last_row": 54,
     "columns": [
      {
       "column": "A",
       "header": "الأسبوع",
       "kind": "formula",
       "formula_row_1": "=INDEX('توقع 13 أسبوع'!$B$5:$N$5,ROW()-25)"
      },
      {
       "column": "B",
       "header": "من",
       "kind": "formula",
       "formula_row_1": "=INDEX('توقع 13 أسبوع'!$B$6:$N$6,ROW()-25)"
      },
      {
       "column": "C",
       "header": "المقبوضات",
       "kind": "formula",
       "formula_row_1": "=INDEX('توقع 13 أسبوع'!$B$13:$N$13,ROW()-25)"
      },
      {
       "column": "D",
       "header": "المدفوعات",
       "kind": "formula",
       "formula_row_1": "=INDEX('توقع 13 أسبوع'!$B$21:$N$21,ROW()-25)"
      },
      {
       "column": "E",
       "header": "الصافي",
       "kind": "formula",
       "formula_row_1": "=INDEX('توقع 13 أسبوع'!$B$22:$N$22,ROW()-25)"
      },
      {
       "column": "F",
       "header": "الرصيد الختامي",
       "kind": "formula",
       "formula_row_1": "=INDEX('توقع 13 أسبوع'!$B$23:$N$23,ROW()-25)"
      },
      {
       "column": "G",
       "header": "الحد الأدنى",
       "kind": "formula",
       "formula_row_1": "=INDEX('توقع 13 أسبوع'!$B$24:$N$24,ROW()-25)"
      },
      {
       "column": "H",
       "header": "الحالة",
       "kind": "formula",
       "formula_row_1": "=INDEX('توقع 13 أسبوع'!$B$25:$N$25,ROW()-25)"
      }
     ]
    }
   ],
   "results": [
    {
     "label": "الرصيد الافتتاحي",
     "cell": "B4",
     "formula": "='الإعدادات'!B4"
    },
    {
     "label": "الحد الأدنى للنقد",
     "cell": "B5",
     "formula": "='الإعدادات'!B6"
    },
    {
     "label": "أقل رصيد في الأسابيع الـ 13",
     "cell": "B6",
     "formula": "=MIN('توقع 13 أسبوع'!$B$23:$N$23)"
    },
    {
     "label": "الأسبوع صاحب أقل رصيد",
     "cell": "B7",
     "formula": "=INDEX('توقع 13 أسبوع'!$B$5:$N$5,MATCH(B6,'توقع 13 أسبوع'!$B$23:$N$23,0))"
    },
    {
     "label": "أول أسبوع ينزل فيه الرصيد تحت الحد",
     "cell": "B8",
     "formula": "=IFERROR(INDEX('توقع 13 أسبوع'!$B$5:$N$5,MATCH(\"تحت الحد\",'توقع 13 أسبوع'!$B$25:$N$25,0)),\"لا يوجد\")"
    },
    {
     "label": "يبدأ هذا الأسبوع في",
     "cell": "B9",
     "formula": "=IFERROR(INDEX('توقع 13 أسبوع'!$B$6:$N$6,MATCH(\"تحت الحد\",'توقع 13 أسبوع'!$B$25:$N$25,0)),\"\")"
    },
    {
     "label": "العجز عن الحد الأدنى في أدنى نقطة",
     "cell": "B10",
     "formula": "=MAX(0,B5-B6)"
    },
    {
     "label": "الرصيد المتوقع نهاية الأسبوع 13",
     "cell": "B11",
     "formula": "='توقع 13 أسبوع'!N23"
    },
    {
     "label": "عدد الأسابيع تحت الحد",
     "cell": "B12",
     "formula": "=COUNTIF('توقع 13 أسبوع'!$B$25:$N$25,\"تحت الحد\")"
    },
    {
     "label": "أول شهر ينزل فيه الرصيد تحت الحد",
     "cell": "B13",
     "formula": "=IFERROR(INDEX('توقع 12 شهر'!$B$5:$M$5,MATCH(\"تحت الحد\",'توقع 12 شهر'!$B$25:$M$25,0)),\"لا يوجد\")"
    },
    {
     "label": "يبدأ هذا الشهر في",
     "cell": "B14",
     "formula": "=IFERROR(INDEX('توقع 12 شهر'!$B$6:$M$6,MATCH(\"تحت الحد\",'توقع 12 شهر'!$B$25:$M$25,0)),\"\")"
    },
    {
     "label": "أقل رصيد شهري متوقع",
     "cell": "B15",
     "formula": "=MIN('توقع 12 شهر'!$B$23:$M$23)"
    },
    {
     "label": "الرصيد المتوقع نهاية الشهر 12",
     "cell": "B16",
     "formula": "='توقع 12 شهر'!M23"
    },
    {
     "label": "عدد الأشهر تحت الحد",
     "cell": "B17",
     "formula": "=COUNTIF('توقع 12 شهر'!$B$25:$M$25,\"تحت الحد\")"
    },
    {
     "label": "متبقٍ تحصيله من العملاء",
     "cell": "B18",
     "formula": "=SUM('مستحقات العملاء'!$F$5:$F$204)"
    },
    {
     "label": "منه متأخر عن تاريخ اليوم",
     "cell": "B19",
     "formula": "=SUMIFS('مستحقات العملاء'!$F$5:$F$204,'مستحقات العملاء'!$C$5:$C$204,\"<\"&'الإعدادات'!B8)"
    },
    {
     "label": "متبقٍ سداده للموردين",
     "cell": "B20",
     "formula": "=SUM('مستحقات الموردين'!$F$5:$F$204)"
    },
    {
     "label": "منه متأخر عن تاريخ اليوم",
     "cell": "B21",
     "formula": "=SUMIFS('مستحقات الموردين'!$F$5:$F$204,'مستحقات الموردين'!$C$5:$C$204,\"<\"&'الإعدادات'!B8)"
    },
    {
     "label": "فرق الرصيد الفعلي عن المتوقع في آخر أسبوع منتهي",
     "cell": "B22",
     "formula": "=IF('الإعدادات'!B9=0,\"\",INDEX('توقع 13 أسبوع'!$B$34:$N$34,'الإعدادات'!B9))"
    }
   ]
  },
  {
   "name": "توقع 13 أسبوع",
   "formula_cells": 369,
   "record_tables": [
    {
     "header_row": 5,
     "first_record_row": 6,
     "sample_rows_filled": 29,
     "capacity_last_row": 34,
     "columns": [
      {
       "column": "A",
       "header": "البند",
       "kind": "input",
       "examples": [
        "من",
        "إلى",
        "الرصيد الافتتاحي"
       ]
      },
      {
       "column": "B",
       "header": "أسبوع 1",
       "kind": "formula",
       "formula_row_1": "='الإعدادات'!$B$5+7*(B$4-1)"
      },
      {
       "column": "C",
       "header": "أسبوع 2",
       "kind": "formula",
       "formula_row_1": "='الإعدادات'!$B$5+7*(C$4-1)"
      },
      {
       "column": "D",
       "header": "أسبوع 3",
       "kind": "formula",
       "formula_row_1": "='الإعدادات'!$B$5+7*(D$4-1)"
      },
      {
       "column": "E",
       "header": "أسبوع 4",
       "kind": "formula",
       "formula_row_1": "='الإعدادات'!$B$5+7*(E$4-1)"
      },
      {
       "column": "F",
       "header": "أسبوع 5",
       "kind": "formula",
       "formula_row_1": "='الإعدادات'!$B$5+7*(F$4-1)"
      },
      {
       "column": "G",
       "header": "أسبوع 6",
       "kind": "formula",
       "formula_row_1": "='الإعدادات'!$B$5+7*(G$4-1)"
      },
      {
       "column": "H",
       "header": "أسبوع 7",
       "kind": "formula",
       "formula_row_1": "='الإعدادات'!$B$5+7*(H$4-1)"
      },
      {
       "column": "I",
       "header": "أسبوع 8",
       "kind": "formula",
       "formula_row_1": "='الإعدادات'!$B$5+7*(I$4-1)"
      },
      {
       "column": "J",
       "header": "أسبوع 9",
       "kind": "formula",
       "formula_row_1": "='الإعدادات'!$B$5+7*(J$4-1)"
      },
      {
       "column": "K",
       "header": "أسبوع 10",
       "kind": "formula",
       "formula_row_1": "='الإعدادات'!$B$5+7*(K$4-1)"
      },
      {
       "column": "L",
       "header": "أسبوع 11",
       "kind": "formula",
       "formula_row_1": "='الإعدادات'!$B$5+7*(L$4-1)"
      },
      {
       "column": "M",
       "header": "أسبوع 12",
       "kind": "formula",
       "formula_row_1": "='الإعدادات'!$B$5+7*(M$4-1)"
      },
      {
       "column": "N",
       "header": "أسبوع 13",
       "kind": "formula",
       "formula_row_1": "='الإعدادات'!$B$5+7*(N$4-1)"
      },
      {
       "column": "O",
       "header": "الإجمالي",
       "kind": "input",
       "examples": [
        "=B8",
        "=SUM(B10:N10)",
        "=SUM(B11:N11)"
       ]
      }
     ]
    }
   ],
   "settings": [
    {
     "label": "رقم الفترة",
     "cell": "B4",
     "value": 1
    }
   ]
  },
  {
   "name": "توقع 12 شهر",
   "formula_cells": 343,
   "record_tables": [
    {
     "header_row": 5,
     "first_record_row": 6,
     "sample_rows_filled": 29,
     "capacity_last_row": 34,
     "columns": [
      {
       "column": "A",
       "header": "البند",
       "kind": "input",
       "examples": [
        "من",
        "إلى",
        "الرصيد الافتتاحي"
       ]
      },
      {
       "column": "B",
       "header": "شهر 1",
       "kind": "formula",
       "formula_row_1": "=DATE(YEAR('الإعدادات'!$B$5),MONTH('الإعدادات'!$B$5)+B$4-1,1)"
      },
      {
       "column": "C",
       "header": "شهر 2",
       "kind": "formula",
       "formula_row_1": "=DATE(YEAR('الإعدادات'!$B$5),MONTH('الإعدادات'!$B$5)+C$4-1,1)"
      },
      {
       "column": "D",
       "header": "شهر 3",
       "kind": "formula",
       "formula_row_1": "=DATE(YEAR('الإعدادات'!$B$5),MONTH('الإعدادات'!$B$5)+D$4-1,1)"
      },
      {
       "column": "E",
       "header": "شهر 4",
       "kind": "formula",
       "formula_row_1": "=DATE(YEAR('الإعدادات'!$B$5),MONTH('الإعدادات'!$B$5)+E$4-1,1)"
      },
      {
       "column": "F",
       "header": "شهر 5",
       "kind": "formula",
       "formula_row_1": "=DATE(YEAR('الإعدادات'!$B$5),MONTH('الإعدادات'!$B$5)+F$4-1,1)"
      },
      {
       "column": "G",
       "header": "شهر 6",
       "kind": "formula",
       "formula_row_1": "=DATE(YEAR('الإعدادات'!$B$5),MONTH('الإعدادات'!$B$5)+G$4-1,1)"
      },
      {
       "column": "H",
       "header": "شهر 7",
       "kind": "formula",
       "formula_row_1": "=DATE(YEAR('الإعدادات'!$B$5),MONTH('الإعدادات'!$B$5)+H$4-1,1)"
      },
      {
       "column": "I",
       "header": "شهر 8",
       "kind": "formula",
       "formula_row_1": "=DATE(YEAR('الإعدادات'!$B$5),MONTH('الإعدادات'!$B$5)+I$4-1,1)"
      },
      {
       "column": "J",
       "header": "شهر 9",
       "kind": "formula",
       "formula_row_1": "=DATE(YEAR('الإعدادات'!$B$5),MONTH('الإعدادات'!$B$5)+J$4-1,1)"
      },
      {
       "column": "K",
       "header": "شهر 10",
       "kind": "formula",
       "formula_row_1": "=DATE(YEAR('الإعدادات'!$B$5),MONTH('الإعدادات'!$B$5)+K$4-1,1)"
      },
      {
       "column": "L",
       "header": "شهر 11",
       "kind": "formula",
       "formula_row_1": "=DATE(YEAR('الإعدادات'!$B$5),MONTH('الإعدادات'!$B$5)+L$4-1,1)"
      },
      {
       "column": "M",
       "header": "شهر 12",
       "kind": "formula",
       "formula_row_1": "=DATE(YEAR('الإعدادات'!$B$5),MONTH('الإعدادات'!$B$5)+M$4-1,1)"
      },
      {
       "column": "N",
       "header": "الإجمالي",
       "kind": "input",
       "examples": [
        "=B8",
        "=SUM(B10:M10)",
        "=SUM(B11:M11)"
       ]
      }
     ]
    }
   ],
   "settings": [
    {
     "label": "رقم الفترة",
     "cell": "B4",
     "value": 1
    }
   ]
  },
  {
   "name": "مستحقات العملاء",
   "formula_cells": 600,
   "record_tables": [
    {
     "header_row": 4,
     "first_record_row": 5,
     "sample_rows_filled": 18,
     "capacity_last_row": 204,
     "columns": [
      {
       "column": "A",
       "header": "رقم الفاتورة",
       "kind": "input",
       "examples": [
        "INV-2041",
        "INV-2046",
        "INV-2050"
       ]
      },
      {
       "column": "B",
       "header": "العميل",
       "kind": "input",
       "examples": [
        "شركة النيل للتجارة",
        "مؤسسة الأمل",
        "مجموعة الدلتا"
       ]
      },
      {
       "column": "C",
       "header": "تاريخ الاستحقاق",
       "kind": "input",
       "examples": [
        "2026-10-04",
        "2026-10-12",
        "2026-10-20"
       ]
      },
      {
       "column": "D",
       "header": "مبلغ الفاتورة",
       "kind": "input",
       "examples": [
        45000,
        30000,
        52000
       ]
      },
      {
       "column": "E",
       "header": "المحصّل منها",
       "kind": "input",
       "examples": [
        45000,
        30000,
        52000
       ]
      },
      {
       "column": "F",
       "header": "المتبقي",
       "kind": "formula",
       "formula_row_1": "=IF(D5&\"\"=\"\",\"\",D5-E5)"
      },
      {
       "column": "G",
       "header": "تاريخ التحصيل المتوقع",
       "kind": "formula",
       "formula_row_1": "=IF(C5&\"\"=\"\",\"\",C5+'الإعدادات'!$B$7)"
      },
      {
       "column": "H",
       "header": "الحالة",
       "kind": "formula",
       "formula_row_1": "=IF(C5&\"\"=\"\",\"\",IF(F5<=0,\"محصّل\",IF(C5<'الإعدادات'!$B$8,\"متأخر\",\"قادم\")))"
      }
     ]
    }
   ]
  },
  {
   "name": "مستحقات الموردين",
   "formula_cells": 600,
   "record_tables": [
    {
     "header_row": 4,
     "first_record_row": 5,
     "sample_rows_filled": 16,
     "capacity_last_row": 204,
     "columns": [
      {
       "column": "A",
       "header": "رقم الفاتورة",
       "kind": "input",
       "examples": [
        "BILL-311",
        "BILL-318",
        "BILL-322"
       ]
      },
      {
       "column": "B",
       "header": "المورد",
       "kind": "input",
       "examples": [
        "مورد الخامات الأولى",
        "شركة النقل السريع",
        "مورد الخامات الأولى"
       ]
      },
      {
       "column": "C",
       "header": "تاريخ الاستحقاق",
       "kind": "input",
       "examples": [
        "2026-10-06",
        "2026-10-14",
        "2026-10-25"
       ]
      },
      {
       "column": "D",
       "header": "مبلغ الفاتورة",
       "kind": "input",
       "examples": [
        38000,
        9500,
        41000
       ]
      },
      {
       "column": "E",
       "header": "المسدّد منها",
       "kind": "input",
       "examples": [
        38000,
        9500,
        41000
       ]
      },
      {
       "column": "F",
       "header": "المتبقي",
       "kind": "formula",
       "formula_row_1": "=IF(D5&\"\"=\"\",\"\",D5-E5)"
      },
      {
       "column": "G",
       "header": "تاريخ السداد المتوقع",
       "kind": "formula",
       "formula_row_1": "=IF(C5&\"\"=\"\",\"\",C5)"
      },
      {
       "column": "H",
       "header": "الحالة",
       "kind": "formula",
       "formula_row_1": "=IF(C5&\"\"=\"\",\"\",IF(F5<=0,\"مسدّد\",IF(C5<'الإعدادات'!$B$8,\"متأخر\",\"قادم\")))"
      }
     ]
    }
   ]
  },
  {
   "name": "بنود أخرى متوقعة",
   "formula_cells": 300,
   "record_tables": [
    {
     "header_row": 4,
     "first_record_row": 5,
     "sample_rows_filled": 61,
     "capacity_last_row": 304,
     "columns": [
      {
       "column": "A",
       "header": "التاريخ المتوقع",
       "kind": "input",
       "examples": [
        "2026-10-01",
        "2026-10-05",
        "2026-10-09"
       ]
      },
      {
       "column": "B",
       "header": "البند",
       "kind": "input",
       "examples": [
        "إيجار",
        "أقساط القروض",
        "مبيعات نقدية"
       ],
       "allowed_values": {
        "from_range": "'الإعدادات'!$A$13:$A$19"
       }
      },
      {
       "column": "C",
       "header": "البيان",
       "kind": "input",
       "examples": [
        "إيجار المقر",
        "قسط قرض البنك",
        "مبيعات نقدية"
       ]
      },
      {
       "column": "D",
       "header": "المبلغ",
       "kind": "input",
       "examples": [
        14000,
        9500,
        12000
       ]
      },
      {
       "column": "E",
       "header": "تنبيه",
       "kind": "formula",
       "formula_row_1": "=IF(D5&\"\"=\"\",\"\",IF(A5&\"\"=\"\",\"اكتب التاريخ\",IF(B5&\"\"=\"\",\"اختر البند\",IF(COUNTIF('الإعدادات'!$A$13:$A$19,B5&\"\")>0,\"\",IF(OR(B5='الإعدادات'!$A$20,B5='الإعدادات'!$A$21),\"هذا البند يأتي من شيت المستحقات\",\"بند غير موجود في الإعدادات\")))))"
      }
     ]
    }
   ]
  },
  {
   "name": "الفعلي",
   "formula_cells": 1000,
   "record_tables": [
    {
     "header_row": 4,
     "first_record_row": 5,
     "sample_rows_filled": 18,
     "capacity_last_row": 504,
     "columns": [
      {
       "column": "A",
       "header": "التاريخ",
       "kind": "input",
       "examples": [
        "2026-10-01",
        "2026-10-05",
        "2026-10-06"
       ]
      },
      {
       "column": "B",
       "header": "البند",
       "kind": "input",
       "examples": [
        "إيجار",
        "أقساط القروض",
        "سداد الموردين"
       ],
       "allowed_values": {
        "from_range": "'الإعدادات'!$A$13:$A$21"
       }
      },
      {
       "column": "C",
       "header": "البيان",
       "kind": "input",
       "examples": [
        "إيجار أكتوبر",
        "قسط القرض",
        "BILL-311"
       ]
      },
      {
       "column": "D",
       "header": "المبلغ",
       "kind": "input",
       "examples": [
        14000,
        9500,
        38000
       ]
      },
      {
       "column": "E",
       "header": "النوع",
       "kind": "formula",
       "formula_row_1": "=IF(B5&\"\"=\"\",\"\",IFERROR(INDEX('الإعدادات'!$B$13:$B$21,MATCH(B5,'الإعدادات'!$A$13:$A$21,0)),\"\"))"
      },
      {
       "column": "F",
       "header": "تنبيه",
       "kind": "formula",
       "formula_row_1": "=IF(D5&\"\"=\"\",\"\",IF(A5&\"\"=\"\",\"اكتب التاريخ\",IF(B5&\"\"=\"\",\"اختر البند\",IF(E5=\"\",\"بند غير موجود في الإعدادات\",\"\"))))"
      }
     ]
    }
   ]
  },
  {
   "name": "الإعدادات",
   "formula_cells": 0,
   "record_tables": [
    {
     "header_row": 12,
     "first_record_row": 13,
     "sample_rows_filled": 10,
     "capacity_last_row": 23,
     "columns": [
      {
       "column": "A",
       "header": "بنود التدفق",
       "kind": "input",
       "examples": [
        "مبيعات نقدية",
        "إيرادات أخرى",
        "رواتب وأجور"
       ]
      },
      {
       "column": "B",
       "header": "النوع",
       "kind": "input",
       "examples": [
        "قبض",
        "قبض",
        "صرف"
       ],
       "allowed_values": [
        "0",
        "1",
        "2",
        "3",
        "4",
        "5",
        "6",
        "7",
        "8",
        "9",
        "10",
        "11",
        "12"
       ]
      },
      {
       "column": "C",
       "header": "المصدر",
       "kind": "input",
       "examples": [
        "يدوي",
        "يدوي",
        "يدوي"
       ]
      }
     ]
    }
   ],
   "settings": [
    {
     "label": "الرصيد الافتتاحي (النقد والبنك في بداية التوقع)",
     "cell": "B4",
     "value": 110000
    },
    {
     "label": "تاريخ بداية التوقع (يفضّل أول يوم في الشهر)",
     "cell": "B5",
     "value": "2026-10-01"
    },
    {
     "label": "الحد الأدنى للنقد",
     "cell": "B6",
     "value": 60000
    },
    {
     "label": "أيام تأخير التحصيل بعد تاريخ الاستحقاق",
     "cell": "B7",
     "value": 7
    },
    {
     "label": "تاريخ اليوم (اكتبه)",
     "cell": "B8",
     "value": "2026-11-13"
    },
    {
     "label": "عدد الأسابيع المنتهية (فعلي)",
     "cell": "B9",
     "value": 6
    },
    {
     "label": "عدد الأشهر المنتهية (فعلي)",
     "cell": "B10",
     "value": 1
    }
   ]
  },
  {
   "name": "لماذا ما زلت على إكسل؟",
   "formula_cells": 0
  }
 ]
}