ionic-vhframeworks 9.9.6 → 9.9.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.
|
@@ -3369,6 +3369,45 @@ export declare class VhQueryCafe {
|
|
|
3369
3369
|
* Luu ý: chỉ có 2 trường hợp, hoặc là sync thành công, hoặc là báo lỗi error
|
|
3370
3370
|
*/
|
|
3371
3371
|
private syncBillDetails_Products;
|
|
3372
|
+
/**
|
|
3373
|
+
* Hàm kiểm tra và đồng bộ các khách hàng trong bill_details (chi tiết hóa đơn), đảm bảo khách hàng trong bill_detail đã tồn tại trong local
|
|
3374
|
+
* @example:
|
|
3375
|
+
* this.vhQueryCafe.syncBillDetails_Customers(array)
|
|
3376
|
+
.then(()=>{
|
|
3377
|
+
}, error=>{
|
|
3378
|
+
console.log('error', error);
|
|
3379
|
+
})
|
|
3380
|
+
* @param bill_details : Array
|
|
3381
|
+
* @return Promise => null
|
|
3382
|
+
* Luu ý: chỉ có 2 trường hợp, hoặc là sync thành công, hoặc là báo lỗi error
|
|
3383
|
+
*/
|
|
3384
|
+
private syncBillDetails_Customers;
|
|
3385
|
+
/**
|
|
3386
|
+
* Hàm kiểm tra và đồng bộ các nhà cung cấp trong bill_details (chi tiết hóa đơn), đảm bảo nhà cung cấp trong bill_detail đã tồn tại trong local
|
|
3387
|
+
* @example:
|
|
3388
|
+
* this.vhQueryCafe.syncBillDetails_Suppliers(array)
|
|
3389
|
+
.then(()=>{
|
|
3390
|
+
}, error=>{
|
|
3391
|
+
console.log('error', error);
|
|
3392
|
+
})
|
|
3393
|
+
* @param bill_details : Array
|
|
3394
|
+
* @return Promise => null
|
|
3395
|
+
* Luu ý: chỉ có 2 trường hợp, hoặc là sync thành công, hoặc là báo lỗi error
|
|
3396
|
+
*/
|
|
3397
|
+
private syncBillDetails_Suppliers;
|
|
3398
|
+
/**
|
|
3399
|
+
* Hàm kiểm tra và đồng bộ các sản phẩm trong bill_details (chi tiết hóa đơn), đảm bảo nhân viên trong bill_detail đã tồn tại trong local
|
|
3400
|
+
* @example:
|
|
3401
|
+
* this.vhQueryCafe.syncBillDetails_Employees(array)
|
|
3402
|
+
.then(()=>{
|
|
3403
|
+
}, error=>{
|
|
3404
|
+
console.log('error', error);
|
|
3405
|
+
})
|
|
3406
|
+
* @param bill_details : Array
|
|
3407
|
+
* @return Promise => null
|
|
3408
|
+
* Luu ý: chỉ có 2 trường hợp, hoặc là sync thành công, hoặc là báo lỗi error
|
|
3409
|
+
*/
|
|
3410
|
+
private syncBillDetails_Employees;
|
|
3372
3411
|
/**
|
|
3373
3412
|
* Hàm này tìm, kiểm tra barcode bất kỳ có tồn tại không, nếu có thì trả về 1 detailproduct, nếu ko thì trả về null
|
|
3374
3413
|
* Hàm này dùng trong 2 trường hợp:
|
|
@@ -7003,24 +7042,6 @@ export declare class VhQueryCafe {
|
|
|
7003
7042
|
* @return Promise JSON(array) => json.docs = [obj, obj, obj....]; obj ={index, name, img, id_customer, quantity, sales_btax, sales_atax}
|
|
7004
7043
|
*/
|
|
7005
7044
|
getReportSales_Customers_byCustomers(starttime: any, endtime: any, IDcustomer: any, IDbranch?: string): Promise<any>;
|
|
7006
|
-
/**
|
|
7007
|
-
* @Usage Hàm này dùng trong page DOANH SỐ KHÁCH HÀNG (layer 1) -> Chọn TẤT CẢ hoặc MỘT khách hàng
|
|
7008
|
-
* @example
|
|
7009
|
-
* let endtime = new Date();
|
|
7010
|
-
let starttime = new Date('2020-07-01T05:24:00');
|
|
7011
|
-
this.vhQueryCafe.getReportSales_Customers_byCustomers(starttime, endtime, '7YLcm0cFKLu2KaQQ8cyv')
|
|
7012
|
-
.then((reportsales)=>{
|
|
7013
|
-
console.log('reportsales', reportsales);
|
|
7014
|
-
console.log('reportsales.docs[0]', reportsales.docs[0]);
|
|
7015
|
-
})
|
|
7016
|
-
* @param starttime
|
|
7017
|
-
* @param endtime
|
|
7018
|
-
* @param IDcustomer = 'all' or id_customer
|
|
7019
|
-
* @param IDbranch : 'all' or id_branch
|
|
7020
|
-
* @param type = 1 là sản phẩm, = 2 là dịch vụ, = 3 là nguyên liêu, ko truyền vào hoặc giá trị khác là cả ba
|
|
7021
|
-
* @return Promise JSON(array) => json.docs = [obj, obj, obj....]; obj ={index, name, id_product, quantity, sales_btax, sales_atax}
|
|
7022
|
-
*/
|
|
7023
|
-
private getReportSales_Customers_byCustomers_old;
|
|
7024
7045
|
/**
|
|
7025
7046
|
* @Usage Hàm này dùng trong page DOANH SỐ KHÁCH HÀNG (layer 2) -> Chọn TẤT CẢ hoặc MỘT khách hàng -> Chọn một khách hàng trong list hiện ra
|
|
7026
7047
|
* @example
|
|
@@ -7126,24 +7147,6 @@ export declare class VhQueryCafe {
|
|
|
7126
7147
|
* @return Promise JSON(array) => json.docs = [obj, obj, obj....]; obj ={index, name, img, id_employee, quantity, sales_btax, sales_atax}
|
|
7127
7148
|
*/
|
|
7128
7149
|
getReportSales_Employees_byEmployees(starttime: any, endtime: any, IDemployee: any, IDbranch?: string): Promise<any>;
|
|
7129
|
-
/**
|
|
7130
|
-
* @Usage Hàm này dùng trong page DOANH SỐ NHÂN VIÊN (layer 1) -> Chọn TẤT CẢ hoặc MỘT nhân viên
|
|
7131
|
-
* @example
|
|
7132
|
-
* let endtime = new Date();
|
|
7133
|
-
let starttime = new Date('2020-07-01T05:24:00');
|
|
7134
|
-
this.vhQueryCafe.getReportSales_Employees_byEmployees(starttime, endtime, '7YLcm0cFKLu2KaQQ8cyv')
|
|
7135
|
-
.then((reportsales)=>{
|
|
7136
|
-
console.log('reportsales', reportsales);
|
|
7137
|
-
console.log('reportsales.docs[0]', reportsales.docs[0]);
|
|
7138
|
-
})
|
|
7139
|
-
* @param starttime
|
|
7140
|
-
* @param endtime
|
|
7141
|
-
* @param IDemployee = 'all' or id_employee
|
|
7142
|
-
* @param IDbranch = 'all' or id_branch
|
|
7143
|
-
* @param type = 1 là sản phẩm, = 2 là dịch vụ, = 3 là nguyên liêu, ko truyền vào hoặc giá trị khác là cả ba
|
|
7144
|
-
* @return Promise JSON(array) => json.docs = [obj, obj, obj....]; obj ={index, name, img, id_employee, quantity, sales_btax, sales_atax}
|
|
7145
|
-
*/
|
|
7146
|
-
private getReportSales_Employees_byEmployees_old;
|
|
7147
7150
|
/**
|
|
7148
7151
|
* @Usage Hàm này dùng trong page DOANH KHÁCH NHÂN VIÊN (layer 2) -> Chọn TẤT CẢ hoặc MỘT nhân viên -> Chọn một nhân viên trong list hiện ra
|
|
7149
7152
|
* @example
|