ionic-vhframeworks 3.6.5 → 3.6.9
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 +63 -15
- package/package.json +1 -1
|
@@ -6997,6 +6997,18 @@ export declare class VhQuerySales {
|
|
|
6997
6997
|
private subjectwarrantys;
|
|
6998
6998
|
constructor(vhmongo_firebase: Vhmongo_firebase, vhQuery: VhQuery, vhAuth: VhAuth, vhAlgorithm: VhAlgorithm, iap2: InAppPurchase2, platform: Platform);
|
|
6999
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>;
|
|
7000
7012
|
/**
|
|
7001
7013
|
* @example:
|
|
7002
7014
|
* this.vhQuerySales.getSellerInventoriesForConfirmationTiki(access_token).then((result)=>{
|
|
@@ -10101,21 +10113,57 @@ export declare class VhQuerySales {
|
|
|
10101
10113
|
*/
|
|
10102
10114
|
getReportSales_Products_byProduct(starttime: any, endtime: any, id_product: any, IDbranch?: string): Promise<any>;
|
|
10103
10115
|
/**
|
|
10104
|
-
|
|
10105
|
-
|
|
10106
|
-
|
|
10107
|
-
|
|
10108
|
-
|
|
10109
|
-
|
|
10110
|
-
|
|
10111
|
-
|
|
10112
|
-
|
|
10113
|
-
|
|
10114
|
-
|
|
10115
|
-
|
|
10116
|
-
|
|
10117
|
-
|
|
10118
|
-
|
|
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
|
+
*/
|
|
10119
10167
|
getReportSales_Customers_byCustomers(starttime: any, endtime: any, IDcustomer: any, IDbranch?: string): Promise<any>;
|
|
10120
10168
|
/**
|
|
10121
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
|