mirror of
https://github.com/R0m1k3/LogiFlow.git
synced 2026-10-23 06:58:19 +02:00
Center the difference column in the reconciliation module
Updates the `BLReconciliation.tsx` file to center-align the displayed difference amount in the reconciliation table by changing the `justify-center` class to `text-center` within the relevant table cell. Replit-Commit-Author: Agent Replit-Commit-Session-Id: 76582ba3-44cb-4730-92fa-66f28725967b Replit-Commit-Checkpoint-Type: full_checkpoint Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/1957c339-2757-4d1f-8e92-e9f71a1ce58e/76582ba3-44cb-4730-92fa-66f28725967b/wLa3UqB
This commit is contained in:
1 parent
3525af40d8
commit
d37fea97ad
1 file changed
+17
-19
@@ -434,25 +434,23 @@ export default function BLReconciliation() {
|
|||||||
</div>
|
</div>
|
||||||
</td>
|
</td>
|
||||||
<td className="px-6 py-4 whitespace-nowrap text-center">
|
<td className="px-6 py-4 whitespace-nowrap text-center">
|
||||||
<div className="flex justify-center">
|
{(() => {
|
||||||
{(() => {
|
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;
|
if (blAmount && invoiceAmount) {
|
||||||
if (blAmount && invoiceAmount) {
|
const diff = blAmount - invoiceAmount;
|
||||||
const diff = blAmount - invoiceAmount;
|
const diffAbs = Math.abs(diff);
|
||||||
const diffAbs = Math.abs(diff);
|
return (
|
||||||
return (
|
<div className={`font-medium text-center ${
|
||||||
<div className={`font-medium text-right ${
|
diff === 0 ? 'text-green-600' :
|
||||||
diff === 0 ? 'text-green-600' :
|
diffAbs > 10 ? 'text-red-600' : 'text-orange-600'
|
||||||
diffAbs > 10 ? 'text-red-600' : 'text-orange-600'
|
}`}>
|
||||||
}`}>
|
{diff > 0 ? '+' : ''}{diff.toFixed(2)}€
|
||||||
{diff > 0 ? '+' : ''}{diff.toFixed(2)}€
|
</div>
|
||||||
</div>
|
);
|
||||||
);
|
}
|
||||||
}
|
return <span className="text-gray-400 italic text-xs">-</span>;
|
||||||
return <span className="text-gray-400 italic text-xs">-</span>;
|
})()}
|
||||||
})()}
|
|
||||||
</div>
|
|
||||||
</td>
|
</td>
|
||||||
<td className="px-6 py-4 whitespace-nowrap">
|
<td className="px-6 py-4 whitespace-nowrap">
|
||||||
<div className="text-sm text-gray-900">
|
<div className="text-sm text-gray-900">
|
||||||
|
|||||||
Reference in new issue
Block a user