ionic-vhframeworks 4.1.0 → 4.1.1

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.
@@ -3444,16 +3444,26 @@ export declare class VhQueryCafe {
3444
3444
  * Hàm này dùng để đồng bộ hóa đơn đang mở ở 2 giao diện hoặc 2 thiết bị khác nhau
3445
3445
  * @example:
3446
3446
  * this.vhQueryCafe.observableSyncOpeningBill('5fb6780ca2148e09806c5b01', 5)
3447
- .subscribe((bill)=> {
3448
- console.log('observableSyncOpeningBill', bill);
3447
+ .subscribe((rsp)=> {
3448
+ if(rsp.vcode === 0){
3449
+ //-----------your code 0-----------
3450
+ let bill = rsp.data;
3451
+ console.log('observableSyncOpeningBill', bill);
3452
+ }else if(rsp.vcode === 1){
3453
+ //-----------your code 1-----------
3454
+ }else if(rsp.vcode === 2){
3455
+ //-----------your code 2-----------
3456
+ }
3449
3457
  },(error:any) => {
3450
3458
  console.log(error);
3451
3459
  })
3452
3460
  * @param id_bill
3453
3461
  * @param bill_type
3454
3462
  * @returns Observable => bill hoặc null;
3455
- * + trả về bill hóa đơn đó đang được sử ở thiết bị khác;
3456
- * + trả về null hóa đơn đó đã bị xóa hoặc đã chuyển sang trạng thái bill_type khác
3463
+ * @return Observable object => rsp = {vcode, message, data}
3464
+ * vcode == 0: repaired bill by another device
3465
+ * vcode == 1: changed bill_type by another device
3466
+ * vcode == 2: deleted bill by unknown device
3457
3467
  * @notice : nhớ đóng closeSyncOpeningBill() khi thoát trang hiện tại this.vhQueryCafe.closeSyncOpeningBill();
3458
3468
  */
3459
3469
  observableSyncOpeningBill(id_bill: string, bill_type: number): Observable<unknown>;
@@ -10890,18 +10900,28 @@ export declare class VhQuerySales {
10890
10900
  /**
10891
10901
  * Hàm này dùng để đồng bộ hóa đơn đang mở ở 2 giao diện hoặc 2 thiết bị khác nhau
10892
10902
  * @example:
10893
- * this.vhQuerySales.observableSyncOpeningBill('5fb6780ca2148e09806c5b01', 5)
10894
- .subscribe((bill)=> {
10895
- console.log('observableSyncOpeningBill', bill);
10903
+ * this.vhQueryCafe.observableSyncOpeningBill('5fb6780ca2148e09806c5b01', 5)
10904
+ .subscribe((rsp)=> {
10905
+ if(rsp.vcode === 0){
10906
+ //-----------your code 0-----------
10907
+ let bill = rsp.data;
10908
+ console.log('observableSyncOpeningBill', bill);
10909
+ }else if(rsp.vcode === 1){
10910
+ //-----------your code 1-----------
10911
+ }else if(rsp.vcode === 2){
10912
+ //-----------your code 2-----------
10913
+ }
10896
10914
  },(error:any) => {
10897
10915
  console.log(error);
10898
10916
  })
10899
10917
  * @param id_bill
10900
10918
  * @param bill_type
10901
10919
  * @returns Observable => bill hoặc null;
10902
- * + trả về bill hóa đơn đó đang được sử ở thiết bị khác;
10903
- * + trả về null hóa đơn đó đã bị xóa hoặc đã chuyển sang trạng thái bill_type khác
10904
- * @notice : nhớ đóng closeSyncOpeningBill() khi thoát trang hiện tại
10920
+ * @return Observable object => rsp = {vcode, message, data}
10921
+ * vcode == 0: repaired bill by another device
10922
+ * vcode == 1: changed bill_type by another device
10923
+ * vcode == 2: deleted bill by unknown device
10924
+ * @notice : nhớ đóng closeSyncOpeningBill() khi thoát trang hiện tại this.vhQueryCafe.closeSyncOpeningBill();
10905
10925
  */
10906
10926
  observableSyncOpeningBill(id_bill: string, bill_type: number): Observable<unknown>;
10907
10927
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ionic-vhframeworks",
3
- "version": "4.1.0",
3
+ "version": "4.1.1",
4
4
  "peerDependencies": {},
5
5
  "dependencies": {
6
6
  "tslib": "^2.0.0"