ionic-vhframeworks 3.8.7 → 3.9.0
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/esm2015/ionic-vhframeworks.js +1 -1
- package/esm2015/lib/ionic-vhframeworks.component.js +1 -1
- package/esm2015/lib/ionic-vhframeworks.module.js +1 -1
- package/esm2015/public-api.js +1 -1
- package/fesm2015/ionic-vhframeworks.js.map +1 -1
- package/ionic-vhframeworks.metadata.json +1 -1
- package/lib/ionic-vhframeworks.service.d.ts +40 -4
- package/package.json +1 -1
|
@@ -7232,6 +7232,7 @@ export declare class VhQuerySales {
|
|
|
7232
7232
|
private restriction_main_package;
|
|
7233
7233
|
private restriction_ecommerce_package;
|
|
7234
7234
|
private restriction_facebook_package;
|
|
7235
|
+
private restriction_warranty_package;
|
|
7235
7236
|
private productlistsendo;
|
|
7236
7237
|
private shoplistsendo;
|
|
7237
7238
|
private productlistlazada;
|
|
@@ -7281,7 +7282,7 @@ export declare class VhQuerySales {
|
|
|
7281
7282
|
.then((bool)=>{
|
|
7282
7283
|
console.log('bool', bool);
|
|
7283
7284
|
})
|
|
7284
|
-
* @return Promise => null
|
|
7285
|
+
* @return Promise => null/error
|
|
7285
7286
|
*/
|
|
7286
7287
|
private refreshRestrictionMainPackage;
|
|
7287
7288
|
/**
|
|
@@ -7298,7 +7299,7 @@ export declare class VhQuerySales {
|
|
|
7298
7299
|
.then((bool)=>{
|
|
7299
7300
|
console.log('bool', bool);
|
|
7300
7301
|
})
|
|
7301
|
-
* @return Promise => null
|
|
7302
|
+
* @return Promise => null/error
|
|
7302
7303
|
*/
|
|
7303
7304
|
private refreshRestrictionEcommercePackage;
|
|
7304
7305
|
/**
|
|
@@ -7326,6 +7327,23 @@ export declare class VhQuerySales {
|
|
|
7326
7327
|
*/
|
|
7327
7328
|
getLocalRestrictionFacebookPackage(): any;
|
|
7328
7329
|
/**
|
|
7330
|
+
* @description: hàm này lấy về những hạn chế của gói warranty_package (khách trả phí mua gói sử dụng warranty, mỗi gói sẽ có nhưng hạn chế khác nhau về show_report_duration)
|
|
7331
|
+
* @example
|
|
7332
|
+
* this.refreshRestrictionWarrantyPackage()
|
|
7333
|
+
.then((bool)=>{
|
|
7334
|
+
console.log('bool', bool);
|
|
7335
|
+
})
|
|
7336
|
+
* @return Promise => null
|
|
7337
|
+
*/
|
|
7338
|
+
private refreshRestrictionWarrantyPackage;
|
|
7339
|
+
/**
|
|
7340
|
+
* @description: hàm này lấy về những hạn chế của gói warranty_package trong localstorage
|
|
7341
|
+
* @example
|
|
7342
|
+
* let restriction_warranty_package = this.vhQuerySales.getLocalRestrictionWarrantyPackage();
|
|
7343
|
+
* @return Object => obj ={} or null
|
|
7344
|
+
*/
|
|
7345
|
+
getLocalRestrictionWarrantyPackage(): any;
|
|
7346
|
+
/**
|
|
7329
7347
|
* Hàm callback BÌNH LUẬN trên fanpage có id là id_fanpage
|
|
7330
7348
|
* @example:
|
|
7331
7349
|
* this.vhQuerySales.observableWebhookFeedFacebook('102622138931525').subscribe((entry:any) => {
|
|
@@ -10260,7 +10278,7 @@ export declare class VhQuerySales {
|
|
|
10260
10278
|
* @example:
|
|
10261
10279
|
* let time = new Date();
|
|
10262
10280
|
* time.setDate(time.getDate()-7);
|
|
10263
|
-
* this.vhQuerySales.getPayments({id_store:{$eq:
|
|
10281
|
+
* this.vhQuerySales.getPayments({id_store: {$eq: this.vhAuth.getUser()._id}, payment_type:{$eq:5}}, {},{},0)
|
|
10264
10282
|
.then((payments)=>{
|
|
10265
10283
|
console.log('getPayments', payments);
|
|
10266
10284
|
})
|
|
@@ -10926,7 +10944,25 @@ export declare class VhQuerySales {
|
|
|
10926
10944
|
* @return Promise JSON(array) => json.docs = [obj, obj, obj....]; obj ={index, id_product, name, barcode, unit, img, id_customer, quantity, sales_btax, sales_atax}
|
|
10927
10945
|
*/
|
|
10928
10946
|
getReportSales_Customers_byProducts(starttime: any, endtime: any, id_customer: any, IDbranch?: string): Promise<any>;
|
|
10929
|
-
|
|
10947
|
+
/**
|
|
10948
|
+
* @Usage Hàm này dùng trong phân tích số liệu từ doanh số bán hàng trên mỗi sàn TMĐT 3 THÁNG, 3 TUẦN gần nhất
|
|
10949
|
+
* @example
|
|
10950
|
+
* let endtime = new Date();
|
|
10951
|
+
let starttime = new Date('2020-07-01T05:24:00');
|
|
10952
|
+
this.vhQuerySales.getReportSales_Customers_byProducts(starttime, endtime, '9879657432', 'shopee', '7YLcm0cFKLu2KaQQ8cyv')
|
|
10953
|
+
.then((reportsales)=>{
|
|
10954
|
+
console.log('reportsales', reportsales);
|
|
10955
|
+
console.log('reportsales.docs[0]', reportsales.docs[0]);
|
|
10956
|
+
})
|
|
10957
|
+
* @param starttime
|
|
10958
|
+
* @param endtime
|
|
10959
|
+
* @param id_customer
|
|
10960
|
+
* @param id_shop
|
|
10961
|
+
* @param ecommerce: 'shopee'/'lazada'/'tiki'/'sendo'
|
|
10962
|
+
* @param IDbranch : 'all' or id_branch
|
|
10963
|
+
* @return Promise JSON(array) => json.docs = [obj, obj, obj....]; obj ={index, id_product, name, barcode, unit, img, id_customer, quantity, sales_btax, sales_atax}
|
|
10964
|
+
*/
|
|
10965
|
+
getReportSales_Customers_byProducts_Analytics(starttime: any, endtime: any, id_customer: string, id_shop: string, ecommerce: string, IDbranch: string): Promise<any>;
|
|
10930
10966
|
/**
|
|
10931
10967
|
* @Usage Hàm này dùng trong page DOANH SỐ KHÁCH HÀNG (layer 3) -> 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 -> Chọn một sản phẩm trong list tiếp theo hiện ra
|
|
10932
10968
|
* @example:
|