ionic-vhframeworks 9.8.7 → 9.8.9
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.
|
@@ -1340,6 +1340,17 @@ export declare class VhAuth {
|
|
|
1340
1340
|
* @return obj = {} or null
|
|
1341
1341
|
*/
|
|
1342
1342
|
getlocalEmployee(id_employee: any): any;
|
|
1343
|
+
/**
|
|
1344
|
+
* @example:
|
|
1345
|
+
* this.vhAuth.getlocalEmployee_Async('ETxNu8exrvGtXFjkIhnc')
|
|
1346
|
+
.then((employee)=>{
|
|
1347
|
+
}, error=>{
|
|
1348
|
+
console.log('error', error);
|
|
1349
|
+
})
|
|
1350
|
+
* @param id_employee
|
|
1351
|
+
* @return Object => obj = {} or null
|
|
1352
|
+
*/
|
|
1353
|
+
private getlocalEmployee_Async;
|
|
1343
1354
|
/**
|
|
1344
1355
|
* @example:
|
|
1345
1356
|
* let employees = this.vhAuth.getlocalEmployees();
|
|
@@ -1351,6 +1362,18 @@ export declare class VhAuth {
|
|
|
1351
1362
|
* @return Promise => null
|
|
1352
1363
|
*/
|
|
1353
1364
|
refreshLocalEmployees(): any;
|
|
1365
|
+
/**
|
|
1366
|
+
* Hàm này dùng để đồng bộ dữ liệu ẩn (delete_hidden = true) từ database về local
|
|
1367
|
+
* @example:
|
|
1368
|
+
* this.vhAuth.refreshLocalEmployees_Delete_Hidden()
|
|
1369
|
+
.then(()=>{
|
|
1370
|
+
do something.....
|
|
1371
|
+
})
|
|
1372
|
+
* Hàm này refresh giá trị mới nhất cho hàm getlocalCustomer(), getlocalCustomers() trong localstorage
|
|
1373
|
+
* @param type
|
|
1374
|
+
* @return Promise => null
|
|
1375
|
+
*/
|
|
1376
|
+
refreshLocalEmployees_Delete_Hidden(type: any): any;
|
|
1354
1377
|
/**
|
|
1355
1378
|
* @example:
|
|
1356
1379
|
* this.vhAuth.updateEmployee('5fb6780ca2148e09806c5b01', {quantity:400})
|
|
@@ -3664,6 +3687,17 @@ export declare class VhQueryCafe {
|
|
|
3664
3687
|
* @return Object => obj = {} or null
|
|
3665
3688
|
*/
|
|
3666
3689
|
getlocalCustomer(id_customer: any): any;
|
|
3690
|
+
/**
|
|
3691
|
+
* @example:
|
|
3692
|
+
* this.vhQueryCafe.getlocalCustomer_Async('ETxNu8exrvGtXFjkIhnc')
|
|
3693
|
+
.then((customer)=>{
|
|
3694
|
+
}, error=>{
|
|
3695
|
+
console.log('error', error);
|
|
3696
|
+
})
|
|
3697
|
+
* @param id_customer
|
|
3698
|
+
* @return Object => obj = {} or null
|
|
3699
|
+
*/
|
|
3700
|
+
private getlocalCustomer_Async;
|
|
3667
3701
|
/**
|
|
3668
3702
|
* @example:
|
|
3669
3703
|
* let customers = this.vhQueryCafe.getlocalCustomers();
|
|
@@ -3680,6 +3714,18 @@ export declare class VhQueryCafe {
|
|
|
3680
3714
|
* @return Promise => null
|
|
3681
3715
|
*/
|
|
3682
3716
|
refreshLocalCustomers(): any;
|
|
3717
|
+
/**
|
|
3718
|
+
* Hàm này dùng để đồng bộ dữ liệu ẩn (delete_hidden = true) từ database về local
|
|
3719
|
+
* @example:
|
|
3720
|
+
* this.vhQueryCafe.refreshLocalCustomers_Delete_Hidden()
|
|
3721
|
+
.then(()=>{
|
|
3722
|
+
do something.....
|
|
3723
|
+
})
|
|
3724
|
+
* Hàm này refresh giá trị mới nhất cho hàm getlocalCustomer(), getlocalCustomers() trong localstorage
|
|
3725
|
+
* @param type
|
|
3726
|
+
* @return Promise => null
|
|
3727
|
+
*/
|
|
3728
|
+
refreshLocalCustomers_Delete_Hidden(): any;
|
|
3683
3729
|
/**
|
|
3684
3730
|
* @example:
|
|
3685
3731
|
* this.vhQueryCafe.addCustomer({name:'Khách hàng 1', address: 'HCM'})
|
|
@@ -3816,6 +3862,17 @@ export declare class VhQueryCafe {
|
|
|
3816
3862
|
* @return Object => obj = {} or null
|
|
3817
3863
|
*/
|
|
3818
3864
|
getlocalSupplier(id_supplier: any): any;
|
|
3865
|
+
/**
|
|
3866
|
+
* @example:
|
|
3867
|
+
* this.vhQueryCafe.getlocalSupplier_Async('ETxNu8exrvGtXFjkIhnc')
|
|
3868
|
+
.then((customer)=>{
|
|
3869
|
+
}, error=>{
|
|
3870
|
+
console.log('error', error);
|
|
3871
|
+
})
|
|
3872
|
+
* @param id_supplier
|
|
3873
|
+
* @return Object => obj = {} or null
|
|
3874
|
+
*/
|
|
3875
|
+
private getlocalSupplier_Async;
|
|
3819
3876
|
/**
|
|
3820
3877
|
* @example:
|
|
3821
3878
|
* let suppliers = this.vhQueryCafe.getlocalWallets();
|
|
@@ -3831,6 +3888,18 @@ export declare class VhQueryCafe {
|
|
|
3831
3888
|
* @return Promise => null
|
|
3832
3889
|
*/
|
|
3833
3890
|
refreshLocalSuppliers(): any;
|
|
3891
|
+
/**
|
|
3892
|
+
* Hàm này dùng để đồng bộ dữ liệu ẩn (delete_hidden = true) từ database về local
|
|
3893
|
+
* @example:
|
|
3894
|
+
* this.vhQueryCafe.refreshLocalSuppliers_Delete_Hidden()
|
|
3895
|
+
.then(()=>{
|
|
3896
|
+
do something.....
|
|
3897
|
+
})
|
|
3898
|
+
* Hàm này refresh giá trị mới nhất cho hàm getlocalSupplier(), getlocalSuppliers() trong localstorage
|
|
3899
|
+
* @param type
|
|
3900
|
+
* @return Promise => null
|
|
3901
|
+
*/
|
|
3902
|
+
refreshLocalSuppliers_Delete_Hidden(): any;
|
|
3834
3903
|
/**
|
|
3835
3904
|
* @example:
|
|
3836
3905
|
* this.vhQueryCafe.addCustomer({name:'Nhà cung cấp 1', address: 'HCM'})
|
|
@@ -23341,12 +23410,12 @@ export declare class VhQuerySales {
|
|
|
23341
23410
|
}, error=>{
|
|
23342
23411
|
console.log('error', error);
|
|
23343
23412
|
})
|
|
23344
|
-
* @param
|
|
23413
|
+
* @param id_sub_or_product : object
|
|
23345
23414
|
* @return Promise => object or null
|
|
23346
23415
|
*/
|
|
23347
23416
|
private getlocalDetailProduct_Async;
|
|
23348
23417
|
/**
|
|
23349
|
-
* Hàm kiểm tra và đồng bộ các sản phẩm trong bill_details (chi tiết hóa đơn)
|
|
23418
|
+
* 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 sản phẩm trong bill_detail đã tồn tại trong local
|
|
23350
23419
|
* @example:
|
|
23351
23420
|
* this.vhQuerySales.syncBillDetails_Products(array)
|
|
23352
23421
|
.then(()=>{
|
|
@@ -23358,6 +23427,45 @@ export declare class VhQuerySales {
|
|
|
23358
23427
|
* Luu ý: chỉ có 2 trường hợp, hoặc là sync thành công, hoặc là báo lỗi error
|
|
23359
23428
|
*/
|
|
23360
23429
|
private syncBillDetails_Products;
|
|
23430
|
+
/**
|
|
23431
|
+
* 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
|
|
23432
|
+
* @example:
|
|
23433
|
+
* this.vhQuerySales.syncBillDetails_Customers(array)
|
|
23434
|
+
.then(()=>{
|
|
23435
|
+
}, error=>{
|
|
23436
|
+
console.log('error', error);
|
|
23437
|
+
})
|
|
23438
|
+
* @param bill_details : Array
|
|
23439
|
+
* @return Promise => null
|
|
23440
|
+
* Luu ý: chỉ có 2 trường hợp, hoặc là sync thành công, hoặc là báo lỗi error
|
|
23441
|
+
*/
|
|
23442
|
+
private syncBillDetails_Customers;
|
|
23443
|
+
/**
|
|
23444
|
+
* 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
|
|
23445
|
+
* @example:
|
|
23446
|
+
* this.vhQuerySales.syncBillDetails_Suppliers(array)
|
|
23447
|
+
.then(()=>{
|
|
23448
|
+
}, error=>{
|
|
23449
|
+
console.log('error', error);
|
|
23450
|
+
})
|
|
23451
|
+
* @param bill_details : Array
|
|
23452
|
+
* @return Promise => null
|
|
23453
|
+
* Luu ý: chỉ có 2 trường hợp, hoặc là sync thành công, hoặc là báo lỗi error
|
|
23454
|
+
*/
|
|
23455
|
+
private syncBillDetails_Suppliers;
|
|
23456
|
+
/**
|
|
23457
|
+
* 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
|
|
23458
|
+
* @example:
|
|
23459
|
+
* this.vhQuerySales.syncBillDetails_Employees(array)
|
|
23460
|
+
.then(()=>{
|
|
23461
|
+
}, error=>{
|
|
23462
|
+
console.log('error', error);
|
|
23463
|
+
})
|
|
23464
|
+
* @param bill_details : Array
|
|
23465
|
+
* @return Promise => null
|
|
23466
|
+
* Luu ý: chỉ có 2 trường hợp, hoặc là sync thành công, hoặc là báo lỗi error
|
|
23467
|
+
*/
|
|
23468
|
+
private syncBillDetails_Employees;
|
|
23361
23469
|
/**
|
|
23362
23470
|
* 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
|
|
23363
23471
|
* Hàm này dùng trong 2 trường hợp:
|
|
@@ -23748,6 +23856,17 @@ export declare class VhQuerySales {
|
|
|
23748
23856
|
* @return Object => obj = {} or null
|
|
23749
23857
|
*/
|
|
23750
23858
|
getlocalCustomer(id_customer: any): any;
|
|
23859
|
+
/**
|
|
23860
|
+
* @example:
|
|
23861
|
+
* this.vhQuerySales.getlocalCustomer_Async('ETxNu8exrvGtXFjkIhnc')
|
|
23862
|
+
.then((customer)=>{
|
|
23863
|
+
}, error=>{
|
|
23864
|
+
console.log('error', error);
|
|
23865
|
+
})
|
|
23866
|
+
* @param id_customer
|
|
23867
|
+
* @return Object => obj = {} or null
|
|
23868
|
+
*/
|
|
23869
|
+
private getlocalCustomer_Async;
|
|
23751
23870
|
/**
|
|
23752
23871
|
* @example:
|
|
23753
23872
|
* let customers = this.vhQuerySales.getlocalCustomers();
|
|
@@ -23764,6 +23883,18 @@ export declare class VhQuerySales {
|
|
|
23764
23883
|
* @return Promise => null
|
|
23765
23884
|
*/
|
|
23766
23885
|
refreshLocalCustomers(): any;
|
|
23886
|
+
/**
|
|
23887
|
+
* Hàm này dùng để đồng bộ dữ liệu ẩn (delete_hidden = true) từ database về local
|
|
23888
|
+
* @example:
|
|
23889
|
+
* this.vhQuerySales.refreshLocalCustomers_Delete_Hidden()
|
|
23890
|
+
.then(()=>{
|
|
23891
|
+
do something.....
|
|
23892
|
+
})
|
|
23893
|
+
* Hàm này refresh giá trị mới nhất cho hàm getlocalCustomer(), getlocalCustomers() trong localstorage
|
|
23894
|
+
* @param type
|
|
23895
|
+
* @return Promise => null
|
|
23896
|
+
*/
|
|
23897
|
+
refreshLocalCustomers_Delete_Hidden(): any;
|
|
23767
23898
|
/**
|
|
23768
23899
|
* @example:
|
|
23769
23900
|
* this.vhQuerySales.addCustomer({name:'Khách hàng 1', address: 'HCM'})
|
|
@@ -23900,6 +24031,17 @@ export declare class VhQuerySales {
|
|
|
23900
24031
|
* @return Object => obj = {} or null
|
|
23901
24032
|
*/
|
|
23902
24033
|
getlocalSupplier(id_supplier: any): any;
|
|
24034
|
+
/**
|
|
24035
|
+
* @example:
|
|
24036
|
+
* this.vhQuerySales.getlocalSupplier_Async('ETxNu8exrvGtXFjkIhnc')
|
|
24037
|
+
.then((customer)=>{
|
|
24038
|
+
}, error=>{
|
|
24039
|
+
console.log('error', error);
|
|
24040
|
+
})
|
|
24041
|
+
* @param id_supplier
|
|
24042
|
+
* @return Object => obj = {} or null
|
|
24043
|
+
*/
|
|
24044
|
+
private getlocalSupplier_Async;
|
|
23903
24045
|
/**
|
|
23904
24046
|
* @example:
|
|
23905
24047
|
* let suppliers = this.vhQuerySales.getlocalWallets();
|
|
@@ -23915,6 +24057,18 @@ export declare class VhQuerySales {
|
|
|
23915
24057
|
* @return Promise => null
|
|
23916
24058
|
*/
|
|
23917
24059
|
refreshLocalSuppliers(): any;
|
|
24060
|
+
/**
|
|
24061
|
+
* Hàm này dùng để đồng bộ dữ liệu ẩn (delete_hidden = true) từ database về local
|
|
24062
|
+
* @example:
|
|
24063
|
+
* this.vhQuerySales.refreshLocalSuppliers_Delete_Hidden()
|
|
24064
|
+
.then(()=>{
|
|
24065
|
+
do something.....
|
|
24066
|
+
})
|
|
24067
|
+
* Hàm này refresh giá trị mới nhất cho hàm getlocalSupplier(), getlocalSuppliers() trong localstorage
|
|
24068
|
+
* @param type
|
|
24069
|
+
* @return Promise => null
|
|
24070
|
+
*/
|
|
24071
|
+
refreshLocalSuppliers_Delete_Hidden(): any;
|
|
23918
24072
|
/**
|
|
23919
24073
|
* @example:
|
|
23920
24074
|
* this.vhQuerySales.addCustomer({name:'Nhà cung cấp 1', address: 'HCM'})
|