@bookmypuja-tech/bmp-pdf 0.0.15 → 0.0.18
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.
- package/README.md +0 -0
- package/dist/index.d.ts +2 -2
- package/dist/index.js +2 -3
- package/package.json +1 -1
package/README.md
CHANGED
|
File without changes
|
package/dist/index.d.ts
CHANGED
|
@@ -15,10 +15,10 @@ interface IPujaReceipt {
|
|
|
15
15
|
receiptNumber: Number;
|
|
16
16
|
date: Date;
|
|
17
17
|
pujaName: string;
|
|
18
|
-
participantName
|
|
18
|
+
participantName?: string;
|
|
19
19
|
participantNakshatra: string;
|
|
20
20
|
pujaPrice: Number;
|
|
21
|
-
status
|
|
21
|
+
status?: string;
|
|
22
22
|
}
|
|
23
23
|
|
|
24
24
|
declare const A4Print: ({ data, dates, }: {
|
package/dist/index.js
CHANGED
|
@@ -415,7 +415,7 @@ var T2Inch_default = T2Inch;
|
|
|
415
415
|
|
|
416
416
|
// src/sizes/receipt/T2InchReceipt.tsx
|
|
417
417
|
import React3 from "react";
|
|
418
|
-
import { Printer, Line, render, Text as Text3 } from "react-thermal-printer";
|
|
418
|
+
import { Printer, Br, Line, render, Text as Text3 } from "react-thermal-printer";
|
|
419
419
|
var T2InchReceipt = (data) => {
|
|
420
420
|
let paymentStatus = "Payment Pending";
|
|
421
421
|
if (data.status === "confirmed") {
|
|
@@ -429,7 +429,7 @@ var T2InchReceipt = (data) => {
|
|
|
429
429
|
hour: "numeric",
|
|
430
430
|
minute: "numeric",
|
|
431
431
|
hour12: true
|
|
432
|
-
}).toLowerCase()), /* @__PURE__ */ React3.createElement(Line, null), /* @__PURE__ */ React3.createElement(Text3, null, "Puja: ", data.pujaName), /* @__PURE__ */ React3.createElement(Text3, null, "Name: ", data.participantName), /* @__PURE__ */ React3.createElement(Text3, null, "Nakshatra: ", data.participantNakshatra), /* @__PURE__ */ React3.createElement(Text3, { align: "right" }, "Price: ", String(data.pujaPrice)), /* @__PURE__ */ React3.createElement(Text3, { align: "right" }, paymentStatus), /* @__PURE__ */ React3.createElement(Line, null), /* @__PURE__ */ React3.createElement(Text3, { align: "center" }, "Thank You"), /* @__PURE__ */ React3.createElement(Text3, { align: "center" }, "bookmypuja.app"));
|
|
432
|
+
}).toLowerCase()), /* @__PURE__ */ React3.createElement(Line, null), /* @__PURE__ */ React3.createElement(Text3, null, "Puja: ", data.pujaName), /* @__PURE__ */ React3.createElement(Text3, null, "Name: ", data.participantName), /* @__PURE__ */ React3.createElement(Text3, null, "Nakshatra: ", data.participantNakshatra), /* @__PURE__ */ React3.createElement(Text3, { align: "right" }, "Price: ", String(data.pujaPrice)), data.status ? /* @__PURE__ */ React3.createElement(Text3, { align: "right" }, paymentStatus) : null, /* @__PURE__ */ React3.createElement(Line, null), /* @__PURE__ */ React3.createElement(Text3, { align: "center" }, "Thank You"), /* @__PURE__ */ React3.createElement(Text3, { align: "center" }, "bookmypuja.app"), /* @__PURE__ */ React3.createElement(Br, null));
|
|
433
433
|
};
|
|
434
434
|
var base64Data = async (receiptData) => {
|
|
435
435
|
const data = await render(T2InchReceipt(receiptData));
|
|
@@ -452,7 +452,6 @@ var getPrintBlob = ({
|
|
|
452
452
|
};
|
|
453
453
|
var printReceipt = async (data) => {
|
|
454
454
|
const base64DataObject = await base64Data(data);
|
|
455
|
-
console.log(base64DataObject);
|
|
456
455
|
var S = "#Intent;scheme=rawbt;";
|
|
457
456
|
var P = "package=ru.a402d.rawbtprinter;end;";
|
|
458
457
|
window.location.href = "intent:base64," + base64DataObject + S + P;
|
package/package.json
CHANGED