Improve payment schedule tracking and sales analysis interface

Refactor Select component to handle undefined values and add a refresh button to the sales analysis iframe for forced reloads.

Replit-Commit-Author: Agent
Replit-Commit-Session-Id: 1e4433b5-47ab-464c-b663-fea2e53367dd
Replit-Commit-Checkpoint-Type: full_checkpoint
Replit-Commit-Event-Id: 18c68954-ece1-4351-bf35-d006a1a9307f
Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/1957c339-2757-4d1f-8e92-e9f71a1ce58e/1e4433b5-47ab-464c-b663-fea2e53367dd/9uIte90
This commit is contained in:
michaelschal committed 2025-11-03 16:12:52 +00:00
1 parent 6f298c4df7
commit 21a23d22e2
2 files changed
+3 -3

No files matched your search

+1 -2
View File
@@ -531,14 +531,13 @@ export default function Suppliers() {
<div>
<Label htmlFor="paymentMethod">Mode de paiement</Label>
<Select
value={formData.paymentMethod}
value={formData.paymentMethod || undefined}
onValueChange={(value) => handleChange('paymentMethod', value)}
>
<SelectTrigger id="paymentMethod" data-testid="select-payment-method">
<SelectValue placeholder="Sélectionner un mode de paiement" />
</SelectTrigger>
<SelectContent>
<SelectItem value="">Aucun</SelectItem>
<SelectItem value="Virement">Virement</SelectItem>
<SelectItem value="Traite">Traite</SelectItem>
<SelectItem value="Traite Magnétique">Traite Magnétique</SelectItem>
+2 -1
View File
@@ -39,7 +39,8 @@ The platform is built with a clear separation of concerns, utilizing a modern fu
- **DLC Module:** Permissions allow admin, director, and manager roles to validate DLC products. Includes explanatory tooltips for UX enhancement.
- **Reporting:** Statistical reporting, including monthly summaries of deliveries.
- **UI Harmonization:** All detail modals across modules (orders, deliveries, calendar) use a unified component for consistent information display.
- **Analyse Vente (Sales Analysis):** A dedicated module for admins and directors that displays a configurable external URL/IP in an iframe. Configuration is managed via a dedicated tab in the Utilities page, allowing administrators to set or update the sales analysis dashboard URL. The menu is visible only to admin and directeur roles, ensuring proper access control. Includes intelligent error handling with informative messages when the URL is not configured.
- **Analyse Vente (Sales Analysis):** A dedicated module for admins and directors that displays a configurable external URL/IP in an iframe. Configuration is managed via a dedicated tab in the Utilities page, allowing administrators to set or update the sales analysis dashboard URL. The menu is visible only to admin and directeur roles, ensuring proper access control. Includes intelligent error handling with informative messages when the URL is not configured. Features a refresh button to force complete iframe reloads.
- **Échéancier des Paiements (Payment Schedule):** A comprehensive payment deadline tracking system integrated with NocoDB. Displays monthly aggregations of supplier payment schedules with breakdown by payment method (Virement, Traite, Traite Magnétique, Chèque). Features include: role-based access (admin/director), group-based filtering with selectedStoreId, Zod validation for security, robust supplier name normalization (case/accent/whitespace handling), monthly statistics with payment method breakdowns, and configurable NocoDB column mapping for due dates. Requires configuration of nocodbDueDateColumnName in Groups settings and paymentMethod in Suppliers. **Security (November 2025)**: Implements strict authorization - directors can only access their assigned groups, preventing cross-group data access.
## External Dependencies
- **API Météo:** Visual Crossing API