mirror of
https://github.com/R0m1k3/LogiFlow.git
synced 2026-10-22 14:38:19 +02:00
Refine reconciliation view by removing manual title and aligning data
Remove "Rapprochements Manuels" title and icon from the reconciliation view, bold BL numbers for unvalidated lines, and right-align the discrepancy column. Replit-Commit-Author: Agent Replit-Commit-Session-Id: b163d4c0-de5e-4f4e-a9c0-aed4c7049718 Replit-Commit-Checkpoint-Type: full_checkpoint Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/1957c339-2757-4d1f-8e92-e9f71a1ce58e/b163d4c0-de5e-4f4e-a9c0-aed4c7049718/l9FV9ZH
This commit is contained in:
1 parent
b3386eb6b9
commit
aa0a900732
1 file changed
+8
-31
@@ -78,27 +78,6 @@ export default function BLReconciliation() {
|
|||||||
enabled: !!user
|
enabled: !!user
|
||||||
});
|
});
|
||||||
|
|
||||||
// Debug : afficher les données récupérées
|
|
||||||
console.log('🔍 BL Reconciliation Debug:', {
|
|
||||||
totalDeliveries: deliveriesWithBL.length,
|
|
||||||
totalSuppliers: suppliers.length,
|
|
||||||
selectedStoreId,
|
|
||||||
userRole: user?.role,
|
|
||||||
deliveries: deliveriesWithBL.map(d => ({
|
|
||||||
id: d.id,
|
|
||||||
supplier: d.supplier?.name,
|
|
||||||
supplierId: d.supplierId,
|
|
||||||
status: d.status,
|
|
||||||
blNumber: d.blNumber,
|
|
||||||
reconciled: d.reconciled
|
|
||||||
})),
|
|
||||||
suppliers: suppliers.map(s => ({
|
|
||||||
id: s.id,
|
|
||||||
name: s.name,
|
|
||||||
isAutoReconciliation: s.isAutoReconciliation
|
|
||||||
}))
|
|
||||||
});
|
|
||||||
|
|
||||||
// Séparer les livraisons par mode de rapprochement
|
// Séparer les livraisons par mode de rapprochement
|
||||||
const manualReconciliationDeliveries = deliveriesWithBL.filter((delivery: any) => {
|
const manualReconciliationDeliveries = deliveriesWithBL.filter((delivery: any) => {
|
||||||
const supplier = suppliers.find(s => s.id === delivery.supplierId);
|
const supplier = suppliers.find(s => s.id === delivery.supplierId);
|
||||||
@@ -348,13 +327,7 @@ export default function BLReconciliation() {
|
|||||||
</div>
|
</div>
|
||||||
) : (
|
) : (
|
||||||
<Card>
|
<Card>
|
||||||
<CardHeader>
|
<CardContent className="pt-6">
|
||||||
<CardTitle className="flex items-center gap-2">
|
|
||||||
<Edit className="w-5 h-5" />
|
|
||||||
Rapprochements Manuels
|
|
||||||
</CardTitle>
|
|
||||||
</CardHeader>
|
|
||||||
<CardContent>
|
|
||||||
{/* Pagination du haut */}
|
{/* Pagination du haut */}
|
||||||
<Pagination
|
<Pagination
|
||||||
currentPage={manualCurrentPage}
|
currentPage={manualCurrentPage}
|
||||||
@@ -389,7 +362,7 @@ export default function BLReconciliation() {
|
|||||||
<th className="px-3 py-2 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">
|
<th className="px-3 py-2 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">
|
||||||
Montant Fact.
|
Montant Fact.
|
||||||
</th>
|
</th>
|
||||||
<th className="px-3 py-2 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">
|
<th className="px-3 py-2 text-right text-xs font-medium text-gray-500 uppercase tracking-wider">
|
||||||
Écart
|
Écart
|
||||||
</th>
|
</th>
|
||||||
<th className="px-3 py-2 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">
|
<th className="px-3 py-2 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">
|
||||||
@@ -420,7 +393,11 @@ export default function BLReconciliation() {
|
|||||||
</div>
|
</div>
|
||||||
</td>
|
</td>
|
||||||
<td className="px-3 py-2 text-sm">
|
<td className="px-3 py-2 text-sm">
|
||||||
<div className="text-gray-900">
|
<div className={`${
|
||||||
|
delivery.reconciled !== true
|
||||||
|
? 'font-bold text-gray-900'
|
||||||
|
: 'text-gray-900'
|
||||||
|
}`}>
|
||||||
{delivery.blNumber || (
|
{delivery.blNumber || (
|
||||||
<span className="text-gray-400 italic text-xs">Non renseigné</span>
|
<span className="text-gray-400 italic text-xs">Non renseigné</span>
|
||||||
)}
|
)}
|
||||||
@@ -454,7 +431,7 @@ export default function BLReconciliation() {
|
|||||||
}
|
}
|
||||||
</div>
|
</div>
|
||||||
</td>
|
</td>
|
||||||
<td className="px-3 py-2 text-sm">
|
<td className="px-3 py-2 text-sm text-right">
|
||||||
{(() => {
|
{(() => {
|
||||||
const blAmount = delivery.blAmount ? parseFloat(delivery.blAmount) : 0;
|
const blAmount = delivery.blAmount ? parseFloat(delivery.blAmount) : 0;
|
||||||
const invoiceAmount = delivery.invoiceAmount ? parseFloat(delivery.invoiceAmount) : 0;
|
const invoiceAmount = delivery.invoiceAmount ? parseFloat(delivery.invoiceAmount) : 0;
|
||||||
|
|||||||
Reference in new issue
Block a user