ionic-vhframeworks 9.8.8 → 9.9.0

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();
@@ -3683,7 +3717,7 @@ export declare class VhQueryCafe {
3683
3717
  /**
3684
3718
  * Hàm này dùng để đồng bộ dữ liệu ẩn (delete_hidden = true) từ database về local
3685
3719
  * @example:
3686
- * this.vhQueryCafe.refreshLocalCustomers_Delete_Hidden(3)
3720
+ * this.vhQueryCafe.refreshLocalCustomers_Delete_Hidden()
3687
3721
  .then(()=>{
3688
3722
  do something.....
3689
3723
  })
@@ -3691,7 +3725,7 @@ export declare class VhQueryCafe {
3691
3725
  * @param type
3692
3726
  * @return Promise => null
3693
3727
  */
3694
- refreshLocalCustomers_Delete_Hidden(type: any): any;
3728
+ refreshLocalCustomers_Delete_Hidden(): any;
3695
3729
  /**
3696
3730
  * @example:
3697
3731
  * this.vhQueryCafe.addCustomer({name:'Khách hàng 1', address: 'HCM'})
@@ -3828,6 +3862,17 @@ export declare class VhQueryCafe {
3828
3862
  * @return Object => obj = {} or null
3829
3863
  */
3830
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;
3831
3876
  /**
3832
3877
  * @example:
3833
3878
  * let suppliers = this.vhQueryCafe.getlocalWallets();
@@ -3846,7 +3891,7 @@ export declare class VhQueryCafe {
3846
3891
  /**
3847
3892
  * Hàm này dùng để đồng bộ dữ liệu ẩn (delete_hidden = true) từ database về local
3848
3893
  * @example:
3849
- * this.vhQueryCafe.refreshLocalSuppliers_Delete_Hidden(3)
3894
+ * this.vhQueryCafe.refreshLocalSuppliers_Delete_Hidden()
3850
3895
  .then(()=>{
3851
3896
  do something.....
3852
3897
  })
@@ -3854,7 +3899,7 @@ export declare class VhQueryCafe {
3854
3899
  * @param type
3855
3900
  * @return Promise => null
3856
3901
  */
3857
- refreshLocalSuppliers_Delete_Hidden(type: any): any;
3902
+ refreshLocalSuppliers_Delete_Hidden(): any;
3858
3903
  /**
3859
3904
  * @example:
3860
3905
  * this.vhQueryCafe.addCustomer({name:'Nhà cung cấp 1', address: 'HCM'})
@@ -23365,12 +23410,12 @@ export declare class VhQuerySales {
23365
23410
  }, error=>{
23366
23411
  console.log('error', error);
23367
23412
  })
23368
- * @param data : object
23413
+ * @param id_sub_or_product : object
23369
23414
  * @return Promise => object or null
23370
23415
  */
23371
23416
  private getlocalDetailProduct_Async;
23372
23417
  /**
23373
- * 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
23374
23419
  * @example:
23375
23420
  * this.vhQuerySales.syncBillDetails_Products(array)
23376
23421
  .then(()=>{
@@ -23382,6 +23427,45 @@ export declare class VhQuerySales {
23382
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
23383
23428
  */
23384
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;
23385
23469
  /**
23386
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
23387
23471
  * Hàm này dùng trong 2 trường hợp:
@@ -23772,6 +23856,17 @@ export declare class VhQuerySales {
23772
23856
  * @return Object => obj = {} or null
23773
23857
  */
23774
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;
23775
23870
  /**
23776
23871
  * @example:
23777
23872
  * let customers = this.vhQuerySales.getlocalCustomers();
@@ -23791,7 +23886,7 @@ export declare class VhQuerySales {
23791
23886
  /**
23792
23887
  * Hàm này dùng để đồng bộ dữ liệu ẩn (delete_hidden = true) từ database về local
23793
23888
  * @example:
23794
- * this.vhQuerySales.refreshLocalCustomers_Delete_Hidden(3)
23889
+ * this.vhQuerySales.refreshLocalCustomers_Delete_Hidden()
23795
23890
  .then(()=>{
23796
23891
  do something.....
23797
23892
  })
@@ -23799,7 +23894,7 @@ export declare class VhQuerySales {
23799
23894
  * @param type
23800
23895
  * @return Promise => null
23801
23896
  */
23802
- refreshLocalCustomers_Delete_Hidden(type: any): any;
23897
+ refreshLocalCustomers_Delete_Hidden(): any;
23803
23898
  /**
23804
23899
  * @example:
23805
23900
  * this.vhQuerySales.addCustomer({name:'Khách hàng 1', address: 'HCM'})
@@ -23936,6 +24031,17 @@ export declare class VhQuerySales {
23936
24031
  * @return Object => obj = {} or null
23937
24032
  */
23938
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;
23939
24045
  /**
23940
24046
  * @example:
23941
24047
  * let suppliers = this.vhQuerySales.getlocalWallets();
@@ -23954,7 +24060,7 @@ export declare class VhQuerySales {
23954
24060
  /**
23955
24061
  * Hàm này dùng để đồng bộ dữ liệu ẩn (delete_hidden = true) từ database về local
23956
24062
  * @example:
23957
- * this.vhQuerySales.refreshLocalSuppliers_Delete_Hidden(3)
24063
+ * this.vhQuerySales.refreshLocalSuppliers_Delete_Hidden()
23958
24064
  .then(()=>{
23959
24065
  do something.....
23960
24066
  })
@@ -23962,7 +24068,7 @@ export declare class VhQuerySales {
23962
24068
  * @param type
23963
24069
  * @return Promise => null
23964
24070
  */
23965
- refreshLocalSuppliers_Delete_Hidden(type: any): any;
24071
+ refreshLocalSuppliers_Delete_Hidden(): any;
23966
24072
  /**
23967
24073
  * @example:
23968
24074
  * this.vhQuerySales.addCustomer({name:'Nhà cung cấp 1', address: 'HCM'})
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ionic-vhframeworks",
3
- "version": "9.8.8",
3
+ "version": "9.9.0",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "^12.2.0",
6
6
  "@angular/core": "^12.2.0"