ionic-vhframeworks 4.0.3 → 4.0.6
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 +112 -19
- package/package.json +1 -1
|
@@ -3354,7 +3354,7 @@ export declare class VhQueryCafe {
|
|
|
3354
3354
|
* @returns Observable => bill hoặc null;
|
|
3355
3355
|
* + trả về bill là hóa đơn đó đang được sử ở thiết bị khác;
|
|
3356
3356
|
* + trả về null là hóa đơn đó đã bị xóa hoặc đã chuyển sang trạng thái bill_type khác
|
|
3357
|
-
* @notice : nhớ đóng closeSyncOpeningBill() khi thoát trang hiện tại
|
|
3357
|
+
* @notice : nhớ đóng closeSyncOpeningBill() khi thoát trang hiện tại this.vhQueryCafe.closeSyncOpeningBill();
|
|
3358
3358
|
*/
|
|
3359
3359
|
observableSyncOpeningBill(id_bill: string, bill_type: number): Observable<unknown>;
|
|
3360
3360
|
/**
|
|
@@ -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,9 +12614,24 @@ 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>;
|
|
12620
|
+
/**
|
|
12621
|
+
* hàm này trả về coupon code đã phát hành theo trường _id của voucher code. dùng trong thanh toán bằng phiếu,
|
|
12622
|
+
* trả về có cả code, name_coupon, name_coupon_release
|
|
12623
|
+
* @example:
|
|
12624
|
+
*
|
|
12625
|
+
* this.vhQuerySales.getCoupon_Code_Name_Release('OUHEDW0512'})
|
|
12626
|
+
.then((res)=>{
|
|
12627
|
+
console.log('getCoupon_Code_Name_Release', res);
|
|
12628
|
+
}, error=>{
|
|
12629
|
+
console.log('error', error);
|
|
12630
|
+
})
|
|
12631
|
+
* @param id_coupon_code: cũng chính là code
|
|
12632
|
+
* @return Promise => obj ={} or null
|
|
12633
|
+
*/
|
|
12634
|
+
getCoupon_Code_Name_Release(id_coupon_code: any): Promise<unknown>;
|
|
12604
12635
|
/**
|
|
12605
12636
|
* hàm này để đổi phiếu 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
|
|
12606
12637
|
* @example:
|
|
@@ -12790,6 +12821,18 @@ export declare class VhQuerySales {
|
|
|
12790
12821
|
* @return Promise Boolean => true or false
|
|
12791
12822
|
*/
|
|
12792
12823
|
deleteVoucherReleaseDetail(id_voucher_release_detail: any): Promise<unknown>;
|
|
12824
|
+
/**
|
|
12825
|
+
* @example:
|
|
12826
|
+
* this.vhQuerySales.getVoucherReleaseDetail("fuMS21I6othUm34385WV")
|
|
12827
|
+
.then((res)=>{
|
|
12828
|
+
console.log('getVoucherReleaseDetail', res);
|
|
12829
|
+
}, error=>{
|
|
12830
|
+
console.log('error', error);
|
|
12831
|
+
})
|
|
12832
|
+
* @param (id_voucher_release_detail)
|
|
12833
|
+
* @return Promise => object or null
|
|
12834
|
+
*/
|
|
12835
|
+
getVoucherReleaseDetail(id_voucher_release_detail: string): Promise<unknown>;
|
|
12793
12836
|
/**
|
|
12794
12837
|
* @example:
|
|
12795
12838
|
* this.vhQuerySales.getVoucherRelaseDetail_byFields( {id_voucher:{$eq: "316OIUHLKMLSDYW235"}}, {}, {}, 0)
|
|
@@ -12827,7 +12870,8 @@ export declare class VhQuerySales {
|
|
|
12827
12870
|
*/
|
|
12828
12871
|
private createVoucherCode;
|
|
12829
12872
|
/**
|
|
12830
|
-
* hàm này để phát hành nhiều voucher_code theo số lượng truyền vào
|
|
12873
|
+
* 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
|
|
12874
|
+
* trong collection voucher_release_details
|
|
12831
12875
|
* @example:
|
|
12832
12876
|
let data = {
|
|
12833
12877
|
code: '3VU4JW0517',
|
|
@@ -12863,18 +12907,20 @@ export declare class VhQuerySales {
|
|
|
12863
12907
|
*/
|
|
12864
12908
|
updateVoucherCode(id_voucher_code: any, data: any): Promise<unknown>;
|
|
12865
12909
|
/**
|
|
12910
|
+
* Hàm này chỉ cho phép xóa voucher_code đang ở trạng thái đã phát hành (status ==1),
|
|
12911
|
+
* và cập nhật giảm trường số lượng quantity_released bớt một trong collection voucher_release_details
|
|
12866
12912
|
* @example:
|
|
12867
|
-
*
|
|
12868
|
-
* this.vhQuerySales.deleteVoucherCode('OUHEOIWUYGHIQNIDOUW1359478'})
|
|
12913
|
+
* this.vhQuerySales.deleteVoucherCode('BjHxEYPWrB0rPwfj2L9R', 'CBrcRQIL11lwcHBljliW'})
|
|
12869
12914
|
.then((bool)=>{
|
|
12870
12915
|
console.log('deleteVoucherCode', bool);
|
|
12871
12916
|
}, error=>{
|
|
12872
12917
|
console.log('error', error);
|
|
12873
12918
|
})
|
|
12874
12919
|
* @param id_voucher_code
|
|
12920
|
+
* @param id_voucher_release_detail
|
|
12875
12921
|
* @return Promise => boolean = true or false
|
|
12876
12922
|
*/
|
|
12877
|
-
deleteVoucherCode(id_voucher_code:
|
|
12923
|
+
deleteVoucherCode(id_voucher_code: string, id_voucher_release_detail: string): Promise<unknown>;
|
|
12878
12924
|
/**
|
|
12879
12925
|
* hàm này trả về danh sách voucher_codes đã phát hành theo mỗi đợt
|
|
12880
12926
|
* @example:
|
|
@@ -12905,7 +12951,7 @@ export declare class VhQuerySales {
|
|
|
12905
12951
|
*/
|
|
12906
12952
|
getVoucherCodes_byFields(query: object, projection: object, sort: object, limit: number): Promise<unknown>;
|
|
12907
12953
|
/**
|
|
12908
|
-
* hàm này trả về voucher code đã phát hành theo trường
|
|
12954
|
+
* 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
12955
|
* @example:
|
|
12910
12956
|
*
|
|
12911
12957
|
* this.vhQuerySales.getVoucherCode('OUHEDW0512'})
|
|
@@ -12915,9 +12961,24 @@ export declare class VhQuerySales {
|
|
|
12915
12961
|
console.log('error', error);
|
|
12916
12962
|
})
|
|
12917
12963
|
* @param id_voucher_code: cũng chính là code
|
|
12918
|
-
* @return Promise =>
|
|
12964
|
+
* @return Promise => obj ={} or null
|
|
12919
12965
|
*/
|
|
12920
12966
|
getVoucherCode(id_voucher_code: any): Promise<unknown>;
|
|
12967
|
+
/**
|
|
12968
|
+
* 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,
|
|
12969
|
+
* trả về có cả code, name_voucher, name_voucher_release
|
|
12970
|
+
* @example:
|
|
12971
|
+
*
|
|
12972
|
+
* this.vhQuerySales.getVoucher_Code_Name_Release('OUHEDW0512'})
|
|
12973
|
+
.then((res)=>{
|
|
12974
|
+
console.log('getVoucher_Code_Name_Release', res);
|
|
12975
|
+
}, error=>{
|
|
12976
|
+
console.log('error', error);
|
|
12977
|
+
})
|
|
12978
|
+
* @param id_voucher_code: cũng chính là code
|
|
12979
|
+
* @return Promise => obj ={} or null
|
|
12980
|
+
*/
|
|
12981
|
+
getVoucher_Code_Name_Release(id_voucher_code: any): Promise<unknown>;
|
|
12921
12982
|
/** 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
|
|
12922
12983
|
* @example:
|
|
12923
12984
|
* let data = [id_voucher_code]
|
|
@@ -13114,6 +13175,19 @@ export declare class VhQuerySales {
|
|
|
13114
13175
|
* @return Promise => bool = true or false
|
|
13115
13176
|
*/
|
|
13116
13177
|
deletePaymentCardReleaseDetail(id_payment_card_release_detail: any): Promise<unknown>;
|
|
13178
|
+
/**
|
|
13179
|
+
* @example:
|
|
13180
|
+
*
|
|
13181
|
+
* this.vhQuerySales.getPaymentCardReleaseDetail('FBHYWIBDNIUH1321687')
|
|
13182
|
+
.then((res)=>{
|
|
13183
|
+
console.log('getPaymentCardReleaseDetail', res);
|
|
13184
|
+
}, error=>{
|
|
13185
|
+
console.log('error', error);
|
|
13186
|
+
})
|
|
13187
|
+
* @param id_payment_card_release_detail
|
|
13188
|
+
* @return Promise => object or null
|
|
13189
|
+
*/
|
|
13190
|
+
getPaymentCardReleaseDetail(id_payment_card_release_detail: any): Promise<unknown>;
|
|
13117
13191
|
/**
|
|
13118
13192
|
* @example:
|
|
13119
13193
|
* this.vhQuerySales.getVoucherRelaseDetail_byFields( {id_payment_card:{$eq: "316OIUHLKMLSDYW235"}}, {}, {}, 0)
|
|
@@ -13150,14 +13224,16 @@ export declare class VhQuerySales {
|
|
|
13150
13224
|
*/
|
|
13151
13225
|
private createPaymentCardCode;
|
|
13152
13226
|
/**
|
|
13153
|
-
* hàm này để phát hành nhiều payment_card_code theo số lượng truyền vào
|
|
13227
|
+
* 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
|
|
13228
|
+
* trong collection payment_card_release_details
|
|
13154
13229
|
* @example:
|
|
13155
13230
|
let data = {
|
|
13156
13231
|
date_validity: new Date(),
|
|
13157
13232
|
date_expire: new Date(),
|
|
13158
13233
|
status: 1,
|
|
13159
13234
|
id_payment_card_release_detail: "fuMS21I6othUm34385WV",
|
|
13160
|
-
id_branch: "4zFGhVUAZyj5d09r01xZ"
|
|
13235
|
+
id_branch: "4zFGhVUAZyj5d09r01xZ",
|
|
13236
|
+
products:[{id_product, price, ptype, quantity, outquantity:0}, {id_product, price, ptype, quantity, outquantity:0}]
|
|
13161
13237
|
}
|
|
13162
13238
|
* this.vhQuerySales.createPaymentCardCodes(data, 10)
|
|
13163
13239
|
.then((voucher_codes)=>{
|
|
@@ -13189,18 +13265,20 @@ export declare class VhQuerySales {
|
|
|
13189
13265
|
*/
|
|
13190
13266
|
updatePaymentCardCode(id_payment_card_code: any, data: any): Promise<unknown>;
|
|
13191
13267
|
/**
|
|
13268
|
+
* Hàm này chỉ cho phép xóa payment_card đang ở trạng thái đã phát hành (status ==1),
|
|
13269
|
+
* 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
13270
|
* @example:
|
|
13193
|
-
*
|
|
13194
|
-
* this.vhQuerySales.deletePaymentCardCode('OUHEOIWUYGHIQNIDOUW1359478'})
|
|
13271
|
+
* this.vhQuerySales.deletePaymentCardCode('OUHEOIWUYGHIQNIDOUW1359478', 'qKgt3cRPRXtw75JV9URp'})
|
|
13195
13272
|
.then((bool)=>{
|
|
13196
13273
|
console.log('deletePaymentCardCode', bool);
|
|
13197
13274
|
}, error=>{
|
|
13198
13275
|
console.log('error', error);
|
|
13199
13276
|
})
|
|
13200
13277
|
* @param id_payment_card_code
|
|
13278
|
+
* @param id_payment_card_release_detail
|
|
13201
13279
|
* @return Promise => boolean = true or false
|
|
13202
13280
|
*/
|
|
13203
|
-
deletePaymentCardCode(id_payment_card_code:
|
|
13281
|
+
deletePaymentCardCode(id_payment_card_code: string, id_payment_card_release_detail: string): Promise<unknown>;
|
|
13204
13282
|
/**
|
|
13205
13283
|
* hàm này trả về danh sách payment_card_codes đã phát hành theo mỗi đợt
|
|
13206
13284
|
* @example:
|
|
@@ -13232,7 +13310,7 @@ export declare class VhQuerySales {
|
|
|
13232
13310
|
*/
|
|
13233
13311
|
getPaymentCardCodes_byFields(query: object, projection: object, sort: object, limit: number): Promise<unknown>;
|
|
13234
13312
|
/**
|
|
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
|
|
13313
|
+
* 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
13314
|
* @example:
|
|
13237
13315
|
*
|
|
13238
13316
|
* this.vhQuerySales.getPaymentCardCode('OUHEDW0512'})
|
|
@@ -13242,9 +13320,24 @@ export declare class VhQuerySales {
|
|
|
13242
13320
|
console.log('error', error);
|
|
13243
13321
|
})
|
|
13244
13322
|
* @param id_payment_card_code: cũng chính là code
|
|
13245
|
-
* @return Promise =>
|
|
13323
|
+
* @return Promise => obj = {} or null
|
|
13246
13324
|
*/
|
|
13247
13325
|
getPaymentCardCode(id_payment_card_code: any): Promise<unknown>;
|
|
13326
|
+
/**
|
|
13327
|
+
* 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 đưa thẻ mua trước lấy sản phẩm
|
|
13328
|
+
* trả về có cả code, name_payment_card, name_payment_card_release
|
|
13329
|
+
* @example:
|
|
13330
|
+
*
|
|
13331
|
+
* this.vhQuerySales.getPaymentCard_Code_Name_Release('OUHEDW0512'})
|
|
13332
|
+
.then((res)=>{
|
|
13333
|
+
console.log('getPaymentCard_Code_Name_Release', res);
|
|
13334
|
+
}, error=>{
|
|
13335
|
+
console.log('error', error);
|
|
13336
|
+
})
|
|
13337
|
+
* @param id_payment_card_code: cũng chính là code
|
|
13338
|
+
* @return Promise => obj ={} or null
|
|
13339
|
+
*/
|
|
13340
|
+
getPaymentCard_Code_Name_Release(id_payment_card_code: any): Promise<unknown>;
|
|
13248
13341
|
/**
|
|
13249
13342
|
* không cần hàm này vì khi tạo phiếu bill_type51 đã được cập nhật
|
|
13250
13343
|
* hàm này dùng để cập nhật số lượng sản phẩm trong Payment Card khi đổi thẻ
|