ionic-vhframeworks 4.1.7 → 4.2.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.
@@ -434,7 +434,7 @@ export declare class VhAuth {
434
434
  private initializeDB;
435
435
  /**
436
436
  * @example:
437
- * this.vhAuth.initializeProject('vhsales','firebase-mongo','research','research', 394637, 'all');
437
+ * this.vhAuth.initializeProject('vhsales','firebase-mongo','research','research', 324852, 'all');
438
438
  * @param projectname
439
439
  * @param dbstorage
440
440
  * @param dbserverversion
@@ -446,7 +446,7 @@ export declare class VhAuth {
446
446
  initializeProject(projectname: string, dbstorage: string, dbserverversion: string, camserverversion: string, fwcode: number, database: string): any;
447
447
  /**
448
448
  * @example:
449
- * this.vhAuth.initializeWebAppProject('vhsales', 394637, 'all');
449
+ * this.vhAuth.initializeWebAppProject('vhsales', 356842, 'all');
450
450
  * @param projectname
451
451
  * @param fwcode
452
452
  * @param database : tất cả database 'all' hoặc một database nào đó '4wk3JMSwSjh4kOLWOMbLbWt0Rdk2'
@@ -3582,7 +3582,7 @@ export declare class VhQueryCafe {
3582
3582
  createPaymentVnpay_Mobile(amount: number, orderDescription: string, id_payment: string, backHref: string, platform: string): any;
3583
3583
  /**
3584
3584
  * @example:
3585
- * let data = {
3585
+ * let data = {//truyền vào
3586
3586
  date: new Date(),
3587
3587
  payment_type: 5, //1 lưu (khách đã thanh toán cho vnpay); 5 lưu tạm (khách chưa thanh toán vnpay), hệ thống sẽ tự động xóa những payment này hoặc trên giao diện hiện ra cho khách tự xóa
3588
3588
  payment: 990.000,
@@ -3595,7 +3595,7 @@ export declare class VhQueryCafe {
3595
3595
  },error=>{
3596
3596
  console.log('error', error);
3597
3597
  })
3598
- * payment = {
3598
+ * payment = {//trả về
3599
3599
  _id,
3600
3600
  payment_code,
3601
3601
  id_store,
@@ -3610,7 +3610,7 @@ export declare class VhQueryCafe {
3610
3610
  * @param payment : object
3611
3611
  * @return Promise => payment = {} / error
3612
3612
  * Luu ý: chỉ có 2 trường hợp, hoặc là thêm thành công, hoặc là báo lỗi error
3613
- * @notice : hàm này chỉ dùng tạo những bill_type mà không có phát sinh bill_detail
3613
+ * @notice : hàm này chỉ dùng tạo những payment_type mà không có phát sinh payment_detail
3614
3614
  */
3615
3615
  createPayment(data: any): Promise<unknown>;
3616
3616
  /**
@@ -7839,6 +7839,28 @@ export declare class VhQuerySales {
7839
7839
  private callbacksyncopeningbill;
7840
7840
  private sync_code;
7841
7841
  constructor(vhmongo_firebase: Vhmongo_firebase, vhQuery: VhQuery, vhAuth: VhAuth, vhAlgorithm: VhAlgorithm, iap2: InAppPurchase2, platform: Platform);
7842
+ /**
7843
+ * Hàm này lấy về các trường trong phạm vi quản lý bán hàng trong cài đặt
7844
+ * @example:
7845
+ * let branch_management_scope = this.vhQuerySales.getBranch_Management_Scope();
7846
+ * @return Object = {product_scope, employee_scope, customer_scope, supplier_scope, sales_program_scope}
7847
+ * => true áp dụng cho toàn chi nhánh, false áp dụng riêng cho từng chi nhánh
7848
+ */
7849
+ getBranch_Management_Scope(): any;
7850
+ /**
7851
+ * Hàm này cấp nhật lại các trường trong phạm vi quản lý bán hàng trong cài đặt
7852
+ * @example:
7853
+ * this.vhQuerySales.updateBranch_Management_Scope({product_scope:1, employee_scope:1, customer_scope:1, supplier_scope:1, sales_program_scope:2})
7854
+ .then(()=>{
7855
+ console.log('updateBranch_Management_Scope');
7856
+ }, error=>{
7857
+ reject(error);
7858
+ })
7859
+ * @param value = {product_scope, employee_scope, customer_scope, supplier_scope, sales_program_scope}
7860
+ * true áp dụng cho toàn chi nhánh, false áp dụng riêng cho từng chi nhánh
7861
+ * @return Promise => udefined/error
7862
+ */
7863
+ updateBranch_Management_Scope(value: any): Promise<unknown>;
7842
7864
  /**
7843
7865
  * @description: hàm này lấy về những hạn chế của gói main_package (khách trả phí mua gói sử dụng các chức năng CHÍNH, mỗi gói sẽ có nhưng hạn chế khác nhau về user_number, show_report_duration)
7844
7866
  * @example
@@ -9164,7 +9186,7 @@ export declare class VhQuerySales {
9164
9186
  * @return Promise => object ={}
9165
9187
  * Luu ý: chỉ có 2 trường hợp, hoặc là thêm thành công, hoặc là báo lỗi error
9166
9188
  */
9167
- addCustomer(data: object): Promise<unknown>;
9189
+ addCustomer(data: any): Promise<unknown>;
9168
9190
  /**
9169
9191
  * @example:
9170
9192
  * this.vhQuerySales.addCustomers([{name:'Khách hàng 1', address: 'HCM'},{},...])
@@ -9218,6 +9240,39 @@ export declare class VhQuerySales {
9218
9240
  * @return Promise => array(object) = [{},{},..]
9219
9241
  */
9220
9242
  getCustomers(): Promise<unknown>;
9243
+ /**
9244
+ * Hàm này dùng để xóa hoặc đặt lại điểm mới cho khách hàng
9245
+ * @example:
9246
+ * this.vhQuerySales.updateCustomer_byPoints('5fb6780ca2148e09806c5b01', 1000)
9247
+ .then((bool)=>{
9248
+ console.log('updateCustomer_byPoints', bool);
9249
+ })
9250
+ * @param _id
9251
+ * @param points
9252
+ * @return Promise => bool = true or false
9253
+ */
9254
+ updateCustomer_byPoints(_id: string, points: number): Promise<unknown>;
9255
+ /**
9256
+ * Hàm này thêm điểm mới kiếm được vào quỹ điểm khách hàng đang có
9257
+ * points = points(tích được trên bill) - point (sử dụng thanh toán trên bill)
9258
+ * @example:
9259
+ * this.vhQuerySales.updateCustomer_byEarnedPoints('5fb6780ca2148e09806c5b01', 200)
9260
+ .then((bool)=>{
9261
+ console.log('updateCustomer_byEarnedPoints', bool);
9262
+ })
9263
+ * @param _id
9264
+ * @param points
9265
+ * @return Promise => bool = true or false
9266
+ */
9267
+ updateCustomer_byEarnedPoints(_id: string, points: number): Promise<unknown>;
9268
+ /**
9269
+ * Hàm này trả về điểm của khách hàng theo phạm vị chương trình bán hàng là toàn chi nhánh hay là từng chi nhánh
9270
+ * @example:
9271
+ * let customer = this.vhQuerySales.getlocalCustomer_byPoints('5fb6780ca2148e09806c5b01');
9272
+ * @param id_customer
9273
+ * @return Object => obj = {} or null
9274
+ */
9275
+ getlocalCustomerPoints(id_customer: any): any;
9221
9276
  private publishObservableEventSuppliers;
9222
9277
  private observableLocalSuppliers;
9223
9278
  /**
@@ -9267,7 +9322,7 @@ export declare class VhQuerySales {
9267
9322
  * @return Promise => obj = {}
9268
9323
  * Luu ý: chỉ có 2 trường hợp, hoặc là thêm thành công, hoặc là báo lỗi error
9269
9324
  */
9270
- addSupplier(data: object): Promise<unknown>;
9325
+ addSupplier(data: any): Promise<unknown>;
9271
9326
  /**
9272
9327
  * @example:
9273
9328
  * this.vhQuerySales.addSuppliers([{name:'Nhà cung cấp 1', address: 'HCM'},{},...])
@@ -9386,7 +9441,7 @@ export declare class VhQuerySales {
9386
9441
  * @return Promise => obj = {}
9387
9442
  * Luu ý: chỉ có 2 trường hợp, hoặc là thêm thành công, hoặc là báo lỗi error
9388
9443
  */
9389
- addWallet(data: object): Promise<unknown>;
9444
+ addWallet(data: any): Promise<unknown>;
9390
9445
  /**
9391
9446
  * @example:
9392
9447
  * this.vhQuerySales.updateWallet('5fb6780ca2148e09806c5b01', {quantity:400})
@@ -9477,7 +9532,7 @@ export declare class VhQuerySales {
9477
9532
  * @return Promise => obj = {}
9478
9533
  * Luu ý: chỉ có 2 trường hợp, hoặc là thêm thành công, hoặc là báo lỗi error
9479
9534
  */
9480
- addTax(data: object): Promise<unknown>;
9535
+ addTax(data: any): Promise<unknown>;
9481
9536
  /**
9482
9537
  * @example:
9483
9538
  * this.vhQuerySales.updateTax('5fb6780ca2148e09806c5b01', {quantity:400})
@@ -9570,7 +9625,7 @@ export declare class VhQuerySales {
9570
9625
  * @return Promise => obj = {}
9571
9626
  * Luu ý: chỉ có 2 trường hợp, hoặc là thêm thành công, hoặc là báo lỗi error
9572
9627
  */
9573
- addCategory(data: object): Promise<unknown>;
9628
+ addCategory(data: any): Promise<unknown>;
9574
9629
  /**
9575
9630
  * @example:
9576
9631
  * this.vhQuerySales.addCategorys([{name:'Danh mục 1'},{},...])
@@ -9623,7 +9678,7 @@ export declare class VhQuerySales {
9623
9678
  })
9624
9679
  * @return Promise => array(object) = [{},{},..]
9625
9680
  */
9626
- getCategorys(): Promise<unknown>;
9681
+ private getCategorys;
9627
9682
  private publishObservableEventInventorytimes;
9628
9683
  private observableLocalInventorytimes;
9629
9684
  /**
@@ -9674,7 +9729,7 @@ export declare class VhQuerySales {
9674
9729
  * @return Promise => obj = {}
9675
9730
  * Luu ý: chỉ có 2 trường hợp, hoặc là thêm thành công, hoặc là báo lỗi error
9676
9731
  */
9677
- addInventorytime(data: object): Promise<unknown>;
9732
+ addInventorytime(data: any): Promise<unknown>;
9678
9733
  /**
9679
9734
  * @example:
9680
9735
  * this.vhQuerySales.updateInventorytime('5fb6780ca2148e09806c5b01', {quantity:400})
@@ -9765,7 +9820,7 @@ export declare class VhQuerySales {
9765
9820
  * @return Promise => obj = {}
9766
9821
  * Luu ý: chỉ có 2 trường hợp, hoặc là thêm thành công, hoặc là báo lỗi error
9767
9822
  */
9768
- addWarranty(data: object): Promise<unknown>;
9823
+ addWarranty(data: any): Promise<unknown>;
9769
9824
  /**
9770
9825
  * @example:
9771
9826
  * this.vhQuerySales.updateWarranty('5fb6780ca2148e09806c5b01', {quantity:400})
@@ -9852,7 +9907,7 @@ export declare class VhQuerySales {
9852
9907
  * @return Promise => obj = {}
9853
9908
  * Luu ý: chỉ có 2 trường hợp, hoặc là thêm thành công, hoặc là báo lỗi error
9854
9909
  */
9855
- addCustomerClass(data: object): Promise<unknown>;
9910
+ addCustomerClass(data: any): Promise<unknown>;
9856
9911
  /**
9857
9912
  * @example:
9858
9913
  * this.vhQuerySales.updateCustomerClass('5fb6780ca2148e09806c5b01', {quantity:400})
@@ -9920,7 +9975,7 @@ export declare class VhQuerySales {
9920
9975
  * @return Promise => obj = {}
9921
9976
  * Luu ý: chỉ có 2 trường hợp, hoặc là thêm thành công, hoặc là báo lỗi error
9922
9977
  */
9923
- addDiscount_bill(data: object): Promise<unknown>;
9978
+ addDiscount_bill(data: any): Promise<unknown>;
9924
9979
  /**
9925
9980
  * @example:
9926
9981
  * this.vhQuerySales.updateDiscount_bill('5fb6780ca2148e09806c5b01', {quantity:400})
@@ -9955,7 +10010,7 @@ export declare class VhQuerySales {
9955
10010
  * @return Promise => obj = {}
9956
10011
  * Luu ý: chỉ có 2 trường hợp, hoặc là thêm thành công, hoặc là báo lỗi error
9957
10012
  */
9958
- addDiscount_sales(data: object): Promise<unknown>;
10013
+ addDiscount_sales(data: any): Promise<unknown>;
9959
10014
  /**
9960
10015
  * @example:
9961
10016
  * this.vhQuerySales.updateDiscount_sales('5fb6780ca2148e09806c5b01', {quantity:400})
@@ -10009,7 +10064,7 @@ export declare class VhQuerySales {
10009
10064
  * @return Promise => obj = {}
10010
10065
  * Luu ý: chỉ có 2 trường hợp, hoặc là thêm thành công, hoặc là báo lỗi error
10011
10066
  */
10012
- addCommission(data: object): Promise<unknown>;
10067
+ addCommission(data: any): Promise<unknown>;
10013
10068
  /**
10014
10069
  * @example:
10015
10070
  * this.vhQuerySales.updateCommission('5fb6780ca2148e09806c5b01', {quantity:400})
@@ -10086,7 +10141,7 @@ export declare class VhQuerySales {
10086
10141
  * @return Promise => obj = {}
10087
10142
  * Luu ý: chỉ có 2 trường hợp, hoặc là thêm thành công, hoặc là báo lỗi error
10088
10143
  */
10089
- addDelivery(data: object): Promise<unknown>;
10144
+ addDelivery(data: any): Promise<unknown>;
10090
10145
  /**
10091
10146
  * @example:
10092
10147
  * this.vhQuerySales.updateDelivery('5fb6780ca2148e09806c5b01', {quantity:400})
@@ -10321,7 +10376,7 @@ export declare class VhQuerySales {
10321
10376
  * @return Promise => obj = {}
10322
10377
  * Luu ý: chỉ có 2 trường hợp, hoặc là thêm thành công, hoặc là báo lỗi error
10323
10378
  */
10324
- addIncoming_group(data: object): Promise<unknown>;
10379
+ addIncoming_group(data: any): Promise<unknown>;
10325
10380
  /**
10326
10381
  * @example:
10327
10382
  * this.vhQuerySales.updateIncoming_group('5fb6780ca2148e09806c5b01', {quantity:400})
@@ -10387,7 +10442,7 @@ export declare class VhQuerySales {
10387
10442
  * @return Promise => obj = {}
10388
10443
  * Luu ý: chỉ có 2 trường hợp, hoặc là thêm thành công, hoặc là báo lỗi error
10389
10444
  */
10390
- addSpending_group(data: object): Promise<unknown>;
10445
+ addSpending_group(data: any): Promise<unknown>;
10391
10446
  /**
10392
10447
  * @example:
10393
10448
  * this.vhQuerySales.updateSpending_group('5fb6780ca2148e09806c5b01', {quantity:400})
@@ -10461,13 +10516,14 @@ export declare class VhQuerySales {
10461
10516
  */
10462
10517
  private getDebtAtBeginningCustomers_byIDcustomer_byIDbranch;
10463
10518
  /**
10464
- * @example
10465
- * this.vhQuerySales.getDebtAtBeginningCustomers()
10466
- .then((debtatbeginnings)=>{
10467
- console.log('getDebtAtBeginningCustomers', debtatbeginnings);
10468
- })
10469
- * @return Promise => array(object) = [{},{},..]
10470
- */
10519
+ * Hàm lấy về những khách hàng có công nợ đầu kỳ
10520
+ * @example
10521
+ * this.vhQuerySales.getDebtAtBeginningCustomers()
10522
+ .then((debtatbeginnings)=>{
10523
+ console.log('getDebtAtBeginningCustomers', debtatbeginnings);
10524
+ })
10525
+ * @return Promise => array(object) = [{},{},..]
10526
+ */
10471
10527
  private getDebtAtBeginningCustomers;
10472
10528
  /**
10473
10529
  * @example:
@@ -10664,7 +10720,7 @@ export declare class VhQuerySales {
10664
10720
  * @param data
10665
10721
  * Promise => object = {} Luu ý: chỉ có 2 trường hợp, hoặc là thêm thành công, hoặc là báo lỗi error
10666
10722
  */
10667
- addPrinter(data: object): Promise<unknown>;
10723
+ addPrinter(data: any): Promise<unknown>;
10668
10724
  /**
10669
10725
  * @example:
10670
10726
  * this.vhQuerySales.updatePrinter('5fb6780ca2148e09806c5b01', {quantity:400})
@@ -11293,7 +11349,7 @@ export declare class VhQuerySales {
11293
11349
  * @return Promise => obj = {}
11294
11350
  * Luu ý: chỉ có 2 trường hợp, hoặc là thêm thành công, hoặc là báo lỗi error
11295
11351
  */
11296
- addPromotion(data: object): Promise<unknown>;
11352
+ addPromotion(data: any): Promise<unknown>;
11297
11353
  /**
11298
11354
  * @example:
11299
11355
  * this.vhQuerySales.updatePromotion('5fb6780ca2148e09806c5b01', {name:'Khuyến mãi 12/12'})
@@ -12233,9 +12289,23 @@ export declare class VhQuerySales {
12233
12289
  * @notice : ở giao diện APP, chọn IDbranch rồi mới hiện ra những IDwallet của chi nhánh đó để chọn tiếp. Nếu IDbranch = 'all' thì IDwallet phải là 'all'
12234
12290
  */
12235
12291
  getReportCashBook(starttime: any, endtime: any, IDwallet: any, IDbranch?: string): Promise<unknown>;
12292
+ /**
12293
+ * VhQuerySales:
12294
+ * @param starttime
12295
+ * @param endtime
12296
+ * @param IDwallet
12297
+ * @param IDbranch
12298
+ * @returns
12299
+ */
12236
12300
  private getReportCashBook_old;
12301
+ /**
12302
+ * VhQuerySales:
12303
+ * @param id_branch
12304
+ * @returns
12305
+ */
12237
12306
  private syncCashBook;
12238
12307
  /**
12308
+ * VhQuerySales:
12239
12309
  * Hàm này chỉ chạy trên giao diện Desktop
12240
12310
  * @returns Promise
12241
12311
  */
@@ -12358,7 +12428,7 @@ export declare class VhQuerySales {
12358
12428
  include_paid_points : false,
12359
12429
  include_tax : false,
12360
12430
  include_fee : false,
12361
- id_branch : '5fb6780ca2148e09806c5b01',
12431
+ //id_branch : '5fb6780ca2148e09806c5b01', //trong hàm đã thêm vào
12362
12432
  earned_points_clear_auto:{
12363
12433
  enable,
12364
12434
  months_of_year: 1
@@ -12444,9 +12514,10 @@ export declare class VhQuerySales {
12444
12514
  money : 100000,
12445
12515
  points : 1
12446
12516
  },
12517
+ products:['05ztAR5h3UslYo70Amut','0S8NOcG8wEUYWVo1weHV','0tmbM5SyGe5O1mvuh61l',...],
12447
12518
  include_promotion_product : false,
12448
12519
  include_paid_points : false,
12449
- id_branch : '5fb6780ca2148e09806c5b01'
12520
+ //id_branch : '5fb6780ca2148e09806c5b01' //trong hàm đã thêm vào
12450
12521
  }
12451
12522
  this.vhQuerySales.addEarningPointsProduct(data)
12452
12523
  .then((res)=>{
@@ -12605,7 +12676,7 @@ export declare class VhQuerySales {
12605
12676
  * value : 100000,
12606
12677
  * point : 1000,
12607
12678
  * id_design_barcode : "",
12608
- * id_branch :" 316OIUHLKMLSDYW235"
12679
+ * //id_branch :" 316OIUHLKMLSDYW235" //trong hàm đã có thêm vào
12609
12680
  * }
12610
12681
  * this.vhQuerySales.addCoupon(data)
12611
12682
  .then((res)=>{
@@ -12794,13 +12865,10 @@ export declare class VhQuerySales {
12794
12865
  * hàm này để phát hành 1 coupon_code
12795
12866
  * @example:
12796
12867
  let data = {
12797
- status :1,
12798
12868
  date_validity: new Date(),
12799
12869
  date_expire : new Date(),
12800
12870
  id_coupon_release_detail :"315KHIUHWNIUHCIYUW3187",
12801
- date_used : '',
12802
- date_sold : '',
12803
- id_branch :"OIIOUHDWU1654984NQYUH",
12871
+ id_coupon: '9841654DOIWSDYW235'
12804
12872
  }
12805
12873
  * this.vhQuerySales.createCouponCode(data)
12806
12874
  .then((coupon_code)=>{
@@ -12817,13 +12885,10 @@ export declare class VhQuerySales {
12817
12885
  * trong collection coupon_release_details
12818
12886
  * @example:
12819
12887
  let data = {
12820
- status :1,
12821
12888
  date_validity: new Date(),
12822
12889
  date_expire : new Date(),
12823
12890
  id_coupon_release_detail :"315KHIUHWNIUHCIYUW3187",
12824
- date_used : '',
12825
- date_sold : '',
12826
- id_branch :"OIIOUHDWU1654984NQYUH",
12891
+ id_coupon: '9841654DOIWSDYW235'
12827
12892
  }
12828
12893
  * this.vhQuerySales.createCouponCodes(data, 10)
12829
12894
  .then((coupon_codes)=>{
@@ -12928,18 +12993,19 @@ export declare class VhQuerySales {
12928
12993
  * hàm này đã cập nhật lại trường status, id_customer, date_points_exchanged cho coupon_codes
12929
12994
  * hàm này đã cập nhật lại trường earned_points, id_customer, branch_earned_points cho customers
12930
12995
  * @example:
12931
- * this.vhQuerySales.exchangeCouponCode_byEarningPoints(['OUIYWGUDBYWUHEDW0512','1984QIHBSYGWDIOUHIQFE'], 'INBIFDYWUGUHNI65498', 1000})
12996
+ * let array = [{id_coupon_code, points, value},{}...]
12997
+ * this.vhQuerySales.exchangeCouponCode_byEarningPoints([array,'1984QIHBSYGWDIOUHIQFE'], 'INBIFDYWUGUHNI65498', 1000})
12932
12998
  .then((bool)=>{
12933
12999
  console.log('exchangeCouponCode_byEarningPoints', bool);
12934
13000
  }, error=>{
12935
13001
  console.log('error', error);
12936
13002
  })
12937
- * @param array_id_coupon_code
13003
+ * @param array_id_coupon_code_and_points_and_value : [{id_coupon_code, points, value}]
12938
13004
  * @param id_customer
12939
- * @param earning_points
13005
+ * @param total_points_exchanged: tổng điểm của các phiếu đã quy đổi
12940
13006
  * @return Promise => boolean = true or false
12941
13007
  */
12942
- exchangeCouponCode_byEarningPoints(array_id_coupon_code: any, id_customer: any, points: any): Promise<unknown>;
13008
+ exchangeCouponCode_byEarningPoints(array_id_coupon_code_and_points_and_value: any, id_customer: any, total_points_exchanged: any): Promise<unknown>;
12943
13009
  /**
12944
13010
  * @example:
12945
13011
  * let data = {
@@ -13145,12 +13211,10 @@ export declare class VhQuerySales {
13145
13211
  * hàm này để phát hành 1 voucher_code
13146
13212
  * @example:
13147
13213
  let data = {
13148
- code: '3VU4JW0517',
13149
13214
  date_validity: new Date(),
13150
13215
  date_expire: new Date(),
13151
- status: 1,
13152
13216
  id_voucher_release_detail: "fuMS21I6othUm34385WV",
13153
- id_branch: "4zFGhVUAZyj5d09r01xZ"
13217
+ id_voucher: '9841654DOIWSDYW235'
13154
13218
  }
13155
13219
  * this.vhQuerySales.createVoucherCode(data)
13156
13220
  .then((coupon_code)=>{
@@ -13167,12 +13231,10 @@ export declare class VhQuerySales {
13167
13231
  * trong collection voucher_release_details
13168
13232
  * @example:
13169
13233
  let data = {
13170
- code: '3VU4JW0517',
13171
- date_validity: new Date(),
13172
- date_expire: new Date(),
13173
- status: 1,
13174
- id_voucher_release_detail: "fuMS21I6othUm34385WV",
13175
- id_branch: "4zFGhVUAZyj5d09r01xZ"
13234
+ date_validity: new Date(),
13235
+ date_expire: new Date(),
13236
+ id_voucher_release_detail: "fuMS21I6othUm34385WV",
13237
+ id_voucher: '9841654DOIWSDYW235'
13176
13238
  }
13177
13239
  * this.vhQuerySales.createVoucherCodes(data, 10)
13178
13240
  .then((voucher_codes)=>{
@@ -13272,7 +13334,7 @@ export declare class VhQuerySales {
13272
13334
  * @return Promise => obj ={} or null
13273
13335
  */
13274
13336
  getVoucher_Code_Name_Release(id_voucher_code: any): Promise<unknown>;
13275
- exchangeVoucherCode_byEarningPoints(array_id_voucher_code: any, id_customer: any, points: any): Promise<unknown>;
13337
+ exchangeVoucherCode_byEarningPoints(array_id_voucher_code_and_points_and_products: any, id_customer: any, points: any): Promise<unknown>;
13276
13338
  /**
13277
13339
  * @example:
13278
13340
  * let data = {
@@ -13486,11 +13548,10 @@ export declare class VhQuerySales {
13486
13548
  * hàm này để phát hành 1 payment_card_code
13487
13549
  * @example:
13488
13550
  let data = {
13489
- date_validity: new Date(),
13490
- date_expire: new Date(),
13491
- status: 1,
13492
- id_payment_card_release_detail: "fuMS21I6othUm34385WV",
13493
- id_branch: "4zFGhVUAZyj5d09r01xZ"
13551
+ date_validity: new Date(),
13552
+ date_expire: new Date(),
13553
+ id_payment_card_release_detail: "fuMS21I6othUm34385WV",
13554
+ id_payment_card: '9841654DOIWSDYW235'
13494
13555
  }
13495
13556
  * this.vhQuerySales.createPaymentCardCode(data)
13496
13557
  .then((coupon_code)=>{
@@ -13509,10 +13570,8 @@ export declare class VhQuerySales {
13509
13570
  let data = {
13510
13571
  date_validity: new Date(),
13511
13572
  date_expire: new Date(),
13512
- status: 1,
13513
13573
  id_payment_card_release_detail: "fuMS21I6othUm34385WV",
13514
- id_branch: "4zFGhVUAZyj5d09r01xZ",
13515
- products:[{id_product, price, ptype, quantity, outquantity:0}, {id_product, price, ptype, quantity, outquantity:0}]
13574
+ id_payment_card: '9841654DOIWSDYW235'
13516
13575
  }
13517
13576
  * this.vhQuerySales.createPaymentCardCodes(data, 10)
13518
13577
  .then((voucher_codes)=>{
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ionic-vhframeworks",
3
- "version": "4.1.7",
3
+ "version": "4.2.0",
4
4
  "peerDependencies": {},
5
5
  "dependencies": {
6
6
  "tslib": "^2.0.0"