ionic-vhframeworks 4.0.3 → 4.0.4
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 +66 -18
- package/package.json +1 -1
|
@@ -12473,6 +12473,19 @@ export declare class VhQuerySales {
|
|
|
12473
12473
|
* @return Promise => bool = true or false
|
|
12474
12474
|
*/
|
|
12475
12475
|
deleteCouponReleaseDetail(id_coupon_release_detail: any): Promise<unknown>;
|
|
12476
|
+
/**
|
|
12477
|
+
* @example:
|
|
12478
|
+
*
|
|
12479
|
+
* this.vhQuerySales.getCouponReleaseDetail('FBHYWIBDNIUH1321687')
|
|
12480
|
+
.then((res)=>{
|
|
12481
|
+
console.log('getCouponReleaseDetail', res);
|
|
12482
|
+
}, error=>{
|
|
12483
|
+
console.log('error', error);
|
|
12484
|
+
})
|
|
12485
|
+
* @param id_coupon_release_detail
|
|
12486
|
+
* @return Promise => object or null
|
|
12487
|
+
*/
|
|
12488
|
+
getCouponReleaseDetail(id_coupon_release_detail: any): Promise<unknown>;
|
|
12476
12489
|
/**
|
|
12477
12490
|
* hàm này trả về những Coupon Release Detail của đợt coupon đó
|
|
12478
12491
|
* @example:
|
|
@@ -12509,7 +12522,8 @@ export declare class VhQuerySales {
|
|
|
12509
12522
|
*/
|
|
12510
12523
|
private createCouponCode;
|
|
12511
12524
|
/**
|
|
12512
|
-
* hàm này để phát hành nhiều coupon_code theo số lượng truyền vào
|
|
12525
|
+
* hàm này để phát hành nhiều coupon_code theo số lượng truyền vào, và tự động cập nhật trường số lượng đã phát hành (quantity_released) tăng lên
|
|
12526
|
+
* trong collection coupon_release_details
|
|
12513
12527
|
* @example:
|
|
12514
12528
|
let data = {
|
|
12515
12529
|
status :1,
|
|
@@ -12545,8 +12559,9 @@ export declare class VhQuerySales {
|
|
|
12545
12559
|
*/
|
|
12546
12560
|
updateCouponCode(id_coupon_code: any, data: any): Promise<unknown>;
|
|
12547
12561
|
/**
|
|
12562
|
+
* Hàm này chỉ cho phép xóa coupon_code đang ở trạng thái đã phát hành (status ==1),
|
|
12563
|
+
* và cập nhật giảm trường số lượng quantity_released bớt một trong collection coupon_release_details
|
|
12548
12564
|
* @example:
|
|
12549
|
-
*
|
|
12550
12565
|
* this.vhQuerySales.deleteCouponCode('OUHEOIWUYGHIQNIDOUW1359478'})
|
|
12551
12566
|
.then((bool)=>{
|
|
12552
12567
|
console.log('deleteCouponCode', bool);
|
|
@@ -12554,9 +12569,10 @@ export declare class VhQuerySales {
|
|
|
12554
12569
|
console.log('error', error);
|
|
12555
12570
|
})
|
|
12556
12571
|
* @param id_coupon_code
|
|
12572
|
+
* @param id_coupon_release_detail
|
|
12557
12573
|
* @return Promise => boolean = true or false
|
|
12558
12574
|
*/
|
|
12559
|
-
deleteCouponCode(id_coupon_code:
|
|
12575
|
+
deleteCouponCode(id_coupon_code: string, id_coupon_release_detail: string): Promise<unknown>;
|
|
12560
12576
|
/**
|
|
12561
12577
|
* hàm này trả về danh sách coupon code đã phát hành theo mỗi đợt
|
|
12562
12578
|
* @example:
|
|
@@ -12588,7 +12604,7 @@ export declare class VhQuerySales {
|
|
|
12588
12604
|
*/
|
|
12589
12605
|
getCouponCodes_byFields(query: object, projection: object, sort: object, limit: number): Promise<unknown>;
|
|
12590
12606
|
/**
|
|
12591
|
-
* hàm này trả về coupon code đã phát hành theo trường
|
|
12607
|
+
* hàm này trả về coupon code đã phát hành theo trường _id của Coupon code. dùng trong trang bán hàng thanh toán bằng phiếu
|
|
12592
12608
|
* @example:
|
|
12593
12609
|
*
|
|
12594
12610
|
* this.vhQuerySales.getCouponCode('OUHEDW0512'})
|
|
@@ -12598,7 +12614,7 @@ export declare class VhQuerySales {
|
|
|
12598
12614
|
console.log('error', error);
|
|
12599
12615
|
})
|
|
12600
12616
|
* @param id_coupon_code: cũng chính là code
|
|
12601
|
-
* @return Promise =>
|
|
12617
|
+
* @return Promise => obj ={} or null
|
|
12602
12618
|
*/
|
|
12603
12619
|
getCouponCode(id_coupon_code: any): Promise<unknown>;
|
|
12604
12620
|
/**
|
|
@@ -12790,6 +12806,18 @@ export declare class VhQuerySales {
|
|
|
12790
12806
|
* @return Promise Boolean => true or false
|
|
12791
12807
|
*/
|
|
12792
12808
|
deleteVoucherReleaseDetail(id_voucher_release_detail: any): Promise<unknown>;
|
|
12809
|
+
/**
|
|
12810
|
+
* @example:
|
|
12811
|
+
* this.vhQuerySales.getVoucherReleaseDetail("fuMS21I6othUm34385WV")
|
|
12812
|
+
.then((res)=>{
|
|
12813
|
+
console.log('getVoucherReleaseDetail', res);
|
|
12814
|
+
}, error=>{
|
|
12815
|
+
console.log('error', error);
|
|
12816
|
+
})
|
|
12817
|
+
* @param (id_voucher_release_detail)
|
|
12818
|
+
* @return Promise => object or null
|
|
12819
|
+
*/
|
|
12820
|
+
getVoucherReleaseDetail(id_voucher_release_detail: string): Promise<unknown>;
|
|
12793
12821
|
/**
|
|
12794
12822
|
* @example:
|
|
12795
12823
|
* this.vhQuerySales.getVoucherRelaseDetail_byFields( {id_voucher:{$eq: "316OIUHLKMLSDYW235"}}, {}, {}, 0)
|
|
@@ -12827,7 +12855,8 @@ export declare class VhQuerySales {
|
|
|
12827
12855
|
*/
|
|
12828
12856
|
private createVoucherCode;
|
|
12829
12857
|
/**
|
|
12830
|
-
* hàm này để phát hành nhiều voucher_code theo số lượng truyền vào
|
|
12858
|
+
* hàm này để phát hành nhiều voucher_code theo số lượng truyền vào, và tự động cập nhật trường số lượng đã phát hành (quantity_released) tăng lên
|
|
12859
|
+
* trong collection voucher_release_details
|
|
12831
12860
|
* @example:
|
|
12832
12861
|
let data = {
|
|
12833
12862
|
code: '3VU4JW0517',
|
|
@@ -12863,18 +12892,20 @@ export declare class VhQuerySales {
|
|
|
12863
12892
|
*/
|
|
12864
12893
|
updateVoucherCode(id_voucher_code: any, data: any): Promise<unknown>;
|
|
12865
12894
|
/**
|
|
12895
|
+
* Hàm này chỉ cho phép xóa voucher_code đang ở trạng thái đã phát hành (status ==1),
|
|
12896
|
+
* và cập nhật giảm trường số lượng quantity_released bớt một trong collection voucher_release_details
|
|
12866
12897
|
* @example:
|
|
12867
|
-
*
|
|
12868
|
-
* this.vhQuerySales.deleteVoucherCode('OUHEOIWUYGHIQNIDOUW1359478'})
|
|
12898
|
+
* this.vhQuerySales.deleteVoucherCode('BjHxEYPWrB0rPwfj2L9R', 'CBrcRQIL11lwcHBljliW'})
|
|
12869
12899
|
.then((bool)=>{
|
|
12870
12900
|
console.log('deleteVoucherCode', bool);
|
|
12871
12901
|
}, error=>{
|
|
12872
12902
|
console.log('error', error);
|
|
12873
12903
|
})
|
|
12874
12904
|
* @param id_voucher_code
|
|
12905
|
+
* @param id_voucher_release_detail
|
|
12875
12906
|
* @return Promise => boolean = true or false
|
|
12876
12907
|
*/
|
|
12877
|
-
deleteVoucherCode(id_voucher_code:
|
|
12908
|
+
deleteVoucherCode(id_voucher_code: string, id_voucher_release_detail: string): Promise<unknown>;
|
|
12878
12909
|
/**
|
|
12879
12910
|
* hàm này trả về danh sách voucher_codes đã phát hành theo mỗi đợt
|
|
12880
12911
|
* @example:
|
|
@@ -12905,7 +12936,7 @@ export declare class VhQuerySales {
|
|
|
12905
12936
|
*/
|
|
12906
12937
|
getVoucherCodes_byFields(query: object, projection: object, sort: object, limit: number): Promise<unknown>;
|
|
12907
12938
|
/**
|
|
12908
|
-
* hàm này trả về voucher code đã phát hành theo trường
|
|
12939
|
+
* hàm này trả về voucher code đã phát hành theo trường _id của voucher code. dùng trong trang bán hàng để đổi phiếu
|
|
12909
12940
|
* @example:
|
|
12910
12941
|
*
|
|
12911
12942
|
* this.vhQuerySales.getVoucherCode('OUHEDW0512'})
|
|
@@ -12915,7 +12946,7 @@ export declare class VhQuerySales {
|
|
|
12915
12946
|
console.log('error', error);
|
|
12916
12947
|
})
|
|
12917
12948
|
* @param id_voucher_code: cũng chính là code
|
|
12918
|
-
* @return Promise =>
|
|
12949
|
+
* @return Promise => obj ={} or null
|
|
12919
12950
|
*/
|
|
12920
12951
|
getVoucherCode(id_voucher_code: any): Promise<unknown>;
|
|
12921
12952
|
/** Hàm này để đổi voucher từ điểm của khách hàng. Đổi thành công tự động tạo lịch sử đổi điểm của khách hàng
|
|
@@ -13114,6 +13145,19 @@ export declare class VhQuerySales {
|
|
|
13114
13145
|
* @return Promise => bool = true or false
|
|
13115
13146
|
*/
|
|
13116
13147
|
deletePaymentCardReleaseDetail(id_payment_card_release_detail: any): Promise<unknown>;
|
|
13148
|
+
/**
|
|
13149
|
+
* @example:
|
|
13150
|
+
*
|
|
13151
|
+
* this.vhQuerySales.getPaymentCardReleaseDetail('FBHYWIBDNIUH1321687')
|
|
13152
|
+
.then((res)=>{
|
|
13153
|
+
console.log('getPaymentCardReleaseDetail', res);
|
|
13154
|
+
}, error=>{
|
|
13155
|
+
console.log('error', error);
|
|
13156
|
+
})
|
|
13157
|
+
* @param id_payment_card_release_detail
|
|
13158
|
+
* @return Promise => object or null
|
|
13159
|
+
*/
|
|
13160
|
+
getPaymentCardReleaseDetail(id_payment_card_release_detail: any): Promise<unknown>;
|
|
13117
13161
|
/**
|
|
13118
13162
|
* @example:
|
|
13119
13163
|
* this.vhQuerySales.getVoucherRelaseDetail_byFields( {id_payment_card:{$eq: "316OIUHLKMLSDYW235"}}, {}, {}, 0)
|
|
@@ -13150,14 +13194,16 @@ export declare class VhQuerySales {
|
|
|
13150
13194
|
*/
|
|
13151
13195
|
private createPaymentCardCode;
|
|
13152
13196
|
/**
|
|
13153
|
-
* hàm này để phát hành nhiều payment_card_code theo số lượng truyền vào
|
|
13197
|
+
* hàm này để phát hành nhiều payment_card_code theo số lượng truyền vào, và tự động cập nhật trường số lượng đã phát hành (quantity_released) tăng lên
|
|
13198
|
+
* trong collection payment_card_release_details
|
|
13154
13199
|
* @example:
|
|
13155
13200
|
let data = {
|
|
13156
13201
|
date_validity: new Date(),
|
|
13157
13202
|
date_expire: new Date(),
|
|
13158
13203
|
status: 1,
|
|
13159
13204
|
id_payment_card_release_detail: "fuMS21I6othUm34385WV",
|
|
13160
|
-
id_branch: "4zFGhVUAZyj5d09r01xZ"
|
|
13205
|
+
id_branch: "4zFGhVUAZyj5d09r01xZ",
|
|
13206
|
+
products:[{id_product, price, ptype, quantity, outquantity:0}, {id_product, price, ptype, quantity, outquantity:0}]
|
|
13161
13207
|
}
|
|
13162
13208
|
* this.vhQuerySales.createPaymentCardCodes(data, 10)
|
|
13163
13209
|
.then((voucher_codes)=>{
|
|
@@ -13189,18 +13235,20 @@ export declare class VhQuerySales {
|
|
|
13189
13235
|
*/
|
|
13190
13236
|
updatePaymentCardCode(id_payment_card_code: any, data: any): Promise<unknown>;
|
|
13191
13237
|
/**
|
|
13238
|
+
* Hàm này chỉ cho phép xóa payment_card đang ở trạng thái đã phát hành (status ==1),
|
|
13239
|
+
* và cập nhật giảm trường số lượng quantity_released bớt một trong collection payment_card_release_details
|
|
13192
13240
|
* @example:
|
|
13193
|
-
*
|
|
13194
|
-
* this.vhQuerySales.deletePaymentCardCode('OUHEOIWUYGHIQNIDOUW1359478'})
|
|
13241
|
+
* this.vhQuerySales.deletePaymentCardCode('OUHEOIWUYGHIQNIDOUW1359478', 'qKgt3cRPRXtw75JV9URp'})
|
|
13195
13242
|
.then((bool)=>{
|
|
13196
13243
|
console.log('deletePaymentCardCode', bool);
|
|
13197
13244
|
}, error=>{
|
|
13198
13245
|
console.log('error', error);
|
|
13199
13246
|
})
|
|
13200
13247
|
* @param id_payment_card_code
|
|
13248
|
+
* @param id_payment_card_release_detail
|
|
13201
13249
|
* @return Promise => boolean = true or false
|
|
13202
13250
|
*/
|
|
13203
|
-
deletePaymentCardCode(id_payment_card_code:
|
|
13251
|
+
deletePaymentCardCode(id_payment_card_code: string, id_payment_card_release_detail: string): Promise<unknown>;
|
|
13204
13252
|
/**
|
|
13205
13253
|
* hàm này trả về danh sách payment_card_codes đã phát hành theo mỗi đợt
|
|
13206
13254
|
* @example:
|
|
@@ -13232,7 +13280,7 @@ export declare class VhQuerySales {
|
|
|
13232
13280
|
*/
|
|
13233
13281
|
getPaymentCardCodes_byFields(query: object, projection: object, sort: object, limit: number): Promise<unknown>;
|
|
13234
13282
|
/**
|
|
13235
|
-
* hàm này trả về payment_card_code đã phát hành theo trường _id của payment_card_code. dùng trong trang bán hàng
|
|
13283
|
+
* hàm này trả về payment_card_code đã phát hành theo trường _id của payment_card_code. dùng trong trang bán hàng thanh toán bằng payment_card (chỉ lấy được hàng hóa có và còn trong card)
|
|
13236
13284
|
* @example:
|
|
13237
13285
|
*
|
|
13238
13286
|
* this.vhQuerySales.getPaymentCardCode('OUHEDW0512'})
|
|
@@ -13242,7 +13290,7 @@ export declare class VhQuerySales {
|
|
|
13242
13290
|
console.log('error', error);
|
|
13243
13291
|
})
|
|
13244
13292
|
* @param id_payment_card_code: cũng chính là code
|
|
13245
|
-
* @return Promise =>
|
|
13293
|
+
* @return Promise => obj = {} or null
|
|
13246
13294
|
*/
|
|
13247
13295
|
getPaymentCardCode(id_payment_card_code: any): Promise<unknown>;
|
|
13248
13296
|
/**
|