update
This commit is contained in:
@@ -386,7 +386,7 @@ Migracje z prefiksem `ensure_` to migracje kompensujące — zostały dodane
|
||||
- `order_id` (bigint unsigned, FK -> `orders.id` CASCADE),
|
||||
- `config_id` (int unsigned, FK -> `receipt_configs.id` RESTRICT),
|
||||
- `receipt_number` (varchar 64, UNIQUE),
|
||||
- `issue_date` (date),
|
||||
- `issue_date` (datetime),
|
||||
- `sale_date` (date),
|
||||
- `seller_data_json` (json) — snapshot danych sprzedawcy,
|
||||
- `buyer_data_json` (json, nullable) — snapshot danych klienta (jesli imienny),
|
||||
|
||||
@@ -1,5 +1,12 @@
|
||||
# Tech Changelog
|
||||
|
||||
## 2026-04-03 (Phase 64 - Receipt Datetime Precision, Plan 01)
|
||||
- Migracja `20260403_000076_alter_receipts_issue_date_to_datetime.sql`: ALTER TABLE receipts MODIFY issue_date DATETIME NOT NULL.
|
||||
- `ReceiptController::store()`: zapis issue_date jako Y-m-d H:i:s, konwersja z formatu datetime-local (T separator).
|
||||
- `AccountingController::toTableRow()` i `export()`: formatowanie issue_date do YYYY-MM-DD HH:MM (substr 0-16).
|
||||
- `receipt-create.php`: input type=datetime-local z domyslna biezaca data+czas.
|
||||
- `receipts/show.php`, `receipts/print.php`, `orders/show.php`: wyswietlanie issue_date z godzina (substr 0-16).
|
||||
|
||||
## 2026-04-01 (Phase 63 - Order Item Personalization, Plan 01)
|
||||
- Migracja `20260401_000075_add_personalization_to_order_items.sql`: kolumna `personalization TEXT NULL` w `order_items`.
|
||||
- `ShopproOrderMapper::extractPersonalization()`: ekstrakcja `custom_fields` z odpowiedzi shopPRO API, konwersja HTML na czysty tekst (strip_tags, html_entity_decode, br->newline).
|
||||
|
||||
Reference in New Issue
Block a user