ionic-vhframeworks 10.12.0 → 10.12.2

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.
@@ -3151,6 +3151,47 @@ export declare class VhQueryCafeMenu {
3151
3151
  */
3152
3152
  createBill_Billdetail(bill: any, bill_details: any): any;
3153
3153
  /**
3154
+ * Hàm này chỉ áp dụng cho bill_type 1,5 và bill_detail có ptype 5
3155
+ * @example:
3156
+ * this.vhQueryCafeMenu.createBill_Detail_ptype_5({})
3157
+ .then((vhbill_detail)=>{
3158
+ console.log('createBill_Detail_ptype_5', vhbill_detail);
3159
+ },(error:any)=>{
3160
+ console.log('error', error);
3161
+ })
3162
+ * @param colname
3163
+ * @param data
3164
+ * @return Promise => obj = {}
3165
+ * 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
3166
+ */
3167
+ createBill_Detail_ptype_5(data: any): any;
3168
+ /**
3169
+ * Hàm này chỉ áp dụng cho bill_type 1,5 và bill_detail có ptype 5
3170
+ * @example:
3171
+ * this.vhQueryCafeMenu.updateBill_Detail_btype_5('5fb6780ca2148e09806c5b01', {name:'Khuyến mãi 12/12'})
3172
+ .then((bool:any)=>{
3173
+ console.log('updateBill_Detail', bool);
3174
+ }, error=>{
3175
+ console.log('error', error);
3176
+ })
3177
+ * @param id_bill_detail
3178
+ * @param value
3179
+ * @return Promise => bool = true or false
3180
+ */
3181
+ updateBill_Detail_btype_5(id_bill_detail: string, value: any): Promise<unknown>;
3182
+ /**
3183
+ * Hàm này chỉ áp dụng cho bill_type 1,5 và bill_detail có ptype 5
3184
+ * @example:
3185
+ * this.vhQueryCafeMenu.deleteBill_Detail_ptype_5('5fb67fda87c0f21d484cbdf3')
3186
+ .then((bool:any)=>{
3187
+ console.log('deleteBill_Detail', bool);
3188
+ })
3189
+ * @param id_bill_detail
3190
+ * @return Promise => bool = true or false
3191
+ */
3192
+ deleteBill_Detail_ptype_5(id_bill_detail: any): Promise<unknown>;
3193
+ private getBill_details_byFields_fromCache;
3194
+ /**
3154
3195
  * Hàm này tạo bill_code theo số thứ tự (trong ngày) của từng loại bill_type
3155
3196
  * @example:
3156
3197
  * this.vhQueryCafeMenu.createBillCode(new Date(), 7)
@@ -6604,7 +6645,7 @@ export declare class VhQueryCafe {
6604
6645
  */
6605
6646
  deleteBill_Billdetail(id_bill: any): any;
6606
6647
  /**
6607
- * Hàm lấy về các có kèm chương trình khuyến mãi
6648
+ * Hàm lấy về các Bill_details có kèm chương trình khuyến mãi
6608
6649
  * @example
6609
6650
  this.vhQueryCafe.getBill_details_byId_bill('RcECbNgU9BdYQo37s30p')
6610
6651
  .then((bill_details:any)=>{
@@ -6672,6 +6713,29 @@ export declare class VhQueryCafe {
6672
6713
  * 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
6673
6714
  */
6674
6715
  createBill_Detail(data: any): any;
6716
+ /**
6717
+ * @example:
6718
+ * this.vhQueryCafe.updateBill_Detail('5fb6780ca2148e09806c5b01', {name:'Khuyến mãi 12/12'})
6719
+ .then((bool:any)=>{
6720
+ console.log('updateBill_Detail', bool);
6721
+ }, error=>{
6722
+ console.log('error', error);
6723
+ })
6724
+ * @param id_bill
6725
+ * @param data
6726
+ * @return Promise => bool = true or false
6727
+ */
6728
+ updateBill_Detail(id_bill_detail: string, value: object): Promise<unknown>;
6729
+ /**
6730
+ * @example:
6731
+ * this.vhQueryCafe.deleteBill_Detail('5fb67fda87c0f21d484cbdf3')
6732
+ .then((bool:any)=>{
6733
+ console.log('deleteBill_Detail', bool);
6734
+ })
6735
+ * @param id_bill_detail
6736
+ * @return Promise => bool = true or false
6737
+ */
6738
+ deleteBill_Detail(id_bill_detail: any): Promise<unknown>;
6675
6739
  /**
6676
6740
  * Hàm này chỉ áp dụng cho bill_type 1,5 và bill_detail có ptype 5
6677
6741
  * @example:
@@ -6687,19 +6751,6 @@ export declare class VhQueryCafe {
6687
6751
  * 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
6688
6752
  */
6689
6753
  createBill_Detail_ptype_5(data: any): any;
6690
- /**
6691
- * @example:
6692
- * this.vhQueryCafe.updateBill_Detail('5fb6780ca2148e09806c5b01', {name:'Khuyến mãi 12/12'})
6693
- .then((bool:any)=>{
6694
- console.log('updateBill_Detail', bool);
6695
- }, error=>{
6696
- console.log('error', error);
6697
- })
6698
- * @param id_bill
6699
- * @param data
6700
- * @return Promise => bool = true or false
6701
- */
6702
- updateBill_Detail(id_bill_detail: string, value: object): Promise<unknown>;
6703
6754
  /**
6704
6755
  * Hàm này chỉ áp dụng cho bill_type 1,5 và bill_detail có ptype 5
6705
6756
  * @example:
@@ -6714,16 +6765,6 @@ export declare class VhQueryCafe {
6714
6765
  * @return Promise => bool = true or false
6715
6766
  */
6716
6767
  updateBill_Detail_btype_5(id_bill_detail: string, value: any): Promise<unknown>;
6717
- /**
6718
- * @example:
6719
- * this.vhQueryCafe.deleteBill_Detail('5fb67fda87c0f21d484cbdf3')
6720
- .then((bool:any)=>{
6721
- console.log('deleteBill_Detail', bool);
6722
- })
6723
- * @param id_bill_detail
6724
- * @return Promise => bool = true or false
6725
- */
6726
- deleteBill_Detail(id_bill_detail: any): Promise<unknown>;
6727
6768
  /**
6728
6769
  * Hàm này chỉ áp dụng cho bill_type 1,5 và bill_detail có ptype 5
6729
6770
  * @example:
@@ -17547,7 +17588,36 @@ export declare class VhQuerySales {
17547
17588
  /**
17548
17589
  * Hàm này chỉ áp dụng cho bill_type 1,5 và bill_detail có ptype 5
17549
17590
  * @example:
17550
- * this.vhQuerySales.deleteBill_Detail_ptype_5('5fb67fda87c0f21d484cbdf3')
17591
+ * this.vhQueryCafe.createBill_Detail_ptype_5({})
17592
+ .then((vhbill_detail)=>{
17593
+ console.log('createBill_Detail_ptype_5', vhbill_detail);
17594
+ },(error:any)=>{
17595
+ console.log('error', error);
17596
+ })
17597
+ * @param colname
17598
+ * @param data
17599
+ * @return Promise => obj = {}
17600
+ * 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
17601
+ */
17602
+ createBill_Detail_ptype_5(data: any): any;
17603
+ /**
17604
+ * Hàm này chỉ áp dụng cho bill_type 1,5 và bill_detail có ptype 5
17605
+ * @example:
17606
+ * this.vhQueryCafe.updateBill_Detail_btype_5('5fb6780ca2148e09806c5b01', {name:'Khuyến mãi 12/12'})
17607
+ .then((bool:any)=>{
17608
+ console.log('updateBill_Detail', bool);
17609
+ }, error=>{
17610
+ console.log('error', error);
17611
+ })
17612
+ * @param id_bill_detail
17613
+ * @param value
17614
+ * @return Promise => bool = true or false
17615
+ */
17616
+ updateBill_Detail_btype_5(id_bill_detail: string, value: any): Promise<unknown>;
17617
+ /**
17618
+ * Hàm này chỉ áp dụng cho bill_type 1,5 và bill_detail có ptype 5
17619
+ * @example:
17620
+ * this.vhQueryCafe.deleteBill_Detail_ptype_5('5fb67fda87c0f21d484cbdf3')
17551
17621
  .then((bool:any)=>{
17552
17622
  console.log('deleteBill_Detail', bool);
17553
17623
  })
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ionic-vhframeworks",
3
- "version": "10.12.0",
3
+ "version": "10.12.2",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "^12.2.0",
6
6
  "@angular/core": "^12.2.0"