ionic-vhframeworks 9.2.6 → 9.2.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.
@@ -5289,7 +5289,7 @@ export declare class VhQueryCafe {
5289
5289
  */
5290
5290
  private getBill_details;
5291
5291
  private _getBill_details;
5292
- getBill_detail(id_bill_detail: any): any;
5292
+ private getBill_detail;
5293
5293
  /**
5294
5294
  * @example:
5295
5295
  * this.vhQueryCafe.createBill_Detail({})
@@ -18019,7 +18019,7 @@ export declare class VhQueryAutoWeb {
18019
18019
  * vcode == 0: 'success'
18020
18020
  * vcode == 11: 'not logged in'
18021
18021
  */
18022
- getBill_detail(id_bill_detail: any): Promise<unknown>;
18022
+ private getBill_detail;
18023
18023
  /**
18024
18024
  * @example:
18025
18025
  * this.vhQueryAutoWeb.deleteBill_Detail('5fb67fda87c0f21d484cbdf3')
@@ -19470,6 +19470,26 @@ export declare class VhBuildAutoWeb {
19470
19470
  * @return null or object
19471
19471
  */
19472
19472
  static_getDoc_fromService(colname: string, id_doc: string): Promise<unknown>;
19473
+ /**
19474
+ * @example:
19475
+ * this.vhBuildAutoWeb.static_updateDoc_fromDatabase('categories', '5fb6780ca2148e09806c5b01', {name: 'Quảng cáo 1'})
19476
+ .then((rsp:any)=>{
19477
+ if(rsp.vcode === 0){
19478
+ console.log('static_updateDoc_fromDatabase succeed');
19479
+ }
19480
+ }, error=>{
19481
+ console.log('error', error);
19482
+ })
19483
+ * @param colname
19484
+ * @param id_doc
19485
+ * @param data
19486
+ * @return Promise => rsp ={vcode, msg, data(undefined)} / error
19487
+ * @notice : hàm này chỉ add được dữ liệu sau khi khách hàng hoặc nhân viên đã đăng nhập
19488
+ * vcode == 0: success
19489
+ * vcode == 11: 'not logged in
19490
+ * vcode == 2: wrong projectname
19491
+ */
19492
+ static_updateDoc_fromDatabase(colname: string, id_doc: string, value: object): Promise<unknown>;
19473
19493
  /**
19474
19494
  * @example
19475
19495
  * this.vhBuildAutoWeb.static_getDoc_fromDatabase('categories', '5fb67fda87c0f21d484cbdf3')
@@ -21514,6 +21534,9 @@ export declare class VhQuerySales {
21514
21534
  })
21515
21535
  */
21516
21536
  fix_mot_lan_duy_nhat_inventory_null(): Promise<unknown>;
21537
+ private getYear;
21538
+ private getYearsArray;
21539
+ private getYearsArray_fromQuery;
21517
21540
  /**
21518
21541
  * 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
21519
21542
  * @example:
@@ -22594,7 +22617,6 @@ export declare class VhQuerySales {
22594
22617
  */
22595
22618
  deleteMergeSendoProduct_variants(id_sub_or_product: string, id: string, variant_attribute_hash: string, id_shop: string): Promise<unknown>;
22596
22619
  getReportSales_Sendo(starttime: any, endtime: any, IDproduct: any, type?: any, IDbranch?: string): void;
22597
- fixOldVersion(type: any): false | Promise<any>;
22598
22620
  /**
22599
22621
  * @example:
22600
22622
  this.vhQuerySales.syncCollections_Mobile().then((bool:any)=>{
@@ -22616,7 +22638,6 @@ export declare class VhQuerySales {
22616
22638
  */
22617
22639
  syncCollections_Desktop(): Promise<unknown>;
22618
22640
  private checkExpireBranch_Sales;
22619
- private fixBill;
22620
22641
  /**
22621
22642
  *
22622
22643
  * @example:
@@ -25027,7 +25048,7 @@ export declare class VhQuerySales {
25027
25048
  * @param newbill_type
25028
25049
  * @return Promise => undefined
25029
25050
  */
25030
- saveBill_Billdetail(id_bill: any, newbill_type: number, billdate?: any): any;
25051
+ saveBill_Billdetail(id_bill: any, newbill_type: number): any;
25031
25052
  /**
25032
25053
  * hàm này chỉ dùng cho trường hợp bill_type 29->30 và 31
25033
25054
  * @example
@@ -25123,23 +25144,32 @@ export declare class VhQuerySales {
25123
25144
  * @return Promise => array / orror
25124
25145
  */
25125
25146
  getBill_details_byId_bill(id_bill: any): any;
25126
- getBill_detail(id_bill_detail: any): any;
25127
25147
  /**
25128
- * @example:
25129
- * let time = new Date();
25130
- * time.setDate(time.getDate()-7);
25131
- * this.vhQuerySales.getBill_details_byFields({bill_type:{$eq:1}}, {},{date:1},2)
25132
- .then((bill_details:any)=>{
25133
- console.log('getBills', bill_details);
25134
- },(error:any)=>{
25135
- console.log('error ', error);
25136
- })
25137
- * @param query
25138
- * @param projection — đang tìm hiểu, tạm thời để giá trị là {}
25139
- * @param sort — null hoặc {}:không sắp xếp; {date:1}: sắp xếp theo ASC; {date:-1}: sắp xếp theo DESC
25140
- * @param limit — null hoặc 0: không giới hạn record get về; 2: get về 2 record
25141
- * @return Array -> array = [{},{},...]
25142
- */
25148
+ * @example:
25149
+ * this.vhQuerySales.getBill_details_byID({id_bill:{$eq:id_bill}, bill_type:{$eq:5}}, {},{date:1},0)
25150
+ .then((bill_details)=>{
25151
+ console.log('bill_details', bill_details);
25152
+ })
25153
+ * @param query : trong query phải có query id_bill or id_product or id_subproduct....
25154
+ * @param sort — null hoặc {}:không sắp xếp; {date:1}: sắp xếp theo ASC; {date:-1}: sắp xếp theo DESC
25155
+ * @param limit — null hoặc 0: không giới hạn record get về; 2: get về 2 record
25156
+ * @return — Array -> array = [{},{},...]
25157
+ */
25158
+ private getBill_details_byID;
25159
+ /**
25160
+ * @example:
25161
+ * let time = new Date();
25162
+ * time.setDate(time.getDate()-7);
25163
+ * this.vhQuerySales.getBill_details_byFields({date:{$gte:time}, {bill_type:{$eq:5}}, {},{date:1},0)
25164
+ .then((bill_details)=>{
25165
+ console.log('getBill_details_byFields', bill_details);
25166
+ })
25167
+ * @param query trong query phải có date
25168
+ * @param projection — đang tìm hiểu, tạm thời để giá trị là {}
25169
+ * @param sort — null hoặc {}:không sắp xếp; {date:1}: sắp xếp theo ASC; {date:-1}: sắp xếp theo DESC
25170
+ * @param limit — null hoặc 0: không giới hạn record get về; 2: get về 2 record
25171
+ * @return — Array -> array = [{},{},...]
25172
+ */
25143
25173
  private getBill_details_byFields;
25144
25174
  /**
25145
25175
  * Hàm này tạo bill_code theo số thứ tự (trong ngày) của từng loại bill_type
@@ -25152,7 +25182,6 @@ export declare class VhQuerySales {
25152
25182
  * @param bill_type
25153
25183
  */
25154
25184
  createBillCode(billdate: any, bill_type: number): Promise<unknown>;
25155
- createYearColname(colname: any, billdate: any): string;
25156
25185
  /**
25157
25186
  * @example:
25158
25187
  * this.vhQuerySales.getBill('5fb67fda87c0f21d484cbdf3')
@@ -25162,21 +25191,6 @@ export declare class VhQuerySales {
25162
25191
  * @param id_bill
25163
25192
  */
25164
25193
  getBill(id_bill: any): Promise<unknown>;
25165
- /**
25166
- * @example:
25167
- * let time = new Date();
25168
- * time.setDate(time.getDate()-7);
25169
- * this.vhQuerySales.getBills({date:{$gte:time}}, {},{date:1},0)
25170
- .then((bills)=>{
25171
- console.log('getBills', bills);
25172
- })
25173
- * @param query
25174
- * @param projection — đang tìm hiểu, tạm thời để giá trị là {}
25175
- * @param sort — null hoặc {}:không sắp xếp; {date:1}: sắp xếp theo ASC; {date:-1}: sắp xếp theo DESC
25176
- * @param limit — null hoặc 0: không giới hạn record get về; 2: get về 2 record
25177
- * @return — Array -> array = [{},{},...]
25178
- */
25179
- private getBills;
25180
25194
  /**
25181
25195
  * @example:
25182
25196
  * let time = new Date();
@@ -25191,7 +25205,7 @@ export declare class VhQuerySales {
25191
25205
  * @param limit — null hoặc 0: không giới hạn record get về; 2: get về 2 record
25192
25206
  * @return — Array -> array = [{},{},...]
25193
25207
  */
25194
- getBills_byFields(query: object, projection?: object, sort?: object, limit?: number): Promise<unknown>;
25208
+ getBills_byFields(query: any, projection?: object, sort?: object, limit?: number): Promise<unknown>;
25195
25209
  /**
25196
25210
  * @example:
25197
25211
  * this.vhQuerySales.createBill({name:'Cuối tuần vui vẻ', type:2, active:true, date_start:new Date(), date_end: new Date()})
@@ -26507,7 +26521,7 @@ export declare class VhQuerySales {
26507
26521
  * @example:
26508
26522
  * this.vhQuerySales.getReportInputOutputReturns_Detail_byTime_byIDProduct_byBillTypeArray(time['startTime'], time['endTime'], 'UTWXdaU3UDq3xq7aK77p', [1])
26509
26523
  .then((bill_details:any)=>{
26510
- console.log('vhbill_details', bill_details);
26524
+ console.log('bill_details', bill_details);
26511
26525
  })
26512
26526
  * @param starttime
26513
26527
  * @param endtime
@@ -26539,7 +26553,7 @@ export declare class VhQuerySales {
26539
26553
  * @example:
26540
26554
  * this.vhQuerySales.getReportInputOutputInventory_byEndTime_byIDProduct_allRecords(endtime, 'all')
26541
26555
  .then((bill_details:any)=>{
26542
- console.log('vhbill_details', bill_details);
26556
+ console.log('bill_details', bill_details);
26543
26557
  })
26544
26558
  * @param starttime
26545
26559
  * @param endtime
@@ -26555,7 +26569,7 @@ export declare class VhQuerySales {
26555
26569
  * @example:
26556
26570
  * this.vhQuerySales.getReportInputOutputInventory_byEndTime_byIDProduct(endtime, IDsub_or_product, IDbranch)
26557
26571
  .then((bill_details:any)=>{
26558
- console.log('vhbill_details', bill_details);
26572
+ console.log('bill_details', bill_details);
26559
26573
  })
26560
26574
  * @param starttime
26561
26575
  * @param endtime
@@ -26581,7 +26595,7 @@ export declare class VhQuerySales {
26581
26595
  * @example:
26582
26596
  * this.vhQuerySales.getReportInputOutputInventory_Detail_byEndTime_byIDProduct(endtime, 'UTWXdaU3UDq3xq7aK77p')
26583
26597
  .then((bill_details:any)=>{
26584
- console.log('vhbill_details', bill_details);
26598
+ console.log('bill_details', bill_details);
26585
26599
  })
26586
26600
  * @param starttime
26587
26601
  * @param endtime
@@ -26595,7 +26609,7 @@ export declare class VhQuerySales {
26595
26609
  * @example:
26596
26610
  * this.vhQuerySales.getReportInputOutputInventory_Detail_byTime_byIDProduct(starttime , endtime, 'UTWXdaU3UDq3xq7aK77p')
26597
26611
  .then((bill_details:any)=>{
26598
- console.log('vhbill_details', bill_details);
26612
+ console.log('bill_details', bill_details);
26599
26613
  })
26600
26614
  * @param starttime
26601
26615
  * @param endtime
@@ -26609,7 +26623,7 @@ export declare class VhQuerySales {
26609
26623
  * @example:
26610
26624
  * this.vhQuerySales.getReportInputOutput_byTime_byIDProduct(starttime , endtime, 'UTWXdaU3UDq3xq7aK77p')
26611
26625
  .then((bill_details:any)=>{
26612
- console.log('vhbill_details', bill_details);
26626
+ console.log('bill_details', bill_details);
26613
26627
  })
26614
26628
  * @param starttime
26615
26629
  * @param endtime
@@ -26626,7 +26640,7 @@ export declare class VhQuerySales {
26626
26640
  * @example:
26627
26641
  * this.vhQuerySales.getReportInputOutput_Detail_byTime_byIDProduct(starttime , endtime, 'UTWXdaU3UDq3xq7aK77p')
26628
26642
  .then((bill_details:any)=>{
26629
- console.log('vhbill_details', bill_details);
26643
+ console.log('bill_details', bill_details);
26630
26644
  })
26631
26645
  * @param starttime
26632
26646
  * @param endtime
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ionic-vhframeworks",
3
- "version": "9.2.6",
3
+ "version": "9.2.7",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "^12.2.0",
6
6
  "@angular/core": "^12.2.0"