awing-library 2.1.148-beta → 2.1.149-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, _d;
|
|
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,16 +99,14 @@ 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
|
-
: isBillingUnit
|
|
103
|
-
? row === null || row === void 0 ? void 0 : row.rateBilling
|
|
104
|
-
: row === null || row === void 0 ? void 0 : row.rate;
|
|
102
|
+
: (0, Helpers_1.formatNumber)(isBillingUnit ? row === null || row === void 0 ? void 0 : row.rateBilling : (_b = row === null || row === void 0 ? void 0 : row.rate) !== null && _b !== void 0 ? _b : 0);
|
|
105
103
|
var totalView = (row === null || row === void 0 ? void 0 : row.quantity) !== undefined
|
|
106
104
|
? isBillingUnit
|
|
107
105
|
? row === null || row === void 0 ? void 0 : row.quantityBilling
|
|
108
|
-
: (
|
|
106
|
+
: (_c = row === null || row === void 0 ? void 0 : row.quantity) !== null && _c !== void 0 ? _c : 0
|
|
109
107
|
: isBillingUnit
|
|
110
108
|
? row === null || row === void 0 ? void 0 : row.totalQuantityBilling
|
|
111
|
-
: (
|
|
109
|
+
: (_d = row === null || row === void 0 ? void 0 : row.totalQuantity) !== null && _d !== void 0 ? _d : 0;
|
|
112
110
|
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);
|
|
113
111
|
function styledRow(priority) {
|
|
114
112
|
if ((groupNames === null || groupNames === void 0 ? void 0 : groupNames.length) === 1 && priorityGroupLevel === 1) {
|
|
@@ -178,7 +176,7 @@ var RowAdvanceComponent = function (_a) {
|
|
|
178
176
|
case Enum_1.HEAD_CELL_NAMES.RATE:
|
|
179
177
|
return ((0, jsx_runtime_1.jsx)(material_1.TableCell, { align: "right", children: fieldNameShowOn === Enum_1.HEAD_CELL_NAMES.PLACE
|
|
180
178
|
? ''
|
|
181
|
-
:
|
|
179
|
+
: totalRate }, item.id));
|
|
182
180
|
case Enum_1.HEAD_CELL_NAMES.TOTAL:
|
|
183
181
|
return ((0, jsx_runtime_1.jsx)(material_1.TableCell, { align: "right", children: (0, Helpers_1.formatNumber)(totalView) }, item.id));
|
|
184
182
|
case Enum_1.HEAD_CELL_NAMES.IMPRESSION:
|