ionic-vhframeworks 9.8.5 → 9.8.7
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.
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
export declare function checkSales_addProductAndSubsProduct(product: any, subProductArray: any): boolean;
|
|
2
2
|
export declare function checkSales_addSubProduct(id_product: string, subProduct: any): boolean;
|
|
3
3
|
export declare function checkSales_updateSubProduct(id_subproduct: string, value: any): boolean;
|
|
4
|
-
export declare function
|
|
5
|
-
export declare function
|
|
4
|
+
export declare function checkSales_updateProduct_Type3(id_product: string, value: any): boolean;
|
|
5
|
+
export declare function checkSales_updateProduct_Type3_fw(id_product: string, value: any): boolean;
|
|
6
6
|
export declare function checkSales_updateProduct_Type2(id_product: string, value: any): boolean;
|
|
7
7
|
export declare function checkSales_updateProduct_Type5(id_product: string, value: any): boolean;
|
|
8
8
|
export declare function checkCafe_addProductAndSubsProduct_type1(product: any, subProductArray: any): boolean;
|
|
@@ -345,6 +345,12 @@ export declare class VhAlgorithm {
|
|
|
345
345
|
* Hàm bỏ tất cả các ký tự trống trong chuỗi
|
|
346
346
|
*/
|
|
347
347
|
removeAllSpaces(str: string): string;
|
|
348
|
+
/**
|
|
349
|
+
* Hàm trả ra tất cả chuỗi con liên tiếp từ 2 từ trở lên
|
|
350
|
+
* @param str
|
|
351
|
+
* @returns array
|
|
352
|
+
*/
|
|
353
|
+
getWordSubstrings(str: string): string[];
|
|
348
354
|
/**
|
|
349
355
|
* Hàm này lấy về 1 unit của sản phẩm theo ratio truyền vào
|
|
350
356
|
* @example
|
|
@@ -2596,6 +2602,7 @@ export declare class VhQueryCafe {
|
|
|
2596
2602
|
* @param obj
|
|
2597
2603
|
*/
|
|
2598
2604
|
private syncRaw_Detail_ProductInsert;
|
|
2605
|
+
private syncRaw_Detail_ProductUpdate;
|
|
2599
2606
|
/**
|
|
2600
2607
|
* VhQueryCafe
|
|
2601
2608
|
* @returns
|
|
@@ -3043,6 +3050,18 @@ export declare class VhQueryCafe {
|
|
|
3043
3050
|
* @return Promise => null
|
|
3044
3051
|
*/
|
|
3045
3052
|
refreshLocalProducts(): any;
|
|
3053
|
+
/**
|
|
3054
|
+
* Hàm này dùng để đồng bộ dữ liệu ẩn (delete_hidden = true) từ database về local
|
|
3055
|
+
* @example:
|
|
3056
|
+
* this.vhQueryCafe.refreshLocalProducts_Delete_Hidden(3)
|
|
3057
|
+
.then(()=>{
|
|
3058
|
+
do something.....
|
|
3059
|
+
})
|
|
3060
|
+
* Hàm này refresh giá trị mới nhất cho hàm getlocalProduct(), getlocalProducts() trong localstorage
|
|
3061
|
+
* @param type
|
|
3062
|
+
* @return Promise => null
|
|
3063
|
+
*/
|
|
3064
|
+
refreshLocalProducts_Delete_Hidden(type: any): any;
|
|
3046
3065
|
/**
|
|
3047
3066
|
* @example:
|
|
3048
3067
|
* this.vhQueryCafe.addProduct({name:'camera 2', quantity:20, price:200000})
|
|
@@ -23197,6 +23216,7 @@ export declare class VhQuerySales {
|
|
|
23197
23216
|
* @param obj
|
|
23198
23217
|
*/
|
|
23199
23218
|
private syncRaw_Detail_ProductInsert;
|
|
23219
|
+
private syncRaw_Detail_ProductUpdate;
|
|
23200
23220
|
/**
|
|
23201
23221
|
* vhQuerySales
|
|
23202
23222
|
* @returns
|
|
@@ -23359,6 +23379,18 @@ export declare class VhQuerySales {
|
|
|
23359
23379
|
* @return Promise => null
|
|
23360
23380
|
*/
|
|
23361
23381
|
refreshLocalProducts(): any;
|
|
23382
|
+
/**
|
|
23383
|
+
* Hàm này dùng để đồng bộ dữ liệu ẩn (delete_hidden = true) từ database về local
|
|
23384
|
+
* @example:
|
|
23385
|
+
* this.vhQuerySales.refreshLocalProducts_Delete_Hidden(3)
|
|
23386
|
+
.then(()=>{
|
|
23387
|
+
do something.....
|
|
23388
|
+
})
|
|
23389
|
+
* Hàm này refresh giá trị mới nhất cho hàm getlocalProduct(), getlocalProducts() trong localstorage
|
|
23390
|
+
* @param type
|
|
23391
|
+
* @return Promise => null
|
|
23392
|
+
*/
|
|
23393
|
+
refreshLocalProducts_Delete_Hidden(type: any): any;
|
|
23362
23394
|
/**
|
|
23363
23395
|
* @example:
|
|
23364
23396
|
* this.vhQuerySales.addProduct({name:'camera 2', quantity:20, price:200000})
|