ionic-vhframeworks 3.4.9 → 3.5.3
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 +114 -56
- package/package.json +1 -1
|
@@ -982,6 +982,7 @@ export declare class VhQueryCafe {
|
|
|
982
982
|
private subjecttaxs;
|
|
983
983
|
private subjectareas;
|
|
984
984
|
private subjecttables;
|
|
985
|
+
private callbackdispatcher;
|
|
985
986
|
/**
|
|
986
987
|
* @Nghiệp vụ tạo (bill_type 5->1), hủy đơn hàng bán món ăn (dùng hàm)
|
|
987
988
|
* {createBill, getBill} -> {createBill_detail, updateBill_detail, deleteBill_detail} -> {saveBill_Billdetail, deleteBill_Billdetail}
|
|
@@ -1041,7 +1042,6 @@ export declare class VhQueryCafe {
|
|
|
1041
1042
|
*/
|
|
1042
1043
|
sendImageToAppCare(image: string): Promise<unknown>;
|
|
1043
1044
|
startLocalStorage(): Promise<any>;
|
|
1044
|
-
callbackdispatcher: any;
|
|
1045
1045
|
observableDispatcher(ptype: any): Observable<any>;
|
|
1046
1046
|
/**
|
|
1047
1047
|
* @example:
|
|
@@ -6513,7 +6513,49 @@ export declare class VhEcommerce {
|
|
|
6513
6513
|
private vhmongo_firebase;
|
|
6514
6514
|
private productlistshopees;
|
|
6515
6515
|
private shoplistshopee;
|
|
6516
|
+
private lazadapricecomparinglist;
|
|
6517
|
+
private tikipricecomparinglist;
|
|
6518
|
+
private sendopricecomparinglist;
|
|
6519
|
+
private shopeepricecomparinglist;
|
|
6520
|
+
private callbacklazadapricecomparing;
|
|
6516
6521
|
constructor(vhmongo_firebase: Vhmongo_firebase);
|
|
6522
|
+
/**
|
|
6523
|
+
* @example:
|
|
6524
|
+
* this.vhEcommerce.observableLazadaPriceComparing('5fb6780ca2148e09806c5b01')
|
|
6525
|
+
.subscribe((data)=> {
|
|
6526
|
+
console.log('observableLazadaPriceComparing', data);
|
|
6527
|
+
},(error:any) => {
|
|
6528
|
+
console.log(error);
|
|
6529
|
+
})
|
|
6530
|
+
* @param id_branch
|
|
6531
|
+
* @returns Observable =>
|
|
6532
|
+
*/
|
|
6533
|
+
observableLazadaPriceComparing(id_branch: string): Observable<unknown>;
|
|
6534
|
+
/**
|
|
6535
|
+
* @example:
|
|
6536
|
+
* this.vhEcommerce.closeLazadaPriceComparing();
|
|
6537
|
+
* disconnect LazadaPriceComparing in the APP
|
|
6538
|
+
* @returns void
|
|
6539
|
+
*/
|
|
6540
|
+
closeLazadaPriceComparing(): void;
|
|
6541
|
+
/**
|
|
6542
|
+
* let lazadapricecomparinglist = this.vhEcommerce.getLocalLazadaPriceComparing();
|
|
6543
|
+
* @returns Array
|
|
6544
|
+
*/
|
|
6545
|
+
getLocalLazadaPriceComparing(): any;
|
|
6546
|
+
/**
|
|
6547
|
+
* @example:
|
|
6548
|
+
* this.vhEcommerce.restartEcommercePriceComparingMACHINE('5fb6780ca2148e09806c5b01')
|
|
6549
|
+
.then((bool)=>{
|
|
6550
|
+
console.log('restartEcommercePriceComparingMACHINE', bool);
|
|
6551
|
+
}, error=>{
|
|
6552
|
+
console.log('error', error);
|
|
6553
|
+
})
|
|
6554
|
+
* @param id_billdetail
|
|
6555
|
+
* @param data
|
|
6556
|
+
* @return Promise => bool = true or false
|
|
6557
|
+
*/
|
|
6558
|
+
restartEcommercePriceComparingMACHINE(): Promise<unknown>;
|
|
6517
6559
|
/**
|
|
6518
6560
|
* Lấy về tất cả các shops lazada, sendo, tiki, shopee, dùng trong cấu hình gian hàng
|
|
6519
6561
|
* @example:
|
|
@@ -6635,6 +6677,21 @@ export declare class VhEcommerce {
|
|
|
6635
6677
|
* @returns Promise => obj ={} or null
|
|
6636
6678
|
*/
|
|
6637
6679
|
getSalesOrderDetailShopee(order_sn: string, access_token: string, id_shop: any): Promise<unknown>;
|
|
6680
|
+
/**
|
|
6681
|
+
* 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
|
|
6682
|
+
* @example
|
|
6683
|
+
* this.vhEcommerce.getTrackingNumberShopee('14424213387', '403754acaafc4564a16c19faa32d73c8', 'gsdr3454u54w34tfq')
|
|
6684
|
+
.then((result)=>{
|
|
6685
|
+
console.log('getTrackingNumberShopee', result);
|
|
6686
|
+
},error=>{
|
|
6687
|
+
console.log('error', error);
|
|
6688
|
+
})
|
|
6689
|
+
* @param order_sn
|
|
6690
|
+
* @param access_token
|
|
6691
|
+
* @param id_shop
|
|
6692
|
+
* @returns Promise => obj ={}
|
|
6693
|
+
*/
|
|
6694
|
+
getTrackingNumberShopee(order_sn: string, access_token: string, id_shop: any): Promise<unknown>;
|
|
6638
6695
|
/**
|
|
6639
6696
|
* @example:
|
|
6640
6697
|
* let product = this.vhQuerySales.getlocalProduct(id_product);
|
|
@@ -7123,9 +7180,10 @@ export declare class VhQuerySales {
|
|
|
7123
7180
|
<Product>
|
|
7124
7181
|
<Skus>
|
|
7125
7182
|
<Sku>
|
|
7126
|
-
<
|
|
7127
|
-
<
|
|
7128
|
-
<
|
|
7183
|
+
<ItemId>383144083</ItemId>
|
|
7184
|
+
<SkuId>647304827</SkuId>
|
|
7185
|
+
<SellerSku>ThietBiBaoDongChongTromHongNgoaiHT1AS</SellerSku>
|
|
7186
|
+
<price>268000</price>
|
|
7129
7187
|
</Sku>
|
|
7130
7188
|
</Skus>
|
|
7131
7189
|
</Product>
|
|
@@ -9972,29 +10030,6 @@ export declare class VhQuerySales {
|
|
|
9972
10030
|
* @Notice bill_type = [1,10,15,30,2,3,9,31]
|
|
9973
10031
|
*/
|
|
9974
10032
|
getReportInputOutputInventory_byTime_byIDProduct(starttime: any, endtime: any, IDproduct: any, IDbranch?: any): Promise<any>;
|
|
9975
|
-
/**
|
|
9976
|
-
* Hàm này dùng trong page LỢI NHUẬN HÀNG HÓA
|
|
9977
|
-
* @example:
|
|
9978
|
-
* this.vhQuerySales.getReportProfit_byTime_byIDProduct(starttime , endtime, 'all', 'tj1iYodbVoShwtEetACx')
|
|
9979
|
-
.then((json)=>{
|
|
9980
|
-
console.log('json', json);
|
|
9981
|
-
})
|
|
9982
|
-
* @param starttime
|
|
9983
|
-
* @param endtime
|
|
9984
|
-
* @param IDproduct: 'all' or id_product;
|
|
9985
|
-
* @param IDbranch: 'all' or id_branch;
|
|
9986
|
-
* @return Promise Array *
|
|
9987
|
-
* @Notice bill_type = [1,10,15,30,2,3,9,31]
|
|
9988
|
-
*/
|
|
9989
|
-
getReportProfit_byTime_byIDProduct(starttime: any, endtime: any, IDproduct: any, IDbranch: any): Promise<any>;
|
|
9990
|
-
private getReportInputOutputInventory_byTime_byIDProduct1;
|
|
9991
|
-
syncInventoryEveryDay_StockBeginning(): Promise<any>;
|
|
9992
|
-
/**
|
|
9993
|
-
* vhQuerySales
|
|
9994
|
-
* @returns
|
|
9995
|
-
*/
|
|
9996
|
-
private syncInventoryEveryDay_Stock1stDayOfMonth;
|
|
9997
|
-
private syncInventoryEveryDay1;
|
|
9998
10033
|
/**
|
|
9999
10034
|
* 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 đó
|
|
10000
10035
|
* @example:
|
|
@@ -10015,9 +10050,9 @@ export declare class VhQuerySales {
|
|
|
10015
10050
|
* 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 đó
|
|
10016
10051
|
* @example:
|
|
10017
10052
|
* this.vhQuerySales.getReportInputOutputInventory_Detail_byEndTime_byIDProduct(endtime, 'UTWXdaU3UDq3xq7aK77p')
|
|
10018
|
-
|
|
10019
|
-
|
|
10020
|
-
|
|
10053
|
+
.then((bill_details)=>{
|
|
10054
|
+
console.log('vhbill_details', bill_details);
|
|
10055
|
+
})
|
|
10021
10056
|
* @param starttime
|
|
10022
10057
|
* @param endtime
|
|
10023
10058
|
* @param id_product
|
|
@@ -10026,50 +10061,73 @@ export declare class VhQuerySales {
|
|
|
10026
10061
|
*/
|
|
10027
10062
|
getReportInputOutputInventory_Detail_byEndTime_byIDProduct(endtime: any, id_product: any, IDbranch?: string): Promise<any>;
|
|
10028
10063
|
/**
|
|
10029
|
-
|
|
10030
|
-
|
|
10031
|
-
|
|
10064
|
+
* Hàm này dùng trong page XUẤT-NHẬP-TỒN -> Xuất nhập tồn -> chi tiết
|
|
10065
|
+
* @example:
|
|
10066
|
+
* this.vhQuerySales.getReportInputOutputInventory_Detail_byTime_byIDProduct(starttime , endtime, 'UTWXdaU3UDq3xq7aK77p')
|
|
10032
10067
|
.then((bill_details)=>{
|
|
10033
10068
|
console.log('vhbill_details', bill_details);
|
|
10034
10069
|
})
|
|
10035
|
-
|
|
10036
|
-
|
|
10037
|
-
|
|
10038
|
-
|
|
10039
|
-
|
|
10040
|
-
|
|
10070
|
+
* @param starttime
|
|
10071
|
+
* @param endtime
|
|
10072
|
+
* @param id_product
|
|
10073
|
+
* @param IDbranch
|
|
10074
|
+
* @Notice bill_type = [1,10,15,30,2,3,9,31]
|
|
10075
|
+
*/
|
|
10041
10076
|
getReportInputOutputInventory_Detail_byTime_byIDProduct(starttime: any, endtime: any, id_product: string, IDbranch?: string): Promise<any>;
|
|
10042
10077
|
/**
|
|
10043
|
-
|
|
10044
|
-
|
|
10045
|
-
|
|
10078
|
+
* Hàm này dùng trong page XUẤT-NHẬP-TỒN -> Xuất nhập hàng
|
|
10079
|
+
* @example:
|
|
10080
|
+
* this.vhQuerySales.getReportInputOutput_byTime_byIDProduct(starttime , endtime, 'UTWXdaU3UDq3xq7aK77p')
|
|
10046
10081
|
.then((bill_details)=>{
|
|
10047
10082
|
console.log('vhbill_details', bill_details);
|
|
10048
10083
|
})
|
|
10049
|
-
|
|
10050
|
-
|
|
10051
|
-
|
|
10052
|
-
|
|
10053
|
-
|
|
10054
|
-
|
|
10055
|
-
|
|
10056
|
-
|
|
10057
|
-
|
|
10084
|
+
* @param starttime
|
|
10085
|
+
* @param endtime
|
|
10086
|
+
* @param id_product
|
|
10087
|
+
* @param IDbranch
|
|
10088
|
+
* @return Promise Array
|
|
10089
|
+
* @Notice id_product = 'all' or id_product;
|
|
10090
|
+
* @Notice IDbranch = 'all' or id_branch;
|
|
10091
|
+
* @Notice bill_type = [1,10,15,30,2,3,9,31]
|
|
10092
|
+
*/
|
|
10058
10093
|
getReportInputOutput_byTime_byIDProduct(starttime: any, endtime: any, IDproduct: string, IDbranch?: string): Promise<any>;
|
|
10059
10094
|
/**
|
|
10060
|
-
|
|
10061
|
-
|
|
10062
|
-
|
|
10095
|
+
* Hàm này dùng trong page XUẤT-NHẬP-TỒN -> Xuất nhập hàng -> chi tiết
|
|
10096
|
+
* @example:
|
|
10097
|
+
* this.vhQuerySales.getReportInputOutput_Detail_byTime_byIDProduct(starttime , endtime, 'UTWXdaU3UDq3xq7aK77p')
|
|
10063
10098
|
.then((bill_details)=>{
|
|
10064
10099
|
console.log('vhbill_details', bill_details);
|
|
10065
10100
|
})
|
|
10101
|
+
* @param starttime
|
|
10102
|
+
* @param endtime
|
|
10103
|
+
* @param id_product
|
|
10104
|
+
* @param IDbranch: 'all' or id_branch;
|
|
10105
|
+
* @Notice bill_type = [1,10,15,30,2,3,9,31]
|
|
10106
|
+
*/
|
|
10107
|
+
getReportInputOutput_Detail_byTime_byIDProduct(starttime: any, endtime: any, id_product: string, IDbranch?: string): Promise<any>;
|
|
10108
|
+
/**
|
|
10109
|
+
* Hàm này dùng trong page LỢI NHUẬN HÀNG HÓA
|
|
10110
|
+
* @example:
|
|
10111
|
+
* this.vhQuerySales.getReportProfit_byTime_byIDProduct(starttime , endtime, 'all', 'tj1iYodbVoShwtEetACx')
|
|
10112
|
+
.then((json)=>{
|
|
10113
|
+
console.log('json', json);
|
|
10114
|
+
})
|
|
10066
10115
|
* @param starttime
|
|
10067
10116
|
* @param endtime
|
|
10068
|
-
* @param id_product
|
|
10117
|
+
* @param IDproduct: 'all' or id_product;
|
|
10069
10118
|
* @param IDbranch: 'all' or id_branch;
|
|
10119
|
+
* @return Promise Array *
|
|
10070
10120
|
* @Notice bill_type = [1,10,15,30,2,3,9,31]
|
|
10071
10121
|
*/
|
|
10072
|
-
|
|
10122
|
+
getReportProfit_byTime_byIDProduct(starttime: any, endtime: any, IDproduct: any, IDbranch: any): Promise<any>;
|
|
10123
|
+
private getReportInputOutputInventory_byTime_byIDProduct1;
|
|
10124
|
+
syncInventoryEveryDay_StockBeginning(): Promise<any>;
|
|
10125
|
+
/**
|
|
10126
|
+
* vhQuerySales
|
|
10127
|
+
* @returns
|
|
10128
|
+
*/
|
|
10129
|
+
private syncInventoryEveryDay_Stock1stDayOfMonth;
|
|
10130
|
+
private syncInventoryEveryDay1;
|
|
10073
10131
|
private makeCorrectQuantityProducts;
|
|
10074
10132
|
/**
|
|
10075
10133
|
* VhQuerySales
|