{
 "id": "cash-customers-account",
 "file": "softwiro-cash-customers-account.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": 1504,
   "record_tables": [
    {
     "header_row": 4,
     "first_record_row": 5,
     "sample_rows_filled": 4,
     "capacity_last_row": 304,
     "columns": [
      {
       "column": "A",
       "header": "العميل",
       "kind": "input",
       "examples": [
        "مكتبة النور",
        "بقالة الأمل",
        "محل السلام"
       ]
      },
      {
       "column": "B",
       "header": "التليفون",
       "kind": "input",
       "examples": [
        "01012345601",
        "01012345602",
        "01012345603"
       ]
      },
      {
       "column": "C",
       "header": "عدد البنود",
       "kind": "formula",
       "formula_row_1": "=IF(A5&\"\"=\"\",\"\",COUNTIFS('المبيعات'!$B$5:$B$2004,A5&\"\"))"
      },
      {
       "column": "D",
       "header": "إجمالي التكلفة",
       "kind": "formula",
       "formula_row_1": "=IF(A5&\"\"=\"\",\"\",SUMIFS('المبيعات'!$F$5:$F$2004,'المبيعات'!$B$5:$B$2004,A5&\"\"))"
      },
      {
       "column": "E",
       "header": "إجمالي الدفعات",
       "kind": "formula",
       "formula_row_1": "=IF(A5&\"\"=\"\",\"\",SUMIFS('الخزنة'!$E$5:$E$2004,'الخزنة'!$C$5:$C$2004,A5&\"\"))"
      },
      {
       "column": "F",
       "header": "المستحق عليه",
       "kind": "formula",
       "formula_row_1": "=IF(A5&\"\"=\"\",\"\",D5-E5)"
      },
      {
       "column": "G",
       "header": "الحالة",
       "kind": "formula",
       "formula_row_1": "=IF(A5&\"\"=\"\",\"\",IF(F5>0,\"عليه مستحق\",IF(F5<0,\"دائن\",\"خالص\")))"
      }
     ]
    }
   ]
  },
  {
   "name": "المبيعات",
   "formula_cells": 4000,
   "record_tables": [
    {
     "header_row": 4,
     "first_record_row": 5,
     "sample_rows_filled": 7,
     "capacity_last_row": 2004,
     "columns": [
      {
       "column": "A",
       "header": "التاريخ",
       "kind": "input",
       "examples": [
        "2026-10-01",
        "2026-10-03",
        "2026-10-05"
       ]
      },
      {
       "column": "B",
       "header": "العميل",
       "kind": "input",
       "examples": [
        "مكتبة النور",
        "مكتبة النور",
        "بقالة الأمل"
       ],
       "allowed_values": {
        "from_range": "'العملاء'!$A$5:$A$304"
       }
      },
      {
       "column": "C",
       "header": "البيان",
       "kind": "input",
       "examples": [
        "كراسات",
        "أقلام",
        "أكياس"
       ]
      },
      {
       "column": "D",
       "header": "العدد",
       "kind": "input",
       "examples": [
        100,
        200,
        50
       ]
      },
      {
       "column": "E",
       "header": "السعر",
       "kind": "input",
       "examples": [
        12.5,
        3,
        20
       ]
      },
      {
       "column": "F",
       "header": "التكلفة",
       "kind": "formula",
       "formula_row_1": "=IF(AND(D5&\"\"=\"\",E5&\"\"=\"\"),\"\",D5*E5)"
      },
      {
       "column": "G",
       "header": "تنبيه",
       "kind": "formula",
       "formula_row_1": "=IF(B5&\"\"=\"\",\"\",IF(COUNTIF('العملاء'!$A$5:$A$304,B5&\"\")=0,\"عميل غير مسجّل\",\"\"))"
      }
     ]
    }
   ]
  },
  {
   "name": "الخزنة",
   "formula_cells": 4000,
   "record_tables": [
    {
     "header_row": 4,
     "first_record_row": 5,
     "sample_rows_filled": 12,
     "capacity_last_row": 2004,
     "columns": [
      {
       "column": "A",
       "header": "التاريخ",
       "kind": "input",
       "examples": [
        "2026-10-01",
        "2026-10-02",
        "2026-10-04"
       ]
      },
      {
       "column": "B",
       "header": "البيان",
       "kind": "input",
       "examples": [
        "مبيعات اليوم",
        "إيجار المحل",
        "دفعة من العميل"
       ]
      },
      {
       "column": "C",
       "header": "العميل (للدفعات)",
       "kind": "input",
       "examples": [
        "مكتبة النور",
        "بقالة الأمل",
        "محل السلام"
       ],
       "allowed_values": {
        "from_range": "'العملاء'!$A$5:$A$304"
       }
      },
      {
       "column": "D",
       "header": "التصنيف",
       "kind": "input",
       "examples": [
        "مبيعات نقدية",
        "إيجار",
        "تحصيل من عملاء"
       ],
       "allowed_values": {
        "from_range": "'التصنيفات'!$A$5:$A$44"
       }
      },
      {
       "column": "E",
       "header": "وارد",
       "kind": "input",
       "examples": [
        1800,
        1000,
        600
       ]
      },
      {
       "column": "F",
       "header": "منصرف",
       "kind": "input",
       "examples": [
        2500,
        420,
        1900
       ]
      },
      {
       "column": "G",
       "header": "الرصيد",
       "kind": "formula",
       "formula_row_1": "=IF(AND(E5&\"\"=\"\",F5&\"\"=\"\"),\"\",'الإعدادات'!$B$5+SUM($E$5:E5)-SUM($F$5:F5))"
      },
      {
       "column": "H",
       "header": "النوع",
       "kind": "formula",
       "formula_row_1": "=IF(D5&\"\"=\"\",\"\",IFERROR(INDEX('التصنيفات'!$B$5:$B$44,MATCH(D5&\"\",'التصنيفات'!$A$5:$A$44,0)),\"غير مصنّف\"))"
      }
     ]
    }
   ]
  },
  {
   "name": "ملخص شهري",
   "formula_cells": 640,
   "record_tables": [
    {
     "header_row": 6,
     "first_record_row": 7,
     "sample_rows_filled": 43,
     "capacity_last_row": 49,
     "columns": [
      {
       "column": "A",
       "header": "التصنيف",
       "kind": "input",
       "examples": [
        "إجمالي الإيرادات",
        "إجمالي المصروفات",
        "الصافي"
       ]
      },
      {
       "column": "B",
       "header": "النوع",
       "kind": "input",
       "examples": [
        "=IF('التصنيفات'!A5&\"\"=\"\",\"\",'التصنيفات'!B5&\"\")",
        "=IF('التصنيفات'!A6&\"\"=\"\",\"\",'التصنيفات'!B6&\"\")",
        "=IF('التصنيفات'!A7&\"\"=\"\",\"\",'التصنيفات'!B7&\"\")"
       ]
      },
      {
       "column": "C",
       "header": "يناير",
       "kind": "formula",
       "formula_row_1": "=SUMIFS(C$10:C$49,$B$10:$B$49,\"إيراد\")"
      },
      {
       "column": "D",
       "header": "فبراير",
       "kind": "formula",
       "formula_row_1": "=SUMIFS(D$10:D$49,$B$10:$B$49,\"إيراد\")"
      },
      {
       "column": "E",
       "header": "مارس",
       "kind": "formula",
       "formula_row_1": "=SUMIFS(E$10:E$49,$B$10:$B$49,\"إيراد\")"
      },
      {
       "column": "F",
       "header": "أبريل",
       "kind": "formula",
       "formula_row_1": "=SUMIFS(F$10:F$49,$B$10:$B$49,\"إيراد\")"
      },
      {
       "column": "G",
       "header": "مايو",
       "kind": "formula",
       "formula_row_1": "=SUMIFS(G$10:G$49,$B$10:$B$49,\"إيراد\")"
      },
      {
       "column": "H",
       "header": "يونيو",
       "kind": "formula",
       "formula_row_1": "=SUMIFS(H$10:H$49,$B$10:$B$49,\"إيراد\")"
      },
      {
       "column": "I",
       "header": "يوليو",
       "kind": "formula",
       "formula_row_1": "=SUMIFS(I$10:I$49,$B$10:$B$49,\"إيراد\")"
      },
      {
       "column": "J",
       "header": "أغسطس",
       "kind": "formula",
       "formula_row_1": "=SUMIFS(J$10:J$49,$B$10:$B$49,\"إيراد\")"
      },
      {
       "column": "K",
       "header": "سبتمبر",
       "kind": "formula",
       "formula_row_1": "=SUMIFS(K$10:K$49,$B$10:$B$49,\"إيراد\")"
      },
      {
       "column": "L",
       "header": "أكتوبر",
       "kind": "formula",
       "formula_row_1": "=SUMIFS(L$10:L$49,$B$10:$B$49,\"إيراد\")"
      },
      {
       "column": "M",
       "header": "نوفمبر",
       "kind": "formula",
       "formula_row_1": "=SUMIFS(M$10:M$49,$B$10:$B$49,\"إيراد\")"
      },
      {
       "column": "N",
       "header": "ديسمبر",
       "kind": "formula",
       "formula_row_1": "=SUMIFS(N$10:N$49,$B$10:$B$49,\"إيراد\")"
      },
      {
       "column": "O",
       "header": "الإجمالي",
       "kind": "formula",
       "formula_row_1": "=SUMIFS(O$10:O$49,$B$10:$B$49,\"إيراد\")"
      }
     ]
    }
   ],
   "results": [
    {
     "label": "السنة",
     "cell": "B4",
     "formula": "='الإعدادات'!$B$4"
    }
   ]
  },
  {
   "name": "التصنيفات",
   "formula_cells": 0,
   "settings": [
    {
     "label": "التصنيف",
     "cell": "B4",
     "value": "النوع"
    },
    {
     "label": "مبيعات نقدية",
     "cell": "B5",
     "value": "إيراد"
    },
    {
     "label": "تحصيل من عملاء",
     "cell": "B6",
     "value": "إيراد"
    },
    {
     "label": "إيجار",
     "cell": "B7",
     "value": "مصروف"
    },
    {
     "label": "كهرباء ومياه",
     "cell": "B8",
     "value": "مصروف"
    },
    {
     "label": "مرتبات",
     "cell": "B9",
     "value": "مصروف"
    },
    {
     "label": "مشتريات",
     "cell": "B10",
     "value": "مصروف"
    },
    {
     "label": "مصروفات أخرى",
     "cell": "B11",
     "value": "مصروف"
    }
   ]
  },
  {
   "name": "الإعدادات",
   "formula_cells": 0,
   "settings": [
    {
     "label": "السنة",
     "cell": "B4",
     "value": 2026
    },
    {
     "label": "الرصيد الافتتاحي للخزنة",
     "cell": "B5",
     "value": 5000
    }
   ]
  },
  {
   "name": "لماذا ما زلت على إكسل؟",
   "formula_cells": 0
  }
 ]
}