ionic-vhframeworks 4.4.3 → 4.4.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 +27 -4
- package/package.json +1 -1
|
@@ -13229,14 +13229,29 @@ export declare class VhQuerySales {
|
|
|
13229
13229
|
* @return Promise => array(object) = [{},{},..]
|
|
13230
13230
|
*/
|
|
13231
13231
|
private getPromotions_byDate;
|
|
13232
|
+
/**
|
|
13233
|
+
* Hàm này lấy về tất cả các chương trình khuyến mãi mà có id_product tham gia
|
|
13234
|
+
* @example:
|
|
13235
|
+
* let date = new Date();
|
|
13236
|
+
* this.vhQuerySales.getPromotions_byIDproduct_byDate(id_product, date)
|
|
13237
|
+
.then((promotions)=>{
|
|
13238
|
+
console.log('getPromotions_byIDproduct_byDate', promotions);
|
|
13239
|
+
}, error=>{
|
|
13240
|
+
console.log('error', error);
|
|
13241
|
+
})
|
|
13242
|
+
* @param id_product
|
|
13243
|
+
* @param date : thơi gian tạo hóa đơn
|
|
13244
|
+
* @return Array => array = [{},{},..]
|
|
13245
|
+
*/
|
|
13246
|
+
getPromotions_byIDproduct_byDate(id_product: any, date: any): Promise<unknown>;
|
|
13232
13247
|
/**
|
|
13233
13248
|
* Hàm này đổi mảng Bill_Details sang mảng Bill_Details có chương trình khuyến mãi (nếu có)
|
|
13234
13249
|
* @example:
|
|
13235
13250
|
* let date = new Date();
|
|
13236
13251
|
* this.vhQuerySales.changeBillDetails_toDisplay(bill_details, date)
|
|
13237
|
-
.then((
|
|
13238
|
-
console.log('
|
|
13239
|
-
bill_details = [...
|
|
13252
|
+
.then((bill_details_promotions)=>{
|
|
13253
|
+
console.log('bill_details_promotions', res);
|
|
13254
|
+
bill_details = [...bill_details_promotions];
|
|
13240
13255
|
}, error=>{
|
|
13241
13256
|
console.log('error', error);
|
|
13242
13257
|
})
|
|
@@ -13244,7 +13259,15 @@ export declare class VhQuerySales {
|
|
|
13244
13259
|
* @param date : thơi gian tạo hóa đơn
|
|
13245
13260
|
* @return Array => array = [{},{},..]
|
|
13246
13261
|
*/
|
|
13247
|
-
|
|
13262
|
+
changeBillDetails_withPromotions(bill_details: any, date: any): Promise<unknown>;
|
|
13263
|
+
/**
|
|
13264
|
+
* Hàm này đổi mảng Bill_Details có chương trình khuyến mãi (nếu có) sang mảng Bill_Details thường
|
|
13265
|
+
* @example:
|
|
13266
|
+
* bill_details = this.vhQuerySales.destroyBillDetails_withPromotions(bill_details_promotions)
|
|
13267
|
+
* @param bill_details
|
|
13268
|
+
* @return Array => array = [{},{},..]
|
|
13269
|
+
*/
|
|
13270
|
+
destroyBillDetails_withPromotions(bill_details: any): any;
|
|
13248
13271
|
/**
|
|
13249
13272
|
* @example:
|
|
13250
13273
|
* this.vhQuerySales.addPromotion_detail({name:'promition 1'})
|