awing-library 2.1.145-beta → 2.1.146-beta
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -82,7 +82,7 @@ var useStyles = (0, styles_1.makeStyles)(function () { return ({
|
|
|
82
82
|
},
|
|
83
83
|
}); });
|
|
84
84
|
var RowAdvanceComponent = function (_a) {
|
|
85
|
-
var _b, _c
|
|
85
|
+
var _b, _c;
|
|
86
86
|
var headCells = _a.headCells, row = _a.row, priorityGroupLevel = _a.priorityGroupLevel, stt = _a.stt, groupNames = _a.groupNames, options = _a.options, handleOnClick = _a.handleOnClick, open = _a.open, expandDisabled = _a.expandDisabled;
|
|
87
87
|
var classes = useStyles();
|
|
88
88
|
var t = (0, react_i18next_1.useTranslation)().t;
|
|
@@ -99,13 +99,17 @@ var RowAdvanceComponent = function (_a) {
|
|
|
99
99
|
var isBillingUnit = type === Constant_1.TypeView.billingUnit;
|
|
100
100
|
var totalRate = !(row === null || row === void 0 ? void 0 : row.rate)
|
|
101
101
|
? ''
|
|
102
|
-
:
|
|
102
|
+
: isBillingUnit
|
|
103
|
+
? row === null || row === void 0 ? void 0 : row.rateBilling
|
|
104
|
+
: row === null || row === void 0 ? void 0 : row.rate;
|
|
103
105
|
var totalView = (row === null || row === void 0 ? void 0 : row.quantity) !== undefined
|
|
104
|
-
?
|
|
105
|
-
|
|
106
|
+
? isBillingUnit
|
|
107
|
+
? row === null || row === void 0 ? void 0 : row.quantityBilling
|
|
108
|
+
: (_b = row === null || row === void 0 ? void 0 : row.quantity) !== null && _b !== void 0 ? _b : 0
|
|
109
|
+
: isBillingUnit
|
|
106
110
|
? row === null || row === void 0 ? void 0 : row.totalQuantityBilling
|
|
107
|
-
: (
|
|
108
|
-
var ctr = (0, Helpers_1.formatNumber)(((row === null || row === void 0 ? void 0 : row.click) / (row === null || row === void 0 ? void 0 : row.view)) * 100);
|
|
111
|
+
: (_c = row === null || row === void 0 ? void 0 : row.totalQuantity) !== null && _c !== void 0 ? _c : 0;
|
|
112
|
+
var ctr = (0, Helpers_1.formatNumber)(((row === null || row === void 0 ? void 0 : row.click) / (row === null || row === void 0 ? void 0 : row.view)) * 100 || 0);
|
|
109
113
|
function styledRow(priority) {
|
|
110
114
|
if ((groupNames === null || groupNames === void 0 ? void 0 : groupNames.length) === 1 && priorityGroupLevel === 1) {
|
|
111
115
|
return classes.styledSecondaryRow;
|
|
@@ -174,7 +178,7 @@ var RowAdvanceComponent = function (_a) {
|
|
|
174
178
|
case Enum_1.HEAD_CELL_NAMES.RATE:
|
|
175
179
|
return ((0, jsx_runtime_1.jsx)(material_1.TableCell, { align: "right", children: fieldNameShowOn === Enum_1.HEAD_CELL_NAMES.PLACE
|
|
176
180
|
? ''
|
|
177
|
-
: totalRate }, item.id));
|
|
181
|
+
: (0, Helpers_1.formatNumber)(totalRate) }, item.id));
|
|
178
182
|
case Enum_1.HEAD_CELL_NAMES.TOTAL:
|
|
179
183
|
return ((0, jsx_runtime_1.jsx)(material_1.TableCell, { align: "right", children: (0, Helpers_1.formatNumber)(totalView) }, item.id));
|
|
180
184
|
case Enum_1.HEAD_CELL_NAMES.IMPRESSION:
|