ionic-vhframeworks 3.5.2 → 3.5.6
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 +95 -53
- package/package.json +1 -1
|
@@ -330,6 +330,21 @@ export declare class VhAuth {
|
|
|
330
330
|
* @returns
|
|
331
331
|
*/
|
|
332
332
|
localStorageGET(name: string): any;
|
|
333
|
+
/**
|
|
334
|
+
* @example:
|
|
335
|
+
* this.vhAuth.signUpOwner_Sales('huyleduc92', '123456', '+84909925359',{})
|
|
336
|
+
.then((owner)=>{
|
|
337
|
+
console.log('signUpOwner', owner);
|
|
338
|
+
},error=>{
|
|
339
|
+
console.log('error', error);
|
|
340
|
+
})
|
|
341
|
+
* @param email
|
|
342
|
+
* @param password
|
|
343
|
+
* @param scode
|
|
344
|
+
* @param info
|
|
345
|
+
* @return Promise => owner={}
|
|
346
|
+
*/
|
|
347
|
+
signUpOwner_Sales(email: string, password: string, phoneNumber: string, info: object): Promise<unknown>;
|
|
333
348
|
/**
|
|
334
349
|
* @example:
|
|
335
350
|
* this.vhAuth.signUpOwner('huyleduc92', '123456', '+84909925359',{})
|
|
@@ -3345,6 +3360,7 @@ export declare class VhQueryCafe {
|
|
|
3345
3360
|
*/
|
|
3346
3361
|
getObservableLocalAppSettingNameBranchs(): Observable<unknown>;
|
|
3347
3362
|
/**
|
|
3363
|
+
* Hàm này dùng lấy về tất cả phân quyền ở cấp độ chi nhánh
|
|
3348
3364
|
*@example:
|
|
3349
3365
|
this.vhQueryCafe.getLocalAppSettingNameBranchs()
|
|
3350
3366
|
.then((list)=>{
|
|
@@ -3354,6 +3370,7 @@ export declare class VhQueryCafe {
|
|
|
3354
3370
|
*/
|
|
3355
3371
|
getLocalAppSettingNameBranchs(): any[];
|
|
3356
3372
|
/**
|
|
3373
|
+
* Hàm này dùng lấy về phân quyền ở cấp độ chi nhánh
|
|
3357
3374
|
* @example:
|
|
3358
3375
|
let appsetting = this.vhQueryCafe.getLocalAppSettingNameBranch('info_header_footer_bill');
|
|
3359
3376
|
console.log(appsetting);
|
|
@@ -3369,6 +3386,7 @@ export declare class VhQueryCafe {
|
|
|
3369
3386
|
*/
|
|
3370
3387
|
private getLocalAppSettingBranch;
|
|
3371
3388
|
/**
|
|
3389
|
+
* Hàm này dùng cập nhật phân quyền ở cấp độ chi nhánh
|
|
3372
3390
|
* @example:
|
|
3373
3391
|
this.vhQueryCafe.updateAppSettingNameBranch('info_header_footer_bill',{title:'title',name:'name'})
|
|
3374
3392
|
.then((bool)=>{
|
|
@@ -6677,6 +6695,21 @@ export declare class VhEcommerce {
|
|
|
6677
6695
|
* @returns Promise => obj ={} or null
|
|
6678
6696
|
*/
|
|
6679
6697
|
getSalesOrderDetailShopee(order_sn: string, access_token: string, id_shop: any): Promise<unknown>;
|
|
6698
|
+
/**
|
|
6699
|
+
* Hàm này lấy về tracking_number của một hóa đơn khi đơn chuyển sang trạng thái chờ lấy hàng
|
|
6700
|
+
* @example
|
|
6701
|
+
* this.vhEcommerce.getTrackingNumberShopee('14424213387', '403754acaafc4564a16c19faa32d73c8', 'gsdr3454u54w34tfq')
|
|
6702
|
+
.then((result)=>{
|
|
6703
|
+
console.log('getTrackingNumberShopee', result);
|
|
6704
|
+
},error=>{
|
|
6705
|
+
console.log('error', error);
|
|
6706
|
+
})
|
|
6707
|
+
* @param order_sn
|
|
6708
|
+
* @param access_token
|
|
6709
|
+
* @param id_shop
|
|
6710
|
+
* @returns Promise => obj ={}
|
|
6711
|
+
*/
|
|
6712
|
+
getTrackingNumberShopee(order_sn: string, access_token: string, id_shop: any): Promise<unknown>;
|
|
6680
6713
|
/**
|
|
6681
6714
|
* @example:
|
|
6682
6715
|
* let product = this.vhQuerySales.getlocalProduct(id_product);
|
|
@@ -10015,29 +10048,6 @@ export declare class VhQuerySales {
|
|
|
10015
10048
|
* @Notice bill_type = [1,10,15,30,2,3,9,31]
|
|
10016
10049
|
*/
|
|
10017
10050
|
getReportInputOutputInventory_byTime_byIDProduct(starttime: any, endtime: any, IDproduct: any, IDbranch?: any): Promise<any>;
|
|
10018
|
-
/**
|
|
10019
|
-
* Hàm này dùng trong page LỢI NHUẬN HÀNG HÓA
|
|
10020
|
-
* @example:
|
|
10021
|
-
* this.vhQuerySales.getReportProfit_byTime_byIDProduct(starttime , endtime, 'all', 'tj1iYodbVoShwtEetACx')
|
|
10022
|
-
.then((json)=>{
|
|
10023
|
-
console.log('json', json);
|
|
10024
|
-
})
|
|
10025
|
-
* @param starttime
|
|
10026
|
-
* @param endtime
|
|
10027
|
-
* @param IDproduct: 'all' or id_product;
|
|
10028
|
-
* @param IDbranch: 'all' or id_branch;
|
|
10029
|
-
* @return Promise Array *
|
|
10030
|
-
* @Notice bill_type = [1,10,15,30,2,3,9,31]
|
|
10031
|
-
*/
|
|
10032
|
-
getReportProfit_byTime_byIDProduct(starttime: any, endtime: any, IDproduct: any, IDbranch: any): Promise<any>;
|
|
10033
|
-
private getReportInputOutputInventory_byTime_byIDProduct1;
|
|
10034
|
-
syncInventoryEveryDay_StockBeginning(): Promise<any>;
|
|
10035
|
-
/**
|
|
10036
|
-
* vhQuerySales
|
|
10037
|
-
* @returns
|
|
10038
|
-
*/
|
|
10039
|
-
private syncInventoryEveryDay_Stock1stDayOfMonth;
|
|
10040
|
-
private syncInventoryEveryDay1;
|
|
10041
10051
|
/**
|
|
10042
10052
|
* Hàm này dùng trong page Tồn kho, giá trị tồn kho, doanh số, chi phí nhập hàng tại một thời điểm endtime nào đó
|
|
10043
10053
|
* @example:
|
|
@@ -10058,9 +10068,9 @@ export declare class VhQuerySales {
|
|
|
10058
10068
|
* Hàm này dùng trong page Tồn kho, giá trị tồn kho, doanh số, chi phí nhập hàng tại một thời điểm endtime nào đó -> chi tiết của một sản phẩm nào đó
|
|
10059
10069
|
* @example:
|
|
10060
10070
|
* this.vhQuerySales.getReportInputOutputInventory_Detail_byEndTime_byIDProduct(endtime, 'UTWXdaU3UDq3xq7aK77p')
|
|
10061
|
-
|
|
10062
|
-
|
|
10063
|
-
|
|
10071
|
+
.then((bill_details)=>{
|
|
10072
|
+
console.log('vhbill_details', bill_details);
|
|
10073
|
+
})
|
|
10064
10074
|
* @param starttime
|
|
10065
10075
|
* @param endtime
|
|
10066
10076
|
* @param id_product
|
|
@@ -10069,51 +10079,83 @@ export declare class VhQuerySales {
|
|
|
10069
10079
|
*/
|
|
10070
10080
|
getReportInputOutputInventory_Detail_byEndTime_byIDProduct(endtime: any, id_product: any, IDbranch?: string): Promise<any>;
|
|
10071
10081
|
/**
|
|
10072
|
-
|
|
10073
|
-
|
|
10074
|
-
|
|
10082
|
+
* Hàm này dùng trong page XUẤT-NHẬP-TỒN -> Xuất nhập tồn -> chi tiết
|
|
10083
|
+
* @example:
|
|
10084
|
+
* this.vhQuerySales.getReportInputOutputInventory_Detail_byTime_byIDProduct(starttime , endtime, 'UTWXdaU3UDq3xq7aK77p')
|
|
10075
10085
|
.then((bill_details)=>{
|
|
10076
10086
|
console.log('vhbill_details', bill_details);
|
|
10077
10087
|
})
|
|
10078
|
-
|
|
10079
|
-
|
|
10080
|
-
|
|
10081
|
-
|
|
10082
|
-
|
|
10083
|
-
|
|
10088
|
+
* @param starttime
|
|
10089
|
+
* @param endtime
|
|
10090
|
+
* @param id_product
|
|
10091
|
+
* @param IDbranch
|
|
10092
|
+
* @Notice bill_type = [1,10,15,30,2,3,9,31]
|
|
10093
|
+
*/
|
|
10084
10094
|
getReportInputOutputInventory_Detail_byTime_byIDProduct(starttime: any, endtime: any, id_product: string, IDbranch?: string): Promise<any>;
|
|
10085
10095
|
/**
|
|
10086
|
-
|
|
10087
|
-
|
|
10088
|
-
|
|
10096
|
+
* Hàm này dùng trong page XUẤT-NHẬP-TỒN -> Xuất nhập hàng
|
|
10097
|
+
* @example:
|
|
10098
|
+
* this.vhQuerySales.getReportInputOutput_byTime_byIDProduct(starttime , endtime, 'UTWXdaU3UDq3xq7aK77p')
|
|
10089
10099
|
.then((bill_details)=>{
|
|
10090
10100
|
console.log('vhbill_details', bill_details);
|
|
10091
10101
|
})
|
|
10092
|
-
|
|
10093
|
-
|
|
10094
|
-
|
|
10095
|
-
|
|
10096
|
-
|
|
10097
|
-
|
|
10098
|
-
|
|
10099
|
-
|
|
10100
|
-
|
|
10102
|
+
* @param starttime
|
|
10103
|
+
* @param endtime
|
|
10104
|
+
* @param id_product
|
|
10105
|
+
* @param IDbranch
|
|
10106
|
+
* @return Promise Array
|
|
10107
|
+
* @Notice id_product = 'all' or id_product;
|
|
10108
|
+
* @Notice IDbranch = 'all' or id_branch;
|
|
10109
|
+
* @Notice bill_type = [1,10,15,30,2,3,9,31]
|
|
10110
|
+
*/
|
|
10101
10111
|
getReportInputOutput_byTime_byIDProduct(starttime: any, endtime: any, IDproduct: string, IDbranch?: string): Promise<any>;
|
|
10102
10112
|
/**
|
|
10103
|
-
|
|
10104
|
-
|
|
10105
|
-
|
|
10113
|
+
* Hàm này dùng trong page XUẤT-NHẬP-TỒN -> Xuất nhập hàng -> chi tiết
|
|
10114
|
+
* @example:
|
|
10115
|
+
* this.vhQuerySales.getReportInputOutput_Detail_byTime_byIDProduct(starttime , endtime, 'UTWXdaU3UDq3xq7aK77p')
|
|
10106
10116
|
.then((bill_details)=>{
|
|
10107
10117
|
console.log('vhbill_details', bill_details);
|
|
10108
10118
|
})
|
|
10119
|
+
* @param starttime
|
|
10120
|
+
* @param endtime
|
|
10121
|
+
* @param id_product
|
|
10122
|
+
* @param IDbranch: 'all' or id_branch;
|
|
10123
|
+
* @Notice bill_type = [1,10,15,30,2,3,9,31]
|
|
10124
|
+
*/
|
|
10125
|
+
getReportInputOutput_Detail_byTime_byIDProduct(starttime: any, endtime: any, id_product: string, IDbranch?: string): Promise<any>;
|
|
10126
|
+
/**
|
|
10127
|
+
* Hàm này dùng trong page LỢI NHUẬN HÀNG HÓA
|
|
10128
|
+
* @example:
|
|
10129
|
+
* this.vhQuerySales.getReportProfit_byTime_byIDProduct(starttime , endtime, 'all', 'tj1iYodbVoShwtEetACx')
|
|
10130
|
+
.then((json)=>{
|
|
10131
|
+
console.log('json', json);
|
|
10132
|
+
})
|
|
10109
10133
|
* @param starttime
|
|
10110
10134
|
* @param endtime
|
|
10111
|
-
* @param id_product
|
|
10135
|
+
* @param IDproduct: 'all' or id_product;
|
|
10112
10136
|
* @param IDbranch: 'all' or id_branch;
|
|
10137
|
+
* @return Promise Array *
|
|
10113
10138
|
* @Notice bill_type = [1,10,15,30,2,3,9,31]
|
|
10114
10139
|
*/
|
|
10115
|
-
|
|
10116
|
-
private
|
|
10140
|
+
getReportProfit_byTime_byIDProduct(starttime: any, endtime: any, IDproduct: any, IDbranch: any): Promise<any>;
|
|
10141
|
+
private getReportInputOutputInventory_byTime_byIDProduct1;
|
|
10142
|
+
syncInventoryEveryDay_StockBeginning(): Promise<any>;
|
|
10143
|
+
/**
|
|
10144
|
+
* vhQuerySales
|
|
10145
|
+
* @returns
|
|
10146
|
+
*/
|
|
10147
|
+
private syncInventoryEveryDay_Stock1stDayOfMonth;
|
|
10148
|
+
private syncInventoryEveryDay1;
|
|
10149
|
+
/**
|
|
10150
|
+
* @example:
|
|
10151
|
+
* this.vhQuerySales.makeCorrectQuantityProducts()
|
|
10152
|
+
.then((bool)=>{
|
|
10153
|
+
console.log('makeCorrectQuantityProducts', bool);
|
|
10154
|
+
})
|
|
10155
|
+
* @returns
|
|
10156
|
+
*/
|
|
10157
|
+
makeCorrectQuantityProducts(): Promise<any>;
|
|
10158
|
+
private makeCorrectQuantityProductsManyBranch;
|
|
10117
10159
|
/**
|
|
10118
10160
|
* VhQuerySales
|
|
10119
10161
|
* lấy về danh sách sản phẩm sắp hết hàng
|