mirror of
https://github.com/R0m1k3/LogiFlow.git
synced 2026-10-23 15:08:22 +02:00
1 file changed
+15
-2
@@ -78,6 +78,19 @@ export default function BLReconciliation() {
|
|||||||
enabled: !!user
|
enabled: !!user
|
||||||
});
|
});
|
||||||
|
|
||||||
|
// Debug: vérifier les données des fournisseurs
|
||||||
|
console.log('🔍 Debug Filtrage Réconciliation:', {
|
||||||
|
totalDeliveries: deliveriesWithBL.length,
|
||||||
|
totalSuppliers: suppliers.length,
|
||||||
|
deliveriesWithSuppliers: deliveriesWithBL.map(d => ({
|
||||||
|
id: d.id,
|
||||||
|
supplierId: d.supplierId,
|
||||||
|
supplier: suppliers.find(s => s.id === d.supplierId),
|
||||||
|
supplierAuto: suppliers.find(s => s.id === d.supplierId)?.isAutoReconciliation
|
||||||
|
})),
|
||||||
|
suppliersAuto: suppliers.filter(s => s.isAutoReconciliation === true)
|
||||||
|
});
|
||||||
|
|
||||||
// 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);
|
||||||
@@ -362,7 +375,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-right text-xs font-medium text-gray-500 uppercase tracking-wider">
|
<th className="px-3 py-2 text-center 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">
|
||||||
@@ -431,7 +444,7 @@ export default function BLReconciliation() {
|
|||||||
}
|
}
|
||||||
</div>
|
</div>
|
||||||
</td>
|
</td>
|
||||||
<td className="px-3 py-2 text-sm text-right">
|
<td className="px-3 py-2 text-sm text-left">
|
||||||
{(() => {
|
{(() => {
|
||||||
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