meemup-library 1.4.57 → 1.4.59
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.
|
@@ -566,12 +566,13 @@ export default new class PreviewContentController {
|
|
|
566
566
|
if (member.id > initPointOfSaleTeamMember.id) {
|
|
567
567
|
content += SimplePreviewController.createSubTitle(`Member ID: #${member.id}`);
|
|
568
568
|
content += SimplePreviewController.createSubTitle(`Member: ${member.firstName} ${member.lastName}`);
|
|
569
|
-
content += SimplePreviewController.printSpace(
|
|
569
|
+
content += SimplePreviewController.printSpace(8);
|
|
570
570
|
}
|
|
571
|
-
content += SimplePreviewController.createText(`${title}: ${MoneyController.format(device.money, setting.currencySymbol)}
|
|
572
|
-
content += SimplePreviewController.createText(`Reason: ${device.reason}`);
|
|
573
|
-
content += SimplePreviewController.printSolidLine();
|
|
571
|
+
content += SimplePreviewController.createText(`${title}: ${MoneyController.format(device.money, setting.currencySymbol)}`);
|
|
574
572
|
content += SimplePreviewController.createText(`Reason: ${device.reason}`);
|
|
573
|
+
// content += SimplePreviewController.printSolidLine();
|
|
574
|
+
// content += SimplePreviewController.createText(`Reason: ${device.reason}`);
|
|
575
|
+
content += SimplePreviewController.printSpace(24);
|
|
575
576
|
content += SimplePreviewController.footer();
|
|
576
577
|
return this.standardHtmlContainer(content);
|
|
577
578
|
}
|
|
@@ -717,21 +718,24 @@ export default new class PreviewContentController {
|
|
|
717
718
|
const sum = MoneyController.sumField(records, 'amount');
|
|
718
719
|
content += SimplePreviewController.createHeader('Cash drawer report', 'center');
|
|
719
720
|
content += SimplePreviewController.createText(company, 'center', true);
|
|
721
|
+
content += SimplePreviewController.printSpace(20);
|
|
720
722
|
content += SimplePreviewController.createTextValueSpaceBetween('Cash drawer:', `#${form.cashDrawerId} - ${device.name}`);
|
|
721
|
-
content += SimplePreviewController.createTextValueSpaceBetween('Since:',
|
|
722
|
-
content += SimplePreviewController.createTextValueSpaceBetween('Until:',
|
|
723
|
+
content += SimplePreviewController.createTextValueSpaceBetween('Since:', form.since);
|
|
724
|
+
content += SimplePreviewController.createTextValueSpaceBetween('Until:', form.until);
|
|
723
725
|
if (member.id > initPointOfSaleTeamMember.id) {
|
|
724
726
|
content += SimplePreviewController.createTextValueSpaceBetween('Member ID:', `#${member.id}`);
|
|
725
727
|
content += SimplePreviewController.createTextValueSpaceBetween('Member:', `${member.firstName} ${member.lastName}`);
|
|
726
728
|
}
|
|
727
729
|
content += SimplePreviewController.printSolidLine();
|
|
730
|
+
content += SimplePreviewController.printSpace(8);
|
|
728
731
|
records.map(record => {
|
|
729
732
|
//moment(record.dateTime).format(Formats.printedAt)
|
|
730
733
|
content += SimplePreviewController.createTextValueSpaceBetween(formatDate(record.dateTime), MoneyController.format(record.amount, currency));
|
|
731
734
|
content += SimplePreviewController.createText(record.reason);
|
|
732
|
-
content += SimplePreviewController.
|
|
735
|
+
content += SimplePreviewController.printSpace(8);
|
|
733
736
|
});
|
|
734
|
-
content += SimplePreviewController.createTextValueSpaceBetween('Total:', MoneyController.format(sum, currency));
|
|
737
|
+
content += SimplePreviewController.createTextValueSpaceBetween('Total:', MoneyController.format(sum, currency), 18);
|
|
738
|
+
content += SimplePreviewController.printSpace(20);
|
|
735
739
|
content += SimplePreviewController.footer();
|
|
736
740
|
return this.standardHtmlContainer(content);
|
|
737
741
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "meemup-library",
|
|
3
|
-
"version": "1.4.
|
|
3
|
+
"version": "1.4.59",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
"remove:one": "rimraf dist",
|
|
12
12
|
"remove:two": "rimraf ./src/dist",
|
|
13
13
|
"test": "echo \"Error: no test specified\" && exit 1",
|
|
14
|
-
"commit": "git add . && git commit -m \"version.1.4.
|
|
14
|
+
"commit": "git add . && git commit -m \"version.1.4.59\" && git push origin "
|
|
15
15
|
},
|
|
16
16
|
"files": [
|
|
17
17
|
"/dist"
|