shareneus 1.5.97 → 1.5.98
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.
|
@@ -320,8 +320,8 @@ function buildBarcodeStack(code) {
|
|
|
320
320
|
return [
|
|
321
321
|
{
|
|
322
322
|
svg,
|
|
323
|
-
width:
|
|
324
|
-
margin: [0,
|
|
323
|
+
width: 110,
|
|
324
|
+
margin: [0, 0, 0, 0]
|
|
325
325
|
}
|
|
326
326
|
];
|
|
327
327
|
}
|
|
@@ -401,12 +401,12 @@ function formatDisplayDate(value) {
|
|
|
401
401
|
return value;
|
|
402
402
|
}
|
|
403
403
|
function resolveShowBarCode(transactionData, printConfig = {}) {
|
|
404
|
-
var _a;
|
|
405
|
-
if (Object.prototype.hasOwnProperty.call(printConfig || {}, '
|
|
406
|
-
return isTruthy(printConfig === null || printConfig === void 0 ? void 0 : printConfig.ShowBarCode);
|
|
404
|
+
var _a, _b;
|
|
405
|
+
if (Object.prototype.hasOwnProperty.call(printConfig || {}, 'Customer')) {
|
|
406
|
+
return isTruthy((_a = printConfig === null || printConfig === void 0 ? void 0 : printConfig.Customer) === null || _a === void 0 ? void 0 : _a.ShowBarCode);
|
|
407
407
|
}
|
|
408
408
|
return isTruthy(transactionData === null || transactionData === void 0 ? void 0 : transactionData.ShowBarCode)
|
|
409
|
-
|| isTruthy((
|
|
409
|
+
|| isTruthy((_b = transactionData === null || transactionData === void 0 ? void 0 : transactionData.Entity) === null || _b === void 0 ? void 0 : _b.PrCustBar)
|
|
410
410
|
|| isTruthy(transactionData === null || transactionData === void 0 ? void 0 : transactionData.PrCustBar);
|
|
411
411
|
}
|
|
412
412
|
function resolveBillToCode(transactionData) {
|
|
@@ -446,12 +446,12 @@ function textToSvgBarcode(text) {
|
|
|
446
446
|
const svgElement = document.createElementNS("http://www.w3.org/2000/svg", "svg");
|
|
447
447
|
(0, jsbarcode_1.default)(svgElement, text, {
|
|
448
448
|
format: "CODE128",
|
|
449
|
-
width:
|
|
450
|
-
height:
|
|
449
|
+
width: 0.8,
|
|
450
|
+
height: 14,
|
|
451
451
|
margin: 0,
|
|
452
|
-
marginTop:
|
|
452
|
+
marginTop: 0,
|
|
453
453
|
displayValue: true,
|
|
454
|
-
fontSize:
|
|
454
|
+
fontSize: 6,
|
|
455
455
|
textMargin: 0,
|
|
456
456
|
fontOptions: 'bold'
|
|
457
457
|
});
|