I want to change my decimal in my service or client with generic solution. I'm using .Net WebApi on my service side. And I'm using React.JS with axios on my client side. I have some values about money in my data and they all come with if it's decimal. For example, totalDebtAmount = then I want to show it . And for example if the value is much more than 1000, my value should be seen such as . Is there any way without because I have so many pages and I don't want to use 'replace method' for my all values time after time. May I change settings of visual studio or axios library for it? You can see my sample codes and images at below.
export const GetDebtList = (SUBSCRIBER_OID_LIST,SUBSCRIBER_INFO_OID,PAYMENT_DATE,
SuccessOperation, FailedOperation) => {
return () => {
const body = { subscriberOidList: SUBSCRIBER_OID_LIST, subscriberInfoOid:SUBSCRIBER_INFO_OID,
paymentDate:PAYMENT_DATE };
axios.post('/api/GetDebtList', body)
.then(response => {
SuccessOperation({ DEBT_LIST: response.data });
})
.catch(() => {
FailedOperation({ DEBT_LIST: null })
});
}}
Here my data and GridPanel
