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.
- 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 +30 -10
- package/package.json +1 -1
|
@@ -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((
|
|
3448
|
-
|
|
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
|
-
*
|
|
3456
|
-
*
|
|
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.
|
|
10894
|
-
.subscribe((
|
|
10895
|
-
|
|
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
|
-
*
|
|
10903
|
-
*
|
|
10904
|
-
*
|
|
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
|
/**
|