meemup-library 1.9.9 → 2.0.2
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.
|
@@ -745,7 +745,7 @@ class _PreviewContentController {
|
|
|
745
745
|
content += `<p style="display:block; font-size: ${template.fontSize}px; text-align: left;">Reg. date ${dayjs(detail.order.registrationDate).format(Formats.displayDateTime)}</p>`;
|
|
746
746
|
content += `<p style="display:block; font-size: ${template.fontSize}px; text-align: left;">Order REF:${detail.order.id} , #${detail.order.orderNumber}</p>`;
|
|
747
747
|
content += `<div style="display:flex; flex-direction : row; justify-content: space-between; align-items :center; ">
|
|
748
|
-
<p style="font-size: ${template.fontSize * 2}px; text-align: left;">Total
|
|
748
|
+
<p style="font-size: ${template.fontSize * 2}px; text-align: left;">Total:${afterTotal}</p>
|
|
749
749
|
<p style="font-size: ${template.fontSize * 2}px; text-align: right;">${total}</p>
|
|
750
750
|
</div>`;
|
|
751
751
|
content += `<div style="display:flex; flex-direction : row; justify-content:center; align-items:center; gap : 8px; margin-top:16px; margin-bottom: 16px;">
|
|
@@ -163,7 +163,7 @@ class SimplePreviewController {
|
|
|
163
163
|
const list = this.filterByCategoryList(this.sortProduct(detail.products, template.sortProducts), template.printOnlyCertainCategoriesList, template.printOnlyCertainCategories, template.printOnlyCertainProductsList, template.printOnlyCertainProducts);
|
|
164
164
|
const count = MoneyController.sum(list.map(i => i.quantity));
|
|
165
165
|
return `${this.createDivContainer(template)}
|
|
166
|
-
<p style="display: block; font-size: ${template.fontSize + 10}px; text-align: left; margin-top : 8px;">${count} ITEM</p>
|
|
166
|
+
<p style="display: block; font-size: ${template.fontSize + 10}px; text-align: left; margin-top : 8px;">${count <= 1 ? `${count} ITEM` : `${count} ITEMS`}</p>
|
|
167
167
|
</div>`;
|
|
168
168
|
}
|
|
169
169
|
printTextBeforeProducts(template) {
|
|
@@ -96,6 +96,7 @@ interface IPointOfSaleOrder {
|
|
|
96
96
|
ignoreBundles: number[];
|
|
97
97
|
removedBundles: IBundleProduct[];
|
|
98
98
|
ignoreReBuiltProductToSave: boolean;
|
|
99
|
+
onlyUpdatePaymentStatus: boolean;
|
|
99
100
|
}
|
|
100
101
|
export default IPointOfSaleOrder;
|
|
101
102
|
export declare const initOrder: IPointOfSaleOrder;
|
|
@@ -104,5 +104,7 @@ export const initOrder = {
|
|
|
104
104
|
// forceRefresh: -1,
|
|
105
105
|
ignoreBundles: [],
|
|
106
106
|
removedBundles: [],
|
|
107
|
-
ignoreReBuiltProductToSave: false
|
|
107
|
+
ignoreReBuiltProductToSave: false,
|
|
108
|
+
//in field baraye order hayi estefade mishe ke faghat pardakht shodan va mikhahim state payment ra update konim
|
|
109
|
+
onlyUpdatePaymentStatus: false,
|
|
108
110
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "meemup-library",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "2.0.2",
|
|
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.
|
|
14
|
+
"commit": "git add . && git commit -m \"version.2.0.2\" && git push origin "
|
|
15
15
|
},
|
|
16
16
|
"files": [
|
|
17
17
|
"/dist"
|