adding due_date
This commit is contained in:
parent
1448782e95
commit
b459e53d34
@ -54,3 +54,4 @@
|
||||
2026-03-18 02:26:44 - Items case hit
|
||||
2026-03-18 02:28:48 - Items case hit
|
||||
2026-03-18 02:28:58 - Items case hit
|
||||
2026-03-18 06:00:05 - Items case hit
|
||||
|
||||
26
index.php
26
index.php
@ -49,6 +49,19 @@ if ($_SERVER['REQUEST_METHOD'] === 'POST') {
|
||||
file_put_contents('post_debug.log', date('Y-m-d H:i:s') . " - POST: " . json_encode($_POST) . "\n", FILE_APPEND);
|
||||
}
|
||||
require_once 'db/config.php';
|
||||
|
||||
// Timezone Setup
|
||||
try {
|
||||
$tz_stmt = db()->prepare("SELECT value FROM settings WHERE `key` = 'timezone'");
|
||||
$tz_stmt->execute();
|
||||
$app_tz = $tz_stmt->fetchColumn();
|
||||
if ($app_tz && in_array($app_tz, DateTimeZone::listIdentifiers())) {
|
||||
date_default_timezone_set($app_tz);
|
||||
}
|
||||
} catch (Exception $e) {
|
||||
// Ignore if DB not ready
|
||||
}
|
||||
|
||||
require_once 'includes/DatabaseInstaller.php';
|
||||
|
||||
// Auto-install database if not installed
|
||||
@ -8511,6 +8524,19 @@ $projectDescription = $_SERVER['PROJECT_DESCRIPTION'] ?? 'Accounting System';
|
||||
<label class="form-label" data-en="Address" data-ar="العنوان">Address</label>
|
||||
<textarea name="settings[company_address]" class="form-control" rows="3"><?= htmlspecialchars($data['settings']['company_address'] ?? '') ?></textarea>
|
||||
</div>
|
||||
<div class="col-md-4 mt-3">
|
||||
<label class="form-label" data-en="Timezone" data-ar="المنطقة الزمنية">Timezone</label>
|
||||
<select name="settings[timezone]" class="form-select">
|
||||
<?php
|
||||
$tz_identifiers = DateTimeZone::listIdentifiers();
|
||||
$current_tz = $data['settings']['timezone'] ?? date_default_timezone_get();
|
||||
foreach ($tz_identifiers as $tz) {
|
||||
$selected = ($tz === $current_tz) ? 'selected' : '';
|
||||
echo "<option value=\"$tz\" $selected>$tz</option>";
|
||||
}
|
||||
?>
|
||||
</select>
|
||||
</div>
|
||||
<div class="col-md-4 mt-3">
|
||||
<label class="form-label" data-en="Allow Selling Out of Stock" data-ar="السماح بالبيع عند نفاذ المخزون">Allow Selling Out of Stock</label>
|
||||
<select name="settings[allow_zero_stock_sell]" class="form-select">
|
||||
|
||||
@ -61,3 +61,9 @@
|
||||
2026-03-18 02:31:37 - POST: {"action":"save_theme","theme":"default"}
|
||||
2026-03-18 02:31:40 - POST: {"action":"save_theme","theme":"sunset"}
|
||||
2026-03-18 02:31:50 - POST: {"action":"save_theme","theme":"default"}
|
||||
2026-03-18 06:08:50 - POST: {"type":"customer","name":"Moosa Ali Al-Abri","email":"aalabry@gmail.com","phone":"99359472","tax_id":"","balance":"0.000","add_customer":""}
|
||||
2026-03-18 06:29:34 - POST: {"settings":{"company_name":"Bahjet Al-Safa Trading","company_phone":"99359472","company_email":"aalabry@gmail.com","vat_number":"OM25418","company_address":"AL Hamra\r\nOman","timezone":"Asia\/Muscat","allow_zero_stock_sell":"1","loyalty_enabled":"0","loyalty_points_per_unit":"1","loyalty_redeem_points_per_unit":"100"},"update_settings":""}
|
||||
2026-03-18 06:30:25 - POST: {"type":"sale","customer_id":"7","invoice_date":"2026-03-18","due_date":"","payment_type":"cash","status":"paid","paid_amount":"0.000","item_ids":["7"],"quantities":["5"],"prices":["0.250"],"add_invoice":""}
|
||||
2026-03-18 06:31:00 - POST: {"type":"sale","customer_id":"7","invoice_date":"2026-03-18","due_date":"","payment_type":"cash","status":"unpaid","paid_amount":"0.000","item_ids":["7"],"quantities":["1"],"prices":["0.250"],"add_invoice":""}
|
||||
2026-03-18 06:42:39 - POST: {"type":"sale","customer_id":"7","invoice_date":"2026-03-18","due_date":"","payment_type":"cash","status":"unpaid","paid_amount":"0.000","item_ids":["7"],"quantities":["1"],"prices":["0.250"],"add_invoice":""}
|
||||
2026-03-18 06:43:05 - POST: {"invoice_id":"31","customer_id":"7","invoice_date":"2026-03-18","due_date":"","payment_type":"cash","status":"paid","paid_amount":"0.000","item_ids":["7"],"quantities":["1.00"],"prices":["0.250"],"edit_invoice":""}
|
||||
|
||||
@ -1,3 +1,5 @@
|
||||
2026-02-25 04:49:58 - search_items call: q=on
|
||||
2026-02-25 12:57:14 - search_items call: q=on
|
||||
2026-02-25 17:10:03 - search_items call: q=on
|
||||
2026-03-18 10:30:10 - search_items call: q=to
|
||||
2026-03-18 10:30:56 - search_items call: q=to
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user