ionic-vhframeworks 3.6.4 → 3.6.8
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 +80 -15
- package/package.json +1 -1
|
@@ -6537,6 +6537,23 @@ export declare class VhEcommerce {
|
|
|
6537
6537
|
private shopeepricecomparinglist;
|
|
6538
6538
|
private callbacklazadapricecomparing;
|
|
6539
6539
|
constructor(vhmongo_firebase: Vhmongo_firebase);
|
|
6540
|
+
/**
|
|
6541
|
+
* @notice : lấy thông tin vận đơn (mã code người gửi , mã code người nhận, địa chỉ người nhận...)
|
|
6542
|
+
* @example:
|
|
6543
|
+
let order_sn = '2112156RC1JN5Y';
|
|
6544
|
+
let access_token = '98efa569a4731bb67a8f76fed8808d66';
|
|
6545
|
+
let shop_id = '894793475932';
|
|
6546
|
+
this.vhEcommerce.getShippingDocumentShopee( order_sn, access_token, shop_id).then((result)=>{
|
|
6547
|
+
console.log('result', result);
|
|
6548
|
+
},error=>{
|
|
6549
|
+
console.log('error', error);
|
|
6550
|
+
})
|
|
6551
|
+
* @param order_sn
|
|
6552
|
+
* @param access_token
|
|
6553
|
+
* @param shop_id
|
|
6554
|
+
* @returns Promise
|
|
6555
|
+
*/
|
|
6556
|
+
getShippingDocumentShopee(order_sn: string, access_token: string, shop_id: string): Promise<unknown>;
|
|
6540
6557
|
/**
|
|
6541
6558
|
* @notice : Lấy địa chỉ + thời gian lấy hàng
|
|
6542
6559
|
* @example:
|
|
@@ -6980,6 +6997,18 @@ export declare class VhQuerySales {
|
|
|
6980
6997
|
private subjectwarrantys;
|
|
6981
6998
|
constructor(vhmongo_firebase: Vhmongo_firebase, vhQuery: VhQuery, vhAuth: VhAuth, vhAlgorithm: VhAlgorithm, iap2: InAppPurchase2, platform: Platform);
|
|
6982
6999
|
/**------------------------TIKI Ecommerce-------------------------- */
|
|
7000
|
+
/**
|
|
7001
|
+
* @example:
|
|
7002
|
+
* this.vhQuerySales.GetShippingStampForDropshipTiki(code, access_token).then((result)=>{
|
|
7003
|
+
console.log('result', result);
|
|
7004
|
+
},error=>{
|
|
7005
|
+
console.log('error', error);
|
|
7006
|
+
})
|
|
7007
|
+
* @param code :string
|
|
7008
|
+
* @param access_token :string
|
|
7009
|
+
* @returns Promise
|
|
7010
|
+
*/
|
|
7011
|
+
GetShippingStampForDropshipTiki(code: string, access_token: string): Promise<unknown>;
|
|
6983
7012
|
/**
|
|
6984
7013
|
* @example:
|
|
6985
7014
|
* this.vhQuerySales.getSellerInventoriesForConfirmationTiki(access_token).then((result)=>{
|
|
@@ -10084,21 +10113,57 @@ export declare class VhQuerySales {
|
|
|
10084
10113
|
*/
|
|
10085
10114
|
getReportSales_Products_byProduct(starttime: any, endtime: any, id_product: any, IDbranch?: string): Promise<any>;
|
|
10086
10115
|
/**
|
|
10087
|
-
|
|
10088
|
-
|
|
10089
|
-
|
|
10090
|
-
|
|
10091
|
-
|
|
10092
|
-
|
|
10093
|
-
|
|
10094
|
-
|
|
10095
|
-
|
|
10096
|
-
|
|
10097
|
-
|
|
10098
|
-
|
|
10099
|
-
|
|
10100
|
-
|
|
10101
|
-
|
|
10116
|
+
* @Usage :Hàm này dùng trong page CHIẾT KHẤU KHÁCH HÀNG -> Chọn TẤT CẢ hoặc MỘT khách hàng
|
|
10117
|
+
* @notice : Mỗi công thức chiết khấu có 5 mức (level1, level2, level3, level4, level5), giá trị doanh số (sales) level sau phải lơn hơn level trước
|
|
10118
|
+
* @example :
|
|
10119
|
+
* let endtime = new Date();
|
|
10120
|
+
let starttime = new Date('2020-07-01T05:24:00');
|
|
10121
|
+
this.vhQuerySales.getReportDiscount_Customers(starttime, endtime, '7YLcm0cFKLu2KaQQ8cyv')
|
|
10122
|
+
.then((discounts)=>{
|
|
10123
|
+
console.log('discounts', discounts);
|
|
10124
|
+
console.log('discounts.docs[0]', discounts.docs[0]);
|
|
10125
|
+
})
|
|
10126
|
+
* @param starttime
|
|
10127
|
+
* @param endtime
|
|
10128
|
+
* @param IDcustomer : 'all' or id_customer
|
|
10129
|
+
* @param IDbranch : 'all' or id_branch
|
|
10130
|
+
* @return Promise JSON(array) => json.docs = [obj, obj, obj....]; obj ={index, name, img, discount_name,sales_btax, discount_btax, sales_atax, discount_atax}
|
|
10131
|
+
*/
|
|
10132
|
+
getReportDiscount_Customers(starttime: any, endtime: any, IDcustomer: any, IDbranch?: string): Promise<any>;
|
|
10133
|
+
/**
|
|
10134
|
+
* @Usage :Hàm này dùng trong page HOA HỒNG NHÂN VIÊN -> Chọn TẤT CẢ hoặc MỘT nhân viên
|
|
10135
|
+
* @notice : Mỗi công thức chiết khấu có 5 mức (level1, level2, level3, level4, level5), giá trị doanh số (sales) level sau phải lơn hơn level trước
|
|
10136
|
+
* @example :
|
|
10137
|
+
* let endtime = new Date();
|
|
10138
|
+
let starttime = new Date('2020-07-01T05:24:00');
|
|
10139
|
+
this.vhQuerySales.getReportCommission_Employees(starttime, endtime, '7YLcm0cFKLu2KaQQ8cyv')
|
|
10140
|
+
.then((commissions)=>{
|
|
10141
|
+
console.log('commissions', commissions);
|
|
10142
|
+
console.log('commissions.docs[0]', commissions.docs[0]);
|
|
10143
|
+
})
|
|
10144
|
+
* @param starttime
|
|
10145
|
+
* @param endtime
|
|
10146
|
+
* @param IDemployee : 'all' or id_employee
|
|
10147
|
+
* @param IDbranch : 'all' or id_branch
|
|
10148
|
+
* @return Promise JSON(array) => json.docs = [obj, obj, obj....]; obj ={index, name, img, commission_name, sales_btax, commission_btax, sales_atax, commission_atax}
|
|
10149
|
+
*/
|
|
10150
|
+
getReportCommission_Employees(starttime: any, endtime: any, IDemployee: any, IDbranch?: string): Promise<any>;
|
|
10151
|
+
/**
|
|
10152
|
+
* @Usage Hàm này dùng trong page DOANH SỐ KHÁCH HÀNG (layer 1) -> Chọn TẤT CẢ hoặc MỘT khách hàng
|
|
10153
|
+
* @example
|
|
10154
|
+
* let endtime = new Date();
|
|
10155
|
+
let starttime = new Date('2020-07-01T05:24:00');
|
|
10156
|
+
this.vhQuerySales.getReportSales_Customers_byCustomers(starttime, endtime, '7YLcm0cFKLu2KaQQ8cyv')
|
|
10157
|
+
.then((reportsales)=>{
|
|
10158
|
+
console.log('reportsales', reportsales);
|
|
10159
|
+
console.log('reportsales.docs[0]', reportsales.docs[0]);
|
|
10160
|
+
})
|
|
10161
|
+
* @param starttime
|
|
10162
|
+
* @param endtime
|
|
10163
|
+
* @param IDcustomer : 'all' or id_customer
|
|
10164
|
+
* @param IDbranch : 'all' or id_branch
|
|
10165
|
+
* @return Promise JSON(array) => json.docs = [obj, obj, obj....]; obj ={index, name, img, id_customer, quantity, sales_btax, sales_atax}
|
|
10166
|
+
*/
|
|
10102
10167
|
getReportSales_Customers_byCustomers(starttime: any, endtime: any, IDcustomer: any, IDbranch?: string): Promise<any>;
|
|
10103
10168
|
/**
|
|
10104
10169
|
* @Usage Hàm này dùng trong page DOANH SỐ KHÁCH HÀNG (layer 2) -> Chọn TẤT CẢ hoặc MỘT khách hàng -> Chọn một khách hàng trong list hiện ra
|