ionic-vhframeworks 4.3.6 → 4.3.7
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 +37 -3
- package/package.json +1 -1
|
@@ -11469,14 +11469,17 @@ export declare class VhQuerySales {
|
|
|
11469
11469
|
getlocalPromotions(): any[];
|
|
11470
11470
|
/**
|
|
11471
11471
|
* @example:
|
|
11472
|
-
*
|
|
11472
|
+
* let date = new Date();
|
|
11473
|
+
* this.vhQuerySales.refreshLocalPromotions(date)
|
|
11473
11474
|
.then(()=>{
|
|
11474
11475
|
do something.....
|
|
11476
|
+
}, error=>{
|
|
11477
|
+
console.log('error', error);
|
|
11475
11478
|
})
|
|
11476
11479
|
* Hàm này refresh giá trị mới nhất cho hàm getlocalPromotion(), getlocalPromotions() trong localstorage
|
|
11477
11480
|
* @return Promise => null
|
|
11478
11481
|
*/
|
|
11479
|
-
refreshLocalPromotions
|
|
11482
|
+
private refreshLocalPromotions;
|
|
11480
11483
|
/**
|
|
11481
11484
|
* @example:
|
|
11482
11485
|
* this.vhQuerySales.addPromotion({name:'Cuối tuần vui vẻ', type:2, active:true, date_start:new Date(), date_end: new Date()})
|
|
@@ -11532,7 +11535,38 @@ export declare class VhQuerySales {
|
|
|
11532
11535
|
})
|
|
11533
11536
|
* @return array(object) = [{},{},..]
|
|
11534
11537
|
*/
|
|
11535
|
-
getPromotions
|
|
11538
|
+
private getPromotions;
|
|
11539
|
+
/**
|
|
11540
|
+
* hàm này trả về danh sách chương trình khuyến mãi diễn ra từ thời gian fromTime đến thời gian toTime
|
|
11541
|
+
* @example:
|
|
11542
|
+
* let fromTime = new Date();
|
|
11543
|
+
* let toTime = new Date('2020-07-01T05:24:00');
|
|
11544
|
+
* this.vhQuerySales.getPromotions_fromTime_toTime(fromTime, toTime, 'all')
|
|
11545
|
+
.then((res)=>{
|
|
11546
|
+
console.log('getPromotions_fromTime_toTime', res);
|
|
11547
|
+
}, error=>{
|
|
11548
|
+
console.log('error', error);
|
|
11549
|
+
})
|
|
11550
|
+
* @param fromTime
|
|
11551
|
+
* @param toTime
|
|
11552
|
+
* @param type: 'all' or 1->8
|
|
11553
|
+
* @return Promise => array(object) = [{},{},..]
|
|
11554
|
+
*/
|
|
11555
|
+
getPromotions_fromTime_toTime(fromTime: any, toTime: any, type: any): Promise<unknown>;
|
|
11556
|
+
/**
|
|
11557
|
+
* hàm này trả về danh sách chương trình khuyến mãi diễn ra tại thời điểm tạo hóa đơn => mỗi lần chỉnh lại thời gian tạo hóa đơn phải gọi hàm này
|
|
11558
|
+
* @example:
|
|
11559
|
+
* let date = new Date();
|
|
11560
|
+
* this.vhQuerySales.getPromotions_byDate(date)
|
|
11561
|
+
.then((res)=>{
|
|
11562
|
+
console.log('getPromotions_byDate', res);
|
|
11563
|
+
}, error=>{
|
|
11564
|
+
console.log('error', error);
|
|
11565
|
+
})
|
|
11566
|
+
* @param date : thơi gian tạo hóa đơn
|
|
11567
|
+
* @return Promise => array(object) = [{},{},..]
|
|
11568
|
+
*/
|
|
11569
|
+
private getPromotions_byDate;
|
|
11536
11570
|
/**
|
|
11537
11571
|
* @example:
|
|
11538
11572
|
* this.vhQuerySales.addPromotion_detail({name:'promition 1'})
|