Stock, stock take and reorder screens under /magazzino, with valuation, rebuild and the movements of an item; the understock dashboard widget. Supplier e-invoices (XML, p7m, ZIP) become draft purchase invoices with supplier, items and tax codes matched, the file attached and duplicates refused; the TD code mapping stays in the Italian fiscal pack. Purchase invoices show price differences against the order and the self-invoice still to issue, with a pending list on the self-invoice screen. The opening stock import now writes an opening movement. The demo company gets purchases, an opening stock, a pending self-invoice and a stock take being counted. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
eb301fa570
commit
ced689b297
31 files changed
+3478
-110
No files matched your search
@@ -730,6 +730,7 @@ Migrazioni applicate in ordine:
|
||||
- `core` 20261112001 `create_parties` (M20261112_001_CreateParties)
|
||||
- `core` 20261112002 `create_items` (M20261112_002_CreateItems)
|
||||
- `core` 20261112003 `create_documents` (M20261112_003_CreateDocuments)
|
||||
- `core` 20261113001 `create_inventory` (M20261113_001_CreateInventory)
|
||||
|
||||
#### `attachments`
|
||||
|
||||
@@ -1306,12 +1307,61 @@ Migrazioni applicate in ordine:
|
||||
| `updated_at` | DateTimeUtc | sì | | |
|
||||
| `updated_by` | String(100) | sì | | |
|
||||
| `row_version` | Int64 | no | `1` | |
|
||||
| `to_warehouse_id` | Int64 | sì | | |
|
||||
| `vat_date` | Date | sì | | |
|
||||
|
||||
- indice `ix_inventory_documents_date` su `document_date`
|
||||
- indice `ix_inventory_documents_party` su `party_id`
|
||||
- indice `ix_inventory_documents_status` su `status`
|
||||
- indice unico `ux_inventory_documents_number` su `numerator_id`, `number`
|
||||
|
||||
#### `inventory_entries`
|
||||
|
||||
| Colonna | Tipo | Null | Default | Note |
|
||||
|---|---|---|---|---|
|
||||
| `id` | Int64 | no | | chiave primaria, identity |
|
||||
| `entry_date` | Date | no | | |
|
||||
| `source_family` | String(40) | sì | | |
|
||||
| `source_document_id` | Int64 | sì | | |
|
||||
| `source_kind` | String(40) | sì | | |
|
||||
| `source_number` | String(30) | sì | | |
|
||||
| `inventory_reason_id` | Int64 | sì | | -> `inventory_reasons` (Restrict) |
|
||||
| `party_id` | Int64 | sì | | |
|
||||
| `is_demo` | Bool | no | `false` | |
|
||||
| `created_at` | DateTimeUtc | no | | |
|
||||
| `created_by` | String(100) | sì | | |
|
||||
| `updated_at` | DateTimeUtc | sì | | |
|
||||
| `updated_by` | String(100) | sì | | |
|
||||
| `row_version` | Int64 | no | `1` | |
|
||||
|
||||
- indice `ix_inventory_entries_date` su `entry_date`
|
||||
- indice `ix_inventory_entries_source` su `source_family`, `source_document_id`
|
||||
|
||||
#### `inventory_entry_lines`
|
||||
|
||||
| Colonna | Tipo | Null | Default | Note |
|
||||
|---|---|---|---|---|
|
||||
| `id` | Int64 | no | | chiave primaria, identity |
|
||||
| `entry_id` | Int64 | no | | -> `inventory_entries` (Cascade) |
|
||||
| `entry_date` | Date | no | | |
|
||||
| `item_id` | Int64 | no | | -> `items` (Restrict) |
|
||||
| `warehouse_id` | Int64 | no | | -> `warehouses` (Restrict) |
|
||||
| `quantity` | Decimal(19,6) | no | | |
|
||||
| `valued` | Bool | no | `false` | |
|
||||
| `unit_cost` | Decimal(19,6) | no | `0` | |
|
||||
| `value` | Decimal(19,6) | no | `0` | |
|
||||
| `source_line_id` | Int64 | sì | | |
|
||||
| `sort_order` | Int32 | no | `0` | |
|
||||
| `created_at` | DateTimeUtc | no | | |
|
||||
| `created_by` | String(100) | sì | | |
|
||||
| `updated_at` | DateTimeUtc | sì | | |
|
||||
| `updated_by` | String(100) | sì | | |
|
||||
| `row_version` | Int64 | no | `1` | |
|
||||
|
||||
- indice `ix_inventory_entry_lines_entry` su `entry_id`
|
||||
- indice `ix_inventory_entry_lines_item` su `item_id`, `entry_date`
|
||||
- indice `ix_inventory_entry_lines_warehouse` su `warehouse_id`, `item_id`
|
||||
|
||||
#### `inventory_reasons`
|
||||
|
||||
| Colonna | Tipo | Null | Default | Note |
|
||||
@@ -1332,6 +1382,31 @@ Migrazioni applicate in ordine:
|
||||
|
||||
- indice unico `ux_inventory_reasons_code` su `code`
|
||||
|
||||
#### `item_balances`
|
||||
|
||||
| Colonna | Tipo | Null | Default | Note |
|
||||
|---|---|---|---|---|
|
||||
| `id` | Int64 | no | | chiave primaria, identity |
|
||||
| `item_id` | Int64 | no | | -> `items` (Cascade) |
|
||||
| `warehouse_id` | Int64 | no | | -> `warehouses` (Restrict) |
|
||||
| `on_hand` | Decimal(19,6) | no | `0` | |
|
||||
| `committed` | Decimal(19,6) | no | `0` | |
|
||||
| `ordered` | Decimal(19,6) | no | `0` | |
|
||||
| `in_transit` | Decimal(19,6) | no | `0` | |
|
||||
| `average_cost` | Decimal(19,6) | no | `0` | |
|
||||
| `value` | Decimal(19,6) | no | `0` | |
|
||||
| `last_cost` | Decimal(19,6) | sì | | |
|
||||
| `last_load_date` | Date | sì | | |
|
||||
| `last_unload_date` | Date | sì | | |
|
||||
| `created_at` | DateTimeUtc | no | | |
|
||||
| `created_by` | String(100) | sì | | |
|
||||
| `updated_at` | DateTimeUtc | sì | | |
|
||||
| `updated_by` | String(100) | sì | | |
|
||||
| `row_version` | Int64 | no | `1` | |
|
||||
|
||||
- indice `ix_item_balances_warehouse` su `warehouse_id`
|
||||
- indice unico `ux_item_balances_item_warehouse` su `item_id`, `warehouse_id`
|
||||
|
||||
#### `item_barcodes`
|
||||
|
||||
| Colonna | Tipo | Null | Default | Note |
|
||||
@@ -2038,6 +2113,8 @@ Migrazioni applicate in ordine:
|
||||
| `updated_at` | DateTimeUtc | sì | | |
|
||||
| `updated_by` | String(100) | sì | | |
|
||||
| `row_version` | Int64 | no | `1` | |
|
||||
| `to_warehouse_id` | Int64 | sì | | |
|
||||
| `vat_date` | Date | sì | | |
|
||||
|
||||
- indice `ix_purchase_documents_date` su `document_date`
|
||||
- indice `ix_purchase_documents_party` su `party_id`
|
||||
@@ -2169,6 +2246,8 @@ Migrazioni applicate in ordine:
|
||||
| `updated_at` | DateTimeUtc | sì | | |
|
||||
| `updated_by` | String(100) | sì | | |
|
||||
| `row_version` | Int64 | no | `1` | |
|
||||
| `to_warehouse_id` | Int64 | sì | | |
|
||||
| `vat_date` | Date | sì | | |
|
||||
|
||||
- indice `ix_purchase_orders_date` su `document_date`
|
||||
- indice `ix_purchase_orders_party` su `party_id`
|
||||
@@ -2333,6 +2412,8 @@ Migrazioni applicate in ordine:
|
||||
| `updated_at` | DateTimeUtc | sì | | |
|
||||
| `updated_by` | String(100) | sì | | |
|
||||
| `row_version` | Int64 | no | `1` | |
|
||||
| `to_warehouse_id` | Int64 | sì | | |
|
||||
| `vat_date` | Date | sì | | |
|
||||
|
||||
- indice `ix_sale_documents_date` su `document_date`
|
||||
- indice `ix_sale_documents_party` su `party_id`
|
||||
@@ -2464,6 +2545,8 @@ Migrazioni applicate in ordine:
|
||||
| `updated_at` | DateTimeUtc | sì | | |
|
||||
| `updated_by` | String(100) | sì | | |
|
||||
| `row_version` | Int64 | no | `1` | |
|
||||
| `to_warehouse_id` | Int64 | sì | | |
|
||||
| `vat_date` | Date | sì | | |
|
||||
|
||||
- indice `ix_sale_orders_date` su `document_date`
|
||||
- indice `ix_sale_orders_party` su `party_id`
|
||||
@@ -2595,6 +2678,8 @@ Migrazioni applicate in ordine:
|
||||
| `updated_at` | DateTimeUtc | sì | | |
|
||||
| `updated_by` | String(100) | sì | | |
|
||||
| `row_version` | Int64 | no | `1` | |
|
||||
| `to_warehouse_id` | Int64 | sì | | |
|
||||
| `vat_date` | Date | sì | | |
|
||||
|
||||
- indice `ix_sale_quotations_date` su `document_date`
|
||||
- indice `ix_sale_quotations_party` su `party_id`
|
||||
@@ -2651,6 +2736,50 @@ Chiave primaria: `module`, `version`.
|
||||
|
||||
- indice unico `ux_shipping_terms_code` su `code`
|
||||
|
||||
#### `stock_take_lines`
|
||||
|
||||
| Colonna | Tipo | Null | Default | Note |
|
||||
|---|---|---|---|---|
|
||||
| `id` | Int64 | no | | chiave primaria, identity |
|
||||
| `stock_take_id` | Int64 | no | | -> `stock_takes` (Cascade) |
|
||||
| `item_id` | Int64 | no | | -> `items` (Restrict) |
|
||||
| `book_quantity` | Decimal(19,6) | no | `0` | |
|
||||
| `counted_quantity` | Decimal(19,6) | sì | | |
|
||||
| `unit_cost` | Decimal(19,6) | no | `0` | |
|
||||
| `notes` | String(200) | sì | | |
|
||||
| `sort_order` | Int32 | no | `0` | |
|
||||
| `created_at` | DateTimeUtc | no | | |
|
||||
| `created_by` | String(100) | sì | | |
|
||||
| `updated_at` | DateTimeUtc | sì | | |
|
||||
| `updated_by` | String(100) | sì | | |
|
||||
| `row_version` | Int64 | no | `1` | |
|
||||
|
||||
- indice unico `ux_stock_take_lines_item` su `stock_take_id`, `item_id`
|
||||
|
||||
#### `stock_takes`
|
||||
|
||||
| Colonna | Tipo | Null | Default | Note |
|
||||
|---|---|---|---|---|
|
||||
| `id` | Int64 | no | | chiave primaria, identity |
|
||||
| `take_date` | Date | no | | |
|
||||
| `warehouse_id` | Int64 | no | | -> `warehouses` (Restrict) |
|
||||
| `description` | String(100) | no | | |
|
||||
| `category_id` | Int64 | sì | | -> `item_categories` (Restrict) |
|
||||
| `status` | String(40) | no | | |
|
||||
| `adjustment_document_id` | Int64 | sì | | |
|
||||
| `loss_document_id` | Int64 | sì | | |
|
||||
| `posted_at` | DateTimeUtc | sì | | |
|
||||
| `posted_by` | String(100) | sì | | |
|
||||
| `notes` | Text | sì | | |
|
||||
| `is_demo` | Bool | no | `false` | |
|
||||
| `created_at` | DateTimeUtc | no | | |
|
||||
| `created_by` | String(100) | sì | | |
|
||||
| `updated_at` | DateTimeUtc | sì | | |
|
||||
| `updated_by` | String(100) | sì | | |
|
||||
| `row_version` | Int64 | no | `1` | |
|
||||
|
||||
- indice `ix_stock_takes_date` su `take_date`
|
||||
|
||||
#### `tax_codes`
|
||||
|
||||
| Colonna | Tipo | Null | Default | Note |
|
||||
|
||||
Reference in new issue
Block a user