mirror of
https://dev.azure.com/hugendubel/ISA/_git/ISA-Frontend
synced 2025-12-31 09:37:15 +01:00
[HIMA-73] Price formatting on details page of product
This commit is contained in:
@@ -127,10 +127,18 @@ export class ProductDetailsComponent implements OnInit {
|
||||
',00 ' +
|
||||
item.av[0].price.value.currency;
|
||||
} else {
|
||||
price =
|
||||
let afterDecimal = item.av[0].price.value.value.toString().split('.')[1];
|
||||
if (afterDecimal.length === 1) {
|
||||
price =
|
||||
item.av[0].price.value.value.toString().replace('.', ',') + '0' +
|
||||
' ' +
|
||||
item.av[0].price.value.currency;
|
||||
} else {
|
||||
price =
|
||||
item.av[0].price.value.value.toString().replace('.', ',') +
|
||||
' ' +
|
||||
item.av[0].price.value.currency;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user