{
 "id": "charity-funds-accounts",
 "file": "softwiro-charity-funds-accounts.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": 2,
   "record_tables": [
    {
     "header_row": 11,
     "first_record_row": 12,
     "sample_rows_filled": 6,
     "capacity_last_row": 21,
     "columns": [
      {
       "column": "A",
       "header": "اسم الصندوق",
       "kind": "input",
       "examples": [
        "الصندوق العام",
        "كفالة الأيتام",
        "العلاج"
       ]
      },
      {
       "column": "B",
       "header": "النوع",
       "kind": "input",
       "examples": [
        "عام",
        "مقيد",
        "مقيد"
       ],
       "allowed_values": [
        "عام",
        "مقيد"
       ]
      },
      {
       "column": "C",
       "header": "الرصيد قبل أول سجل",
       "kind": "input",
       "examples": [
        10000,
        2000,
        0
       ]
      }
     ]
    }
   ],
   "settings": [
    {
     "label": "اسم الجمعية",
     "cell": "B4",
     "value": "جمعية الخير للتنمية (مثال)"
    },
    {
     "label": "السنة",
     "cell": "B5",
     "value": 2026
    },
    {
     "label": "شهر التقرير (1 إلى 12)",
     "cell": "B6",
     "value": 10
    }
   ],
   "results": [
    {
     "label": "بداية شهر التقرير",
     "cell": "B8",
     "formula": "=DATE(B5,B6,1)"
    },
    {
     "label": "بداية الشهر التالي",
     "cell": "B9",
     "formula": "=DATE(B5,B6+1,1)"
    }
   ]
  },
  {
   "name": "التبرعات",
   "formula_cells": 2000,
   "record_tables": [
    {
     "header_row": 5,
     "first_record_row": 6,
     "sample_rows_filled": 13,
     "capacity_last_row": 2005,
     "columns": [
      {
       "column": "A",
       "header": "التاريخ",
       "kind": "input",
       "examples": [
        "2026-09-02",
        "2026-09-10",
        "2026-09-15"
       ]
      },
      {
       "column": "B",
       "header": "كود المتبرع",
       "kind": "input",
       "examples": [
        "DN01",
        "DN04",
        "DN03"
       ]
      },
      {
       "column": "C",
       "header": "الصندوق",
       "kind": "input",
       "examples": [
        "الصندوق العام",
        "مشروع بئر المياه",
        "كفالة الأيتام"
       ],
       "allowed_values": {
        "from_range": "'الإعدادات'!$A$12:$A$19"
       }
      },
      {
       "column": "D",
       "header": "المبلغ",
       "kind": "input",
       "examples": [
        1000,
        5000,
        500
       ]
      },
      {
       "column": "E",
       "header": "طريقة الدفع",
       "kind": "input",
       "examples": [
        "نقدًا",
        "تحويل بنكي",
        "محفظة إلكترونية"
       ],
       "allowed_values": [
        "نقدًا",
        "تحويل بنكي",
        "محفظة إلكترونية"
       ]
      },
      {
       "column": "F",
       "header": "ملاحظة",
       "kind": "input"
      },
      {
       "column": "G",
       "header": "أول ظهور للكود",
       "kind": "formula",
       "formula_row_1": "=IF(B6&\"\"=\"\",\"\",IF(COUNTIF($B$6:B6,B6&\"\")=1,1,0))"
      }
     ]
    }
   ]
  },
  {
   "name": "المصارف",
   "formula_cells": 2000,
   "record_tables": [
    {
     "header_row": 5,
     "first_record_row": 6,
     "sample_rows_filled": 9,
     "capacity_last_row": 2005,
     "columns": [
      {
       "column": "A",
       "header": "التاريخ",
       "kind": "input",
       "examples": [
        "2026-09-05",
        "2026-09-28",
        "2026-10-04"
       ]
      },
      {
       "column": "B",
       "header": "الصندوق",
       "kind": "input",
       "examples": [
        "كفالة الأيتام",
        "الصندوق العام",
        "كفالة الأيتام"
       ],
       "allowed_values": {
        "from_range": "'الإعدادات'!$A$12:$A$19"
       }
      },
      {
       "column": "C",
       "header": "البند",
       "kind": "input",
       "examples": [
        "كفالة شهرية",
        "مصروفات إدارية",
        "كفالة شهرية"
       ]
      },
      {
       "column": "D",
       "header": "المبلغ",
       "kind": "input",
       "examples": [
        700,
        450,
        700
       ]
      },
      {
       "column": "E",
       "header": "ملاحظة",
       "kind": "input"
      },
      {
       "column": "F",
       "header": "تنبيه",
       "kind": "formula",
       "formula_row_1": "=IF(B6&\"\"=\"\",\"\",IF(COUNTIF('الإعدادات'!$A$12:$A$19,B6&\"\")=0,\"صندوق غير موجود\",\"\"))"
      }
     ]
    }
   ]
  },
  {
   "name": "تقرير الصناديق",
   "formula_cells": 68,
   "record_tables": [
    {
     "header_row": 8,
     "first_record_row": 9,
     "sample_rows_filled": 0,
     "capacity_last_row": 26,
     "columns": [
      {
       "column": "A",
       "header": "الصندوق",
       "kind": "formula",
       "formula_row_1": "=IF('الإعدادات'!A12=\"\",\"\",'الإعدادات'!A12)"
      },
      {
       "column": "B",
       "header": "النوع",
       "kind": "formula",
       "formula_row_1": "=IF(A9=\"\",\"\",'الإعدادات'!B12&\"\")"
      },
      {
       "column": "C",
       "header": "رصيد أول الشهر",
       "kind": "formula",
       "formula_row_1": "=IF(A9=\"\",\"\",N('الإعدادات'!C12)+SUMIFS('التبرعات'!$D$6:$D$2005,'التبرعات'!$C$6:$C$2005,A9,'التبرعات'!$A$6:$A$2005,\"<\"&'الإعدادات'!$B$8)-SUMIFS('المصارف'!$D$6:$D$2005,'المصارف'!$B$6:$B$2005,A9,'المصارف'!$A$6:$A$2005,\"<\"&'الإعدادات'!$B$8))"
      },
      {
       "column": "D",
       "header": "التبرعات",
       "kind": "formula",
       "formula_row_1": "=IF(A9=\"\",\"\",SUMIFS('التبرعات'!$D$6:$D$2005,'التبرعات'!$C$6:$C$2005,A9,'التبرعات'!$A$6:$A$2005,\">=\"&'الإعدادات'!$B$8,'التبرعات'!$A$6:$A$2005,\"<\"&'الإعدادات'!$B$9))"
      },
      {
       "column": "E",
       "header": "المصروفات",
       "kind": "formula",
       "formula_row_1": "=IF(A9=\"\",\"\",SUMIFS('المصارف'!$D$6:$D$2005,'المصارف'!$B$6:$B$2005,A9,'المصارف'!$A$6:$A$2005,\">=\"&'الإعدادات'!$B$8,'المصارف'!$A$6:$A$2005,\"<\"&'الإعدادات'!$B$9))"
      },
      {
       "column": "F",
       "header": "رصيد آخر الشهر",
       "kind": "formula",
       "formula_row_1": "=IF(A9=\"\",\"\",C9+D9-E9)"
      },
      {
       "column": "G",
       "header": "الحالة",
       "kind": "formula",
       "formula_row_1": "=IF(A9=\"\",\"\",IF(F9<0,\"صُرف أكثر من الرصيد\",\"\"))"
      }
     ]
    }
   ],
   "results": [
    {
     "label": "الجمعية",
     "cell": "B4",
     "formula": "='الإعدادات'!B4"
    },
    {
     "label": "الشهر",
     "cell": "B5",
     "formula": "='الإعدادات'!B6&\" / \"&'الإعدادات'!B5"
    }
   ]
  },
  {
   "name": "لماذا ما زلت على إكسل؟",
   "formula_cells": 0
  }
 ]
}