From ad3418b4181a79485b0feb6882d6ae4ec744c776 Mon Sep 17 00:00:00 2001
From: it-fixcomart
Date: Thu, 9 Jan 2025 09:51:23 +0700
Subject: update tempo
---
src/lib/tempo/components/Tempo.jsx | 40 +++++++-------------------------------
1 file changed, 7 insertions(+), 33 deletions(-)
(limited to 'src/lib/tempo')
diff --git a/src/lib/tempo/components/Tempo.jsx b/src/lib/tempo/components/Tempo.jsx
index f2a9e650..b79824fa 100644
--- a/src/lib/tempo/components/Tempo.jsx
+++ b/src/lib/tempo/components/Tempo.jsx
@@ -76,12 +76,7 @@ const Tempo = () => {
parseInt(tempo.amountDue + tempo.remainingLimit)
);
const amountDue = Math.round(parseInt(tempo.amountDue + tempo.amountDueSale));
- const getLabel = () => {
- if (Math.round((amountDue / limitTempo) * 100) >= 100)
- return 'Limit Tempo mencapai batas';
- if (Math.round((amountDue / limitTempo) * 100) >= 50) return 'Hampir Habis';
- return '';
- };
+
const startItem = 1 + (pageNew - 1) * limitNew;
const endItem = Math.min(
limitNew * pageNew,
@@ -159,13 +154,13 @@ const Tempo = () => {
-
+
Sisa Kredit Limit
{limitTempo && amountDue
@@ -176,7 +171,7 @@ const Tempo = () => {
{
{amountDue ? currencyFormat(amountDue) : '-'}
@@ -201,7 +196,7 @@ const Tempo = () => {
{
{tempo.amountJatuhTempo
@@ -240,11 +235,6 @@ const Tempo = () => {
*/}
-
-
- {getLabel()}
-
-
{auth && auth?.tempoProgres == 'review' && !tempo.paymentTerm ? (
{
-
--
cgit v1.2.3