ionic-vhframeworks 9.2.5 → 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({})
@@ -13137,6 +13137,8 @@ export declare class VhQueryAutoWeb {
13137
13137
  * this.vhQueryAutoWeb.getIDPage_byLink('trang-tin-tuc')
13138
13138
  .then((id_page)=>{
13139
13139
  console.log('getIDPage_byLink', id_page);
13140
+ }, error=>{
13141
+
13140
13142
  })
13141
13143
  * @param link
13142
13144
  * @return Promise => null or string
@@ -13169,9 +13171,18 @@ export declare class VhQueryAutoWeb {
13169
13171
  */
13170
13172
  getDetailPage(id_page: any): Promise<unknown>;
13171
13173
  /**
13172
- *
13174
+ * Hàm này giúp đồng bộ giao diện người dùng khi có sự thay đổi giá trị ở database một cách tự động,
13175
+ * nghĩa là khi thêm, xóa, sửa các giá trị trong database thì giao diện tự động thay đổi theo
13176
+ * @example
13177
+ * this.vhQueryAutoWeb.pipeDetailPage_byLink('gioi-thieu')
13178
+ .then(()=>{
13179
+ console.log('pipeDetailPage_byLink');
13180
+ }, error=>{
13181
+ console.log(error)
13182
+ })
13173
13183
  */
13174
13184
  pipeDetailPage_byLink(link: any): Promise<unknown>;
13185
+ pipeDetailPage_byLink1(link: any): Promise<unknown>;
13175
13186
  /**
13176
13187
  * Hàm này giúp đồng bộ giao diện người dùng khi có sự thay đổi giá trị ở database một cách tự động,
13177
13188
  * nghĩa là khi thêm, xóa, sửa các giá trị trong database thì giao diện tự động thay đổi theo
@@ -18008,7 +18019,7 @@ export declare class VhQueryAutoWeb {
18008
18019
  * vcode == 0: 'success'
18009
18020
  * vcode == 11: 'not logged in'
18010
18021
  */
18011
- getBill_detail(id_bill_detail: any): Promise<unknown>;
18022
+ private getBill_detail;
18012
18023
  /**
18013
18024
  * @example:
18014
18025
  * this.vhQueryAutoWeb.deleteBill_Detail('5fb67fda87c0f21d484cbdf3')
@@ -19459,6 +19470,26 @@ export declare class VhBuildAutoWeb {
19459
19470
  * @return null or object
19460
19471
  */
19461
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>;
19462
19493
  /**
19463
19494
  * @example
19464
19495
  * this.vhBuildAutoWeb.static_getDoc_fromDatabase('categories', '5fb67fda87c0f21d484cbdf3')
@@ -21503,6 +21534,9 @@ export declare class VhQuerySales {
21503
21534
  })
21504
21535
  */
21505
21536
  fix_mot_lan_duy_nhat_inventory_null(): Promise<unknown>;
21537
+ private getYear;
21538
+ private getYearsArray;
21539
+ private getYearsArray_fromQuery;
21506
21540
  /**
21507
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
21508
21542
  * @example:
@@ -22583,7 +22617,6 @@ export declare class VhQuerySales {
22583
22617
  */
22584
22618
  deleteMergeSendoProduct_variants(id_sub_or_product: string, id: string, variant_attribute_hash: string, id_shop: string): Promise<unknown>;
22585
22619
  getReportSales_Sendo(starttime: any, endtime: any, IDproduct: any, type?: any, IDbranch?: string): void;
22586
- fixOldVersion(type: any): false | Promise<any>;
22587
22620
  /**
22588
22621
  * @example:
22589
22622
  this.vhQuerySales.syncCollections_Mobile().then((bool:any)=>{
@@ -22605,7 +22638,6 @@ export declare class VhQuerySales {
22605
22638
  */
22606
22639
  syncCollections_Desktop(): Promise<unknown>;
22607
22640
  private checkExpireBranch_Sales;
22608
- private fixBill;
22609
22641
  /**
22610
22642
  *
22611
22643
  * @example:
@@ -25112,23 +25144,32 @@ export declare class VhQuerySales {
25112
25144
  * @return Promise => array / orror
25113
25145
  */
25114
25146
  getBill_details_byId_bill(id_bill: any): any;
25115
- getBill_detail(id_bill_detail: any): any;
25116
25147
  /**
25117
- * @example:
25118
- * let time = new Date();
25119
- * time.setDate(time.getDate()-7);
25120
- * this.vhQuerySales.getBill_details_byFields({bill_type:{$eq:1}}, {},{date:1},2)
25121
- .then((bill_details:any)=>{
25122
- console.log('getBills', bill_details);
25123
- },(error:any)=>{
25124
- console.log('error ', error);
25125
- })
25126
- * @param query
25127
- * @param projection — đang tìm hiểu, tạm thời để giá trị là {}
25128
- * @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
25129
- * @param limit — null hoặc 0: không giới hạn record get về; 2: get về 2 record
25130
- * @return Array -> array = [{},{},...]
25131
- */
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
+ */
25132
25173
  private getBill_details_byFields;
25133
25174
  /**
25134
25175
  * Hàm này tạo bill_code theo số thứ tự (trong ngày) của từng loại bill_type
@@ -25150,21 +25191,6 @@ export declare class VhQuerySales {
25150
25191
  * @param id_bill
25151
25192
  */
25152
25193
  getBill(id_bill: any): Promise<unknown>;
25153
- /**
25154
- * @example:
25155
- * let time = new Date();
25156
- * time.setDate(time.getDate()-7);
25157
- * this.vhQuerySales.getBills({date:{$gte:time}}, {},{date:1},0)
25158
- .then((bills)=>{
25159
- console.log('getBills', bills);
25160
- })
25161
- * @param query
25162
- * @param projection — đang tìm hiểu, tạm thời để giá trị là {}
25163
- * @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
25164
- * @param limit — null hoặc 0: không giới hạn record get về; 2: get về 2 record
25165
- * @return — Array -> array = [{},{},...]
25166
- */
25167
- private getBills;
25168
25194
  /**
25169
25195
  * @example:
25170
25196
  * let time = new Date();
@@ -25179,7 +25205,7 @@ export declare class VhQuerySales {
25179
25205
  * @param limit — null hoặc 0: không giới hạn record get về; 2: get về 2 record
25180
25206
  * @return — Array -> array = [{},{},...]
25181
25207
  */
25182
- 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>;
25183
25209
  /**
25184
25210
  * @example:
25185
25211
  * this.vhQuerySales.createBill({name:'Cuối tuần vui vẻ', type:2, active:true, date_start:new Date(), date_end: new Date()})
@@ -26495,7 +26521,7 @@ export declare class VhQuerySales {
26495
26521
  * @example:
26496
26522
  * this.vhQuerySales.getReportInputOutputReturns_Detail_byTime_byIDProduct_byBillTypeArray(time['startTime'], time['endTime'], 'UTWXdaU3UDq3xq7aK77p', [1])
26497
26523
  .then((bill_details:any)=>{
26498
- console.log('vhbill_details', bill_details);
26524
+ console.log('bill_details', bill_details);
26499
26525
  })
26500
26526
  * @param starttime
26501
26527
  * @param endtime
@@ -26527,7 +26553,7 @@ export declare class VhQuerySales {
26527
26553
  * @example:
26528
26554
  * this.vhQuerySales.getReportInputOutputInventory_byEndTime_byIDProduct_allRecords(endtime, 'all')
26529
26555
  .then((bill_details:any)=>{
26530
- console.log('vhbill_details', bill_details);
26556
+ console.log('bill_details', bill_details);
26531
26557
  })
26532
26558
  * @param starttime
26533
26559
  * @param endtime
@@ -26543,7 +26569,7 @@ export declare class VhQuerySales {
26543
26569
  * @example:
26544
26570
  * this.vhQuerySales.getReportInputOutputInventory_byEndTime_byIDProduct(endtime, IDsub_or_product, IDbranch)
26545
26571
  .then((bill_details:any)=>{
26546
- console.log('vhbill_details', bill_details);
26572
+ console.log('bill_details', bill_details);
26547
26573
  })
26548
26574
  * @param starttime
26549
26575
  * @param endtime
@@ -26569,7 +26595,7 @@ export declare class VhQuerySales {
26569
26595
  * @example:
26570
26596
  * this.vhQuerySales.getReportInputOutputInventory_Detail_byEndTime_byIDProduct(endtime, 'UTWXdaU3UDq3xq7aK77p')
26571
26597
  .then((bill_details:any)=>{
26572
- console.log('vhbill_details', bill_details);
26598
+ console.log('bill_details', bill_details);
26573
26599
  })
26574
26600
  * @param starttime
26575
26601
  * @param endtime
@@ -26583,7 +26609,7 @@ export declare class VhQuerySales {
26583
26609
  * @example:
26584
26610
  * this.vhQuerySales.getReportInputOutputInventory_Detail_byTime_byIDProduct(starttime , endtime, 'UTWXdaU3UDq3xq7aK77p')
26585
26611
  .then((bill_details:any)=>{
26586
- console.log('vhbill_details', bill_details);
26612
+ console.log('bill_details', bill_details);
26587
26613
  })
26588
26614
  * @param starttime
26589
26615
  * @param endtime
@@ -26597,7 +26623,7 @@ export declare class VhQuerySales {
26597
26623
  * @example:
26598
26624
  * this.vhQuerySales.getReportInputOutput_byTime_byIDProduct(starttime , endtime, 'UTWXdaU3UDq3xq7aK77p')
26599
26625
  .then((bill_details:any)=>{
26600
- console.log('vhbill_details', bill_details);
26626
+ console.log('bill_details', bill_details);
26601
26627
  })
26602
26628
  * @param starttime
26603
26629
  * @param endtime
@@ -26614,7 +26640,7 @@ export declare class VhQuerySales {
26614
26640
  * @example:
26615
26641
  * this.vhQuerySales.getReportInputOutput_Detail_byTime_byIDProduct(starttime , endtime, 'UTWXdaU3UDq3xq7aK77p')
26616
26642
  .then((bill_details:any)=>{
26617
- console.log('vhbill_details', bill_details);
26643
+ console.log('bill_details', bill_details);
26618
26644
  })
26619
26645
  * @param starttime
26620
26646
  * @param endtime
@@ -26646,6 +26672,7 @@ export declare class VhQuerySales {
26646
26672
  * vhQuerySales
26647
26673
  * @returns
26648
26674
  */
26675
+ private syncInventoryEveryDay_Stock1stDayOfMonth_new;
26649
26676
  private syncInventoryEveryDay_Stock1stDayOfMonth;
26650
26677
  /**
26651
26678
  * this.vhQuerySales.xoaduthuatronglots()
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ionic-vhframeworks",
3
- "version": "9.2.5",
3
+ "version": "9.2.7",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "^12.2.0",
6
6
  "@angular/core": "^12.2.0"