ionic-vhframeworks 4.1.2 → 4.1.5
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/bundles/ionic-vhframeworks.umd.js +1 -1
- package/bundles/ionic-vhframeworks.umd.js.map +1 -1
- package/bundles/ionic-vhframeworks.umd.min.js +1 -1
- package/bundles/ionic-vhframeworks.umd.min.js.map +1 -1
- package/fesm2015/ionic-vhframeworks.js.map +1 -1
- package/ionic-vhframeworks.metadata.json +1 -1
- package/lib/ionic-vhframeworks.service.d.ts +43 -27
- package/package.json +1 -1
|
@@ -495,18 +495,41 @@ export declare class VhAuth {
|
|
|
495
495
|
* @return Promise => member={}
|
|
496
496
|
*/
|
|
497
497
|
signUpEndUser(email: string, password: string, phoneNumber: string, info: object): Promise<unknown>;
|
|
498
|
-
private
|
|
498
|
+
private getLocalMyPermission;
|
|
499
|
+
/**
|
|
500
|
+
* Hàm này chỉ dùng cho FW, Dev không dùng nhé
|
|
501
|
+
* @returns
|
|
502
|
+
*/
|
|
499
503
|
refreshLocalMyPermission(): Promise<unknown>;
|
|
500
504
|
/**
|
|
501
505
|
* @example:
|
|
502
506
|
if(this.VhQuerySales.checkMyPermission('login_enable_login')){
|
|
503
507
|
this.login();
|
|
504
508
|
}
|
|
505
|
-
* @param
|
|
509
|
+
* @param permission_name
|
|
510
|
+
* @param message
|
|
511
|
+
* @return Boolean => true or false
|
|
512
|
+
*/
|
|
513
|
+
checkMyPermission(permission_name: any): boolean;
|
|
514
|
+
/**
|
|
515
|
+
* Hàm này chỉ trả về kết quả chính xác khi mà các permission_name có giá trị trả về là kiểu boolean
|
|
516
|
+
* @example:
|
|
517
|
+
if(this.VhQuerySales.checkLocalMyPermissionName('login_enable_login')){
|
|
518
|
+
this.login();
|
|
519
|
+
}
|
|
520
|
+
* @param permission_name
|
|
506
521
|
* @param message
|
|
507
522
|
* @return Boolean => true or false
|
|
508
523
|
*/
|
|
509
|
-
|
|
524
|
+
checkLocalMyPermissionName(permission_name: any): boolean;
|
|
525
|
+
/**
|
|
526
|
+
* Hàm này chỉ trả về kết quả khi mà permission_name mà có giá trị không phải kiểu boolean, nếu là kiểu boolean hàm sẽ không trả kết quả về
|
|
527
|
+
* @example:
|
|
528
|
+
* let mypermissionname = this.VhQuerySales.getLocalMyPermissionName('default_display_page');
|
|
529
|
+
* @param permission_name
|
|
530
|
+
* @return number/string/object
|
|
531
|
+
*/
|
|
532
|
+
getLocalMyPermissionName(permission_name: any): any;
|
|
510
533
|
/**
|
|
511
534
|
* @example:
|
|
512
535
|
this.VhQuerySales.updatePermission('2rVieBQTubQ2hjUnpwU4w7qSlD83',{login_enable_login: false})
|
|
@@ -519,15 +542,17 @@ export declare class VhAuth {
|
|
|
519
542
|
*/
|
|
520
543
|
updatePermission(id_employee: any, value: any): Promise<unknown>;
|
|
521
544
|
/**
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
console.log('
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
545
|
+
* Hàm này lấy về phân quyền của nhân viên
|
|
546
|
+
* Lưu ý không dùng hàm này cho Boss, vì Boss không bị giới hạn phân quyền
|
|
547
|
+
* @example:
|
|
548
|
+
this.vhAuth.getPermission('5fccf8b675b75a1fc84342e9')
|
|
549
|
+
.then((permission)=>{
|
|
550
|
+
console.log('permission', permission)
|
|
551
|
+
},error => {
|
|
552
|
+
console.log('error', error);
|
|
553
|
+
});
|
|
554
|
+
* @return Promise => permission = {} or null
|
|
555
|
+
*/
|
|
531
556
|
getPermission(id_employee: any): any;
|
|
532
557
|
publishObservableEventEmployees(): void;
|
|
533
558
|
private observableLocalEmployees;
|
|
@@ -4068,6 +4093,7 @@ export declare class VhQueryCafe {
|
|
|
4068
4093
|
* trả về null nghĩa là khách hàng này không có chiết khấu theo hóa đơn
|
|
4069
4094
|
*/
|
|
4070
4095
|
getDiscount_bill_byCustomer(total_price: number, id_customer: any): any;
|
|
4096
|
+
getDiscount_bill_byCustomer_new(total_price: number, id_customer: any): any;
|
|
4071
4097
|
/**
|
|
4072
4098
|
* @Usage :Hàm này dùng trong page CHIẾT KHẤU KHÁCH HÀNG -> Chọn TẤT CẢ hoặc MỘT khách hàng
|
|
4073
4099
|
* @notice : Mỗi công thức chiết khấu có 5 mức (level1, level2, level3, level4, level5), giá trị doanh số (sales) level sau phải lơn hơn level trước
|
|
@@ -4089,6 +4115,7 @@ export declare class VhQueryCafe {
|
|
|
4089
4115
|
* @return Promise JSON(array) => json.docs = [obj, obj, obj....]; obj ={index, name, img, discount_name,sales_btax, discount_btax, sales_atax, discount_atax}
|
|
4090
4116
|
*/
|
|
4091
4117
|
getReportDiscount_sales_Customers(starttime: any, endtime: any, IDcustomer: any, IDbranch?: string): Promise<any>;
|
|
4118
|
+
getReportDiscount_sales_Customers_new(starttime: any, endtime: any, IDcustomer: any, IDbranch?: string): Promise<any>;
|
|
4092
4119
|
/**
|
|
4093
4120
|
* @Usage :Hàm này dùng trong page HOA HỒNG NHÂN VIÊN -> Chọn TẤT CẢ hoặc MỘT nhân viên
|
|
4094
4121
|
* @notice : Mỗi công thức chiết khấu có 5 mức (level1, level2, level3, level4, level5), giá trị doanh số (sales) level sau phải lơn hơn level trước
|
|
@@ -4109,6 +4136,7 @@ export declare class VhQueryCafe {
|
|
|
4109
4136
|
* @return Promise JSON(array) => json.docs = [obj, obj, obj....]; obj ={index, name, img, commission_name, sales_btax, commission_btax, sales_atax, commission_atax}
|
|
4110
4137
|
*/
|
|
4111
4138
|
getReportCommission_Employees(starttime: any, endtime: any, IDemployee: any, IDbranch?: string): Promise<any>;
|
|
4139
|
+
getReportCommission_Employees_new(starttime: any, endtime: any, IDemployee: any, IDbranch?: string): Promise<any>;
|
|
4112
4140
|
/**
|
|
4113
4141
|
* VhQueryCafe:
|
|
4114
4142
|
* cashbook_first: tiền mặt đầu kỳ (starttime),
|
|
@@ -12826,7 +12854,9 @@ export declare class VhQuerySales {
|
|
|
12826
12854
|
*/
|
|
12827
12855
|
getCoupon_Code_Name_Release(id_coupon_code: any): Promise<unknown>;
|
|
12828
12856
|
/**
|
|
12829
|
-
*
|
|
12857
|
+
* hàm này để đổi phiếu từ điểm của khách hàng. Đổi thành công tự động tạo lịch sử đổi điểm của khách hàng
|
|
12858
|
+
* hàm này đã cập nhật lại trường status, id_customer, date_points_exchanged cho coupon_codes
|
|
12859
|
+
* hàm này đã cập nhật lại trường earned_points, id_customer, branch_earned_points cho customers
|
|
12830
12860
|
* @example:
|
|
12831
12861
|
* this.vhQuerySales.exchangeCouponCode_byEarningPoints(['OUIYWGUDBYWUHEDW0512','1984QIHBSYGWDIOUHIQFE'], 'INBIFDYWUGUHNI65498', 1000})
|
|
12832
12862
|
.then((bool)=>{
|
|
@@ -13172,20 +13202,6 @@ export declare class VhQuerySales {
|
|
|
13172
13202
|
* @return Promise => obj ={} or null
|
|
13173
13203
|
*/
|
|
13174
13204
|
getVoucher_Code_Name_Release(id_voucher_code: any): Promise<unknown>;
|
|
13175
|
-
/** Hàm này để đổi voucher từ điểm của khách hàng. Đổi thành công tự động tạo lịch sử đổi điểm của khách hàng
|
|
13176
|
-
* @example:
|
|
13177
|
-
* let data = [id_voucher_code]
|
|
13178
|
-
* this.vhQuerySales.exchangeVoucherCode_byEarningPoints(data, "fuMS21I6othUm34385WV", 10)
|
|
13179
|
-
.then((bool)=>{
|
|
13180
|
-
console.log('exchangeVoucherCode_byEarningPoints', bool);
|
|
13181
|
-
}, error=>{
|
|
13182
|
-
console.log('error', error);
|
|
13183
|
-
})
|
|
13184
|
-
* @param array_id_voucher_code
|
|
13185
|
-
* @param id_customer
|
|
13186
|
-
* @param points
|
|
13187
|
-
* @return Promise Boolean => true or false
|
|
13188
|
-
*/
|
|
13189
13205
|
exchangeVoucherCode_byEarningPoints(array_id_voucher_code: any, id_customer: any, points: any): Promise<unknown>;
|
|
13190
13206
|
/**
|
|
13191
13207
|
* @example:
|