ionic-vhframeworks 10.10.7 → 10.10.8
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.
|
@@ -2975,6 +2975,9 @@ export declare class VhQueryCafeMenu {
|
|
|
2975
2975
|
* @returns Promise bool = true or false
|
|
2976
2976
|
*/
|
|
2977
2977
|
syncCollections_Sales365_Web(): Promise<unknown>;
|
|
2978
|
+
/**
|
|
2979
|
+
* vhQueryCafeMenu
|
|
2980
|
+
*/
|
|
2978
2981
|
private getLocalLiveIndexDB;
|
|
2979
2982
|
/**
|
|
2980
2983
|
* Khi lấy obj từ database về, hàm syncRaw_Detail_ProductInsert sẽ đồng bộ obj vào 3 loại local rawproducts, detailproducts và products
|
|
@@ -3047,7 +3050,7 @@ export declare class VhQueryCafeMenu {
|
|
|
3047
3050
|
getlocalDetailProduct(id_sub_or_product: string): any;
|
|
3048
3051
|
/**
|
|
3049
3052
|
* @example new
|
|
3050
|
-
* let products = this.
|
|
3053
|
+
* let products = this.vhQueryCafeMenu.getlocalProducts();
|
|
3051
3054
|
* @param type = 1 là sản phẩm, = 2 là dịch vụ, = 3 nguyên liệu, = 5 là combo, =12 là sản phẩm và dịch vụ, giá trị khác là cả 3
|
|
3052
3055
|
* @return Array(object) => array = [{},{},...]
|
|
3053
3056
|
*/
|
|
@@ -3055,7 +3058,7 @@ export declare class VhQueryCafeMenu {
|
|
|
3055
3058
|
/**
|
|
3056
3059
|
* Hàm này lấy về 1 unit của sản phẩm theo ratio truyền vào
|
|
3057
3060
|
* @example
|
|
3058
|
-
* let unit = this.
|
|
3061
|
+
* let unit = this.vhQueryCafeMenu.getUnit_byRatio(1);
|
|
3059
3062
|
* @param units
|
|
3060
3063
|
* @param ratio
|
|
3061
3064
|
* @return Object => obj = {} hoặc null
|
|
@@ -3064,7 +3067,7 @@ export declare class VhQueryCafeMenu {
|
|
|
3064
3067
|
/**
|
|
3065
3068
|
* Hàm này dùng lấy về phân quyền ở cấp độ chi nhánh
|
|
3066
3069
|
* @example:
|
|
3067
|
-
let appsetting = this.
|
|
3070
|
+
let appsetting = this.vhQueryCafeMenu.getLocalAppSettingNameBranch('info_header_footer_bill');
|
|
3068
3071
|
console.log(appsetting);
|
|
3069
3072
|
* @param appsetting_name
|
|
3070
3073
|
* @return object => {title:'title',name:'name', quantity: 10}
|
|
@@ -3092,7 +3095,7 @@ export declare class VhQueryCafeMenu {
|
|
|
3092
3095
|
price: 12000000,
|
|
3093
3096
|
quantity: 1
|
|
3094
3097
|
}]
|
|
3095
|
-
this.
|
|
3098
|
+
this.vhQueryCafeMenu.createBill_Billdetail(bill, bill_details)
|
|
3096
3099
|
.then((bill:any)=>{
|
|
3097
3100
|
console.log(bill._id);
|
|
3098
3101
|
},(error:any)=>{
|
|
@@ -3106,7 +3109,7 @@ export declare class VhQueryCafeMenu {
|
|
|
3106
3109
|
/**
|
|
3107
3110
|
* Hàm này tạo bill_code theo số thứ tự (trong ngày) của từng loại bill_type
|
|
3108
3111
|
* @example:
|
|
3109
|
-
* this.
|
|
3112
|
+
* this.vhQueryCafeMenu.createBillCode(new Date(), 7)
|
|
3110
3113
|
.then((bill_code)=>{
|
|
3111
3114
|
console.log('createBillCode', bill_code);
|
|
3112
3115
|
})
|
|
@@ -3136,7 +3139,7 @@ export declare class VhQueryCafeMenu {
|
|
|
3136
3139
|
* @example:
|
|
3137
3140
|
* let time = new Date();
|
|
3138
3141
|
* time.setDate(time.getDate()-7);
|
|
3139
|
-
* this.
|
|
3142
|
+
* this.vhQueryCafeMenu.getBills_byFields({date:{$gte:time}, {bill_type:{$eq:5}}, {},{date:1},0)
|
|
3140
3143
|
.then((bills)=>{
|
|
3141
3144
|
console.log('getBills', bills);
|
|
3142
3145
|
})
|
|
@@ -3148,7 +3151,7 @@ export declare class VhQueryCafeMenu {
|
|
|
3148
3151
|
*/
|
|
3149
3152
|
getBills_byFields(query: any, projection?: object, sort?: object, limit?: number): Promise<unknown>;
|
|
3150
3153
|
/**
|
|
3151
|
-
*
|
|
3154
|
+
* vhQueryCafeMenu
|
|
3152
3155
|
* @param bill_details
|
|
3153
3156
|
* @returns
|
|
3154
3157
|
*/
|
|
@@ -3156,7 +3159,7 @@ export declare class VhQueryCafeMenu {
|
|
|
3156
3159
|
/**
|
|
3157
3160
|
* Hàm này cập nhật lại giá nhập, dùng trong trường hợp createbill_billdetail và updatebill_billdetail với bill_type2
|
|
3158
3161
|
* @example
|
|
3159
|
-
this.
|
|
3162
|
+
this.vhQueryCafeMenu.calculateUpdateImportPrice(bill_details,'SzyEYNN39Mq90NkzUFpz')
|
|
3160
3163
|
.then(()=>{
|
|
3161
3164
|
console.log("success");
|
|
3162
3165
|
})
|
|
@@ -3169,7 +3172,7 @@ export declare class VhQueryCafeMenu {
|
|
|
3169
3172
|
date_expire: new Date(),
|
|
3170
3173
|
id_branch: "4zFGhVUAZyj5d09r01xZ"
|
|
3171
3174
|
}
|
|
3172
|
-
* this.
|
|
3175
|
+
* this.vhQueryCafeMenu.updatePaymentCardCode('OUHEOIWUYGHIQNIDOUW1359478',data)
|
|
3173
3176
|
.then((bool:any)=>{
|
|
3174
3177
|
console.log('updateCouponCode', bool);
|
|
3175
3178
|
}, error=>{
|
|
@@ -3183,7 +3186,7 @@ export declare class VhQueryCafeMenu {
|
|
|
3183
3186
|
/**
|
|
3184
3187
|
* @example:
|
|
3185
3188
|
*
|
|
3186
|
-
* this.
|
|
3189
|
+
* this.vhQueryCafeMenu.updateVoucherCode('OUHEOIWUYGHIQNIDOUW1359478',{date_expire : new Date()})
|
|
3187
3190
|
.then((bool:any)=>{
|
|
3188
3191
|
console.log('updateCouponCode', bool);
|
|
3189
3192
|
}, error=>{
|
|
@@ -3198,7 +3201,7 @@ export declare class VhQueryCafeMenu {
|
|
|
3198
3201
|
* hàm này trả về payment_card_code đã phát hành theo trường _id của payment_card_code. dùng trong trang bán hàng thanh toán bằng payment_card (chỉ lấy được hàng hóa có và còn trong card)
|
|
3199
3202
|
* @example:
|
|
3200
3203
|
*
|
|
3201
|
-
* this.
|
|
3204
|
+
* this.vhQueryCafeMenu.getPaymentCardCode('OUHEDW0512'})
|
|
3202
3205
|
.then((res)=>{
|
|
3203
3206
|
console.log('getPaymentCardCode', res);
|
|
3204
3207
|
}, error=>{
|
|
@@ -3232,7 +3235,7 @@ export declare class VhQueryCafeMenu {
|
|
|
3232
3235
|
private getBill;
|
|
3233
3236
|
/**
|
|
3234
3237
|
* @example:
|
|
3235
|
-
* this.
|
|
3238
|
+
* this.vhQueryCafeMenu.getBill_details_byID({id_bill:{$eq:id_bill}, bill_type:{$eq:5}}, {},{date:1},0)
|
|
3236
3239
|
.then((bill_details)=>{
|
|
3237
3240
|
console.log('bill_details', bill_details);
|
|
3238
3241
|
})
|