Skip to content

Commit 1681c64

Browse files
Update index.html
1 parent 2484af6 commit 1681c64

1 file changed

Lines changed: 21 additions & 18 deletions

File tree

index.html

Lines changed: 21 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />
66
<title>فَوْتَرَة - نظام الفوترة الجزائري</title>
77
<style>
8-
/* جميع الأنماط السابقة مع تحسين لون المدفوع */
8+
/* جميع الأنماط السابقة مع تحسين لون المبلغ المدفوع */
99
@font-face {
1010
font-family: "Optimistic";
1111
font-style: normal;
@@ -330,9 +330,8 @@
330330
height: 30px !important;
331331
}
332332
.paid-input {
333-
width: 100px !important;
333+
width: 80px !important;
334334
font-size: 0.9rem !important;
335-
height: 34px !important;
336335
}
337336
}
338337
@media (min-width: 481px) and (max-width: 768px) {
@@ -1248,39 +1247,40 @@
12481247
}
12491248
/* نهاية أنماط السلة */
12501249

1251-
/* ====== أنماط المدفوع والباقي (محسّنة) ====== */
1250+
/* ====== تحسين أنماط المبلغ المدفوع ====== */
12521251
.paid-remaining-row {
12531252
display: flex;
12541253
flex-direction: column;
12551254
gap: 4px;
12561255
}
1257-
/* تحسين حقل المبلغ المدفوع: لون أسود واضح، خلفية بيضاء في الوضع الفاتح، داكنة في الوضع الداكن */
12581256
.paid-input {
1259-
width: 150px;
1260-
height: 40px;
1261-
border-radius: 10px;
1257+
width: 140px;
1258+
height: 36px;
1259+
border-radius: 8px;
12621260
border: 1px solid #cbd5e1;
1263-
background: #ffffff;
1264-
padding: 0 12px;
1261+
background: white;
1262+
padding: 0 8px;
12651263
text-align: left;
12661264
font-weight: 700;
1267-
font-size: 1.05rem;
1265+
font-size: 1rem;
12681266
color: #000000 !important; /* أسود واضح */
1269-
transition: border-color 0.2s, box-shadow 0.2s;
1267+
caret-color: #000000;
12701268
outline: none;
1269+
transition: border-color 0.2s;
12711270
}
12721271
.paid-input:focus {
12731272
border-color: #0ea5e9;
1274-
box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.25);
1273+
box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.2);
12751274
}
12761275
.dark .paid-input {
12771276
background: #0f172a;
12781277
border-color: #475569;
1279-
color: #ffffff !important; /* في الوضع الداكن يصبح أبيض للتباين */
1278+
color: #f1f5f9 !important; /* أبيض فاتح في الوضع الداكن */
1279+
caret-color: #f1f5f9;
12801280
}
12811281
.dark .paid-input:focus {
12821282
border-color: #38bdf8;
1283-
box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.25);
1283+
box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.2);
12841284
}
12851285
.remaining-amount {
12861286
font-weight: 900;
@@ -1290,7 +1290,7 @@
12901290
.remaining-amount.negative {
12911291
color: #ef4444;
12921292
}
1293-
/* نهاية أنماط المدفوع */
1293+
/* نهاية تحسينات المدفوع */
12941294
</style>
12951295
<link rel="preconnect" href="https://fonts.googleapis.com" />
12961296
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
@@ -1891,6 +1891,7 @@ <h3 id="modal-title" class="font-extrabold text-lg">سلة المشتريات</h
18911891
} catch (e) {}
18921892
}
18931893

1894+
// دالة تفريغ السلة
18941895
function clearCart() {
18951896
if (cart.length === 0) {
18961897
showToast('السلة فارغة بالفعل', 'warning');
@@ -1922,6 +1923,7 @@ <h3 id="modal-title" class="font-extrabold text-lg">سلة المشتريات</h
19221923
state.notifications.settings = { lowStockThreshold: 5, overdueDays: 30, enableLowStock: true,
19231924
enableOverdue: true, enableNewInvoice: true, enableSystem: true };
19241925
}
1926+
// ترقية الفواتير القديمة لإضافة paidAmount
19251927
let needSave = false;
19261928
for (const inv of state.invoices) {
19271929
if (inv.paidAmount === undefined) {
@@ -3276,7 +3278,7 @@ <h3 id="modal-title" class="font-extrabold text-lg">سلة المشتريات</h
32763278
}
32773279

32783280
// ================================================================
3279-
// SETTINGS
3281+
// SETTINGS (نفس الشيء)
32803282
// ================================================================
32813283
function loadSettings() {
32823284
const c = state.company;
@@ -3419,6 +3421,7 @@ <h3 id="modal-title" class="font-extrabold text-lg">سلة المشتريات</h
34193421
await saveImage('stamp', data.company.stamp);
34203422
data.company.stamp = '';
34213423
}
3424+
// إضافة paidAmount للفواتير المستوردة
34223425
for (const inv of data.invoices) {
34233426
if (inv.paidAmount === undefined) inv.paidAmount = 0;
34243427
}
@@ -3748,7 +3751,7 @@ <h3 id="modal-title" class="font-extrabold text-lg">سلة المشتريات</h
37483751
}
37493752

37503753
// ================================================================
3751-
// CREATE INVOICE FROM CART
3754+
// CREATE INVOICE FROM CART (مع إضافة المدفوع صفر)
37523755
// ================================================================
37533756
function createInvoiceFromCart(customer) {
37543757
if (cart.length === 0) { showToast('السلة فارغة', 'error'); return; }

0 commit comments

Comments
 (0)