ionic-vhframeworks 9.5.5 → 9.5.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.
@@ -433,10 +433,12 @@ export declare class VhForFirstTime {
433
433
  private vhMGDB_auth;
434
434
  private vhMGDB_database;
435
435
  private vhMGDB_f3rdclouds;
436
+ private http;
436
437
  private vhAlgorithm;
437
- constructor(vhMGDB_auth: VhMGDB_auth, vhMGDB_database: VhMGDB_database, vhMGDB_f3rdclouds: VhMGDB_f3rdclouds, vhAlgorithm: VhAlgorithm);
438
+ constructor(vhMGDB_auth: VhMGDB_auth, vhMGDB_database: VhMGDB_database, vhMGDB_f3rdclouds: VhMGDB_f3rdclouds, http: HttpClient, vhAlgorithm: VhAlgorithm);
438
439
  addAPPdatabase_forFirstTime(): Promise<unknown>;
439
440
  addAPPdatabase_forFirstTime_Sales_Cafe(): Promise<unknown>;
441
+ addAPPdatabase_forFirstTime_Sales365(main_sector: string): Promise<unknown>;
440
442
  private addSales_id_retail;
441
443
  private addSales_tax;
442
444
  private addSales_category_product;
@@ -680,6 +682,7 @@ export declare class VhAuth {
680
682
  * vcode === 10: Developer logged in successfully
681
683
  */
682
684
  onAuthStateChanged_AutoWeb(): Promise<unknown>;
685
+ signUpOwner_Sales365(email: string, password: string, phoneNumber: string, info: any): Promise<unknown> | null;
683
686
  /**
684
687
  * @example:
685
688
  * this.vhAuth.signUpOwner_Sales('huyleduc92', '123456', '+84909925359',{})
@@ -1058,7 +1061,7 @@ export declare class VhAuth {
1058
1061
  localStorageSET(name: string, value: any): void;
1059
1062
  /**
1060
1063
  * @example GET:
1061
- * let object = localStorageGET('local_name');
1064
+ * let object = this.vhAuth.localStorageGET('local_name');
1062
1065
  * @returns
1063
1066
  */
1064
1067
  localStorageGET(name: string): any;
@@ -2393,6 +2396,24 @@ export declare class VhQueryCafe {
2393
2396
  * {createBill_Billdetail} -> {updateBill_Billdetail, deleteBill_Billdetail}
2394
2397
  */
2395
2398
  constructor(vhMGDB_auth: VhMGDB_auth, vhMGDB_database: VhMGDB_database, vhMGDB_rootdatabase: VhMGDB_rootdatabase, vhMGDB_socketMongoDB: VhMGDB_socketMongoDB, vhMGDB_paymentVNPAY: VhMGDB_paymentVNPAY, vhQuery: VhQuery, vhAuth: VhAuth, vhAlgorithm: VhAlgorithm, vhDisplayLEDService: VhDisplayLEDService);
2399
+ /**
2400
+ * Hàm trả về năm của billdate
2401
+ * @param billdate
2402
+ * @returns
2403
+ */
2404
+ private getYear;
2405
+ /**
2406
+ * Hàm trả về mảng (năm), gồm những năm từ năm tạo shop (thời điểm khách dùng phần mềm) đến năm hiện tại
2407
+ * @returns
2408
+ */
2409
+ private getYearsArray;
2410
+ /**
2411
+ * Hảm trả về mảng năm liên tiếp tương ứng trường date có trong tham số query truyền vào,
2412
+ * nếu trong query không có trường date thì lấy từ hàm getYearsArray()
2413
+ * @param query
2414
+ * @returns
2415
+ */
2416
+ private getYearsArray_fromQuery;
2396
2417
  /**
2397
2418
  * 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
2398
2419
  * @example:
@@ -5276,7 +5297,6 @@ export declare class VhQueryCafe {
5276
5297
  * @return Promise => object = {} or null
5277
5298
  */
5278
5299
  createBill_Billdetail(bill: any, bill_details: any): any;
5279
- private createBill_Billdetail1;
5280
5300
  /**
5281
5301
  * hàm này chỉ dùng cho trường hợp bill_type 5->1, 29->3031, 36->1, 42->40, 43->41, 52->50, 53->51
5282
5302
  * @example
@@ -5304,7 +5324,6 @@ export declare class VhQueryCafe {
5304
5324
  * @returns
5305
5325
  */
5306
5326
  updateBill_Billdetail(id_bill: any, bill: any, bill_details: any): any;
5307
- private updateBill_Billdetail1;
5308
5327
  /**
5309
5328
  * VhQueryCafe
5310
5329
  * Lưu ý: xóa tất cả các bill_type(từ 1 đến 28) đều dùng hàm này
@@ -5319,8 +5338,8 @@ export declare class VhQueryCafe {
5319
5338
  * @return Promise => true or orror
5320
5339
  */
5321
5340
  deleteBill_Billdetail(id_bill: any): any;
5322
- private deleteBill_Billdetail1;
5323
5341
  /**
5342
+ * Hàm lấy về các có kèm chương trình khuyến mãi
5324
5343
  * @example
5325
5344
  this.vhQueryCafe.getBill_details_byId_bill('RcECbNgU9BdYQo37s30p')
5326
5345
  .then((bill_details:any)=>{
@@ -5332,6 +5351,33 @@ export declare class VhQueryCafe {
5332
5351
  * @return Promise => array / orror
5333
5352
  */
5334
5353
  getBill_details_byId_bill(id_bill: any): any;
5354
+ /**
5355
+ * @example:
5356
+ * this.vhQueryCafe.getBill_details_byID({id_bill:{$eq:id_bill}, bill_type:{$eq:5}}, {},{date:1},0)
5357
+ .then((bill_details)=>{
5358
+ console.log('bill_details', bill_details);
5359
+ })
5360
+ * @param query : trong query phải có query id_bill or id_product or id_subproduct....
5361
+ * @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
5362
+ * @param limit — null hoặc 0: không giới hạn record get về; 2: get về 2 record
5363
+ * @return — Array -> array = [{},{},...]
5364
+ */
5365
+ private getBill_details_byID;
5366
+ /**
5367
+ * @example:
5368
+ * let time = new Date();
5369
+ * time.setDate(time.getDate()-7);
5370
+ * this.vhQuerySales.getBill_details_byFields({date:{$gte:time}, {bill_type:{$eq:5}}, {},{date:1},0)
5371
+ .then((bill_details)=>{
5372
+ console.log('getBill_details_byFields', bill_details);
5373
+ })
5374
+ * @param query trong query phải có date
5375
+ * @param projection — đang tìm hiểu, tạm thời để giá trị là {}
5376
+ * @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
5377
+ * @param limit — null hoặc 0: không giới hạn record get về; 2: get về 2 record
5378
+ * @return — Array -> array = [{},{},...]
5379
+ */
5380
+ private getBill_details_byFields;
5335
5381
  /**
5336
5382
  * VhQueryCafe:
5337
5383
  * @example
@@ -5346,7 +5392,6 @@ export declare class VhQueryCafe {
5346
5392
  */
5347
5393
  private getBill_details;
5348
5394
  private _getBill_details;
5349
- private getBill_detail;
5350
5395
  /**
5351
5396
  * @example:
5352
5397
  * this.vhQueryCafe.createBill_Detail({})
@@ -5462,7 +5507,7 @@ export declare class VhQueryCafe {
5462
5507
  * @param limit — null hoặc 0: không giới hạn record get về; 2: get về 2 record
5463
5508
  * @return — Array -> array = [{},{},...]
5464
5509
  */
5465
- getBills_byFields(query: object, projection?: object, sort?: object, limit?: number): Promise<unknown>;
5510
+ getBills_byFields(query: any, projection?: object, sort?: object, limit?: number): Promise<unknown>;
5466
5511
  /**
5467
5512
  * @example:
5468
5513
  * this.vhQueryCafe.createBill({name:'Cuối tuần vui vẻ', type:2, active:true, date_start:new Date(), date_end: new Date()})
@@ -7192,7 +7237,7 @@ export declare class VhQueryCafe {
7192
7237
  * @example:
7193
7238
  * this.vhQueryCafe.getReportInputOutputReturns_Detail_byTime_byIDMaterial_byBillTypeArray(time['startTime'], time['endTime'], 'UTWXdaU3UDq3xq7aK77p', [1])
7194
7239
  .then((bill_details:any)=>{
7195
- console.log('vhbill_details', bill_details);
7240
+ console.log('vhs_bill_details_', bill_details);
7196
7241
  })
7197
7242
  * @param starttime
7198
7243
  * @param endtime
@@ -7241,7 +7286,7 @@ export declare class VhQueryCafe {
7241
7286
  * @example:
7242
7287
  * this.vhQueryCafe.getReportInputOutputInventory_byEndTime_byIDMaterial(endtime, 'all')
7243
7288
  .then((bill_details:any)=>{
7244
- console.log('vhbill_details', bill_details);
7289
+ console.log('vhs_bill_details_', bill_details);
7245
7290
  })
7246
7291
  * @param starttime
7247
7292
  * @param endtime
@@ -7257,7 +7302,7 @@ export declare class VhQueryCafe {
7257
7302
  * @example:
7258
7303
  * this.vhQueryCafe.getReportInputOutputInventory_Detail_byEndTime_byIDMaterial(endtime, 'UTWXdaU3UDq3xq7aK77p')
7259
7304
  .then((bill_details:any)=>{
7260
- console.log('vhbill_details', bill_details);
7305
+ console.log('vhs_bill_details_', bill_details);
7261
7306
  })
7262
7307
  * @param starttime
7263
7308
  * @param endtime
@@ -7271,7 +7316,7 @@ export declare class VhQueryCafe {
7271
7316
  * @example:
7272
7317
  * this.vhQueryCafe.getReportInputOutputInventory_Detail_byEndTime_byIDMaterial(endtime, 'UTWXdaU3UDq3xq7aK77p')
7273
7318
  .then((bill_details:any)=>{
7274
- console.log('vhbill_details', bill_details);
7319
+ console.log('vhs_bill_details_', bill_details);
7275
7320
  })
7276
7321
  * @param starttime
7277
7322
  * @param endtime
@@ -7285,7 +7330,7 @@ export declare class VhQueryCafe {
7285
7330
  * @example:
7286
7331
  * this.vhQueryCafe.getReportInputOutputInventory_Detail_byTime_byIDMaterial(starttime , endtime, 'UTWXdaU3UDq3xq7aK77p')
7287
7332
  .then((bill_details:any)=>{
7288
- console.log('vhbill_details', bill_details);
7333
+ console.log('vhs_bill_details_', bill_details);
7289
7334
  })
7290
7335
  * @param starttime
7291
7336
  * @param endtime
@@ -7299,7 +7344,7 @@ export declare class VhQueryCafe {
7299
7344
  * @example:
7300
7345
  * this.vhQueryCafe.getReportInputOutput_byTime_byIDMaterial(starttime , endtime, 'UTWXdaU3UDq3xq7aK77p')
7301
7346
  .then((bill_details:any)=>{
7302
- console.log('vhbill_details', bill_details);
7347
+ console.log('vhs_bill_details_', bill_details);
7303
7348
  })
7304
7349
  * @param starttime
7305
7350
  * @param endtime
@@ -7316,7 +7361,7 @@ export declare class VhQueryCafe {
7316
7361
  * @example:
7317
7362
  * this.vhQueryCafe.getReportInputOutput_byTime_byIDMaterial(starttime , endtime, 'UTWXdaU3UDq3xq7aK77p')
7318
7363
  .then((bill_details:any)=>{
7319
- console.log('vhbill_details', bill_details);
7364
+ console.log('vhs_bill_details_', bill_details);
7320
7365
  })
7321
7366
  * @param starttime
7322
7367
  * @param endtime
@@ -7332,7 +7377,7 @@ export declare class VhQueryCafe {
7332
7377
  * @example:
7333
7378
  * this.vhQueryCafe.getReportInputOutput_Detail_byTime_byIDMaterial(starttime , endtime, 'UTWXdaU3UDq3xq7aK77p','sdfwe23qw245234t3')
7334
7379
  .then((bill_details:any)=>{
7335
- console.log('vhbill_details', bill_details);
7380
+ console.log('vhs_bill_details_', bill_details);
7336
7381
  })
7337
7382
  * @param starttime
7338
7383
  * @param endtime
@@ -9045,6 +9090,7 @@ export declare class VhQueryCafe {
9045
9090
  */
9046
9091
  private changeBillDetails_withPromotionNameUnitsLots;
9047
9092
  /**
9093
+ * vhQueryCafe
9048
9094
  * @example:
9049
9095
  * let _bill_details = this.vhQueryCafe.changeBillDetails_withNameUnitsLots(bill_details);
9050
9096
  * @param bill_details
@@ -18131,6 +18177,7 @@ export declare class VhQueryAutoWeb {
18131
18177
  */
18132
18178
  private getBill_details;
18133
18179
  /**
18180
+ * Hàm lấy về các có kèm chương trình khuyến mãi
18134
18181
  * @example
18135
18182
  this.vhQueryAutoWeb.getBill_details_byId_bill('RcECbNgU9BdYQo37s30p')
18136
18183
  .then((bill_details)=>{
@@ -21686,8 +21733,22 @@ export declare class VhQuerySales {
21686
21733
  })
21687
21734
  */
21688
21735
  fix_mot_lan_duy_nhat_inventory_null(): Promise<unknown>;
21736
+ /**
21737
+ * Hàm trả về năm của billdate
21738
+ * @param billdate
21739
+ * @returns
21740
+ */
21689
21741
  private getYear;
21742
+ /**
21743
+ * Hàm trả về mảng (năm), gồm những năm từ năm tạo shop (thời điểm khách dùng phần mềm) đến năm hiện tại
21744
+ * @returns
21745
+ */
21690
21746
  private getYearsArray;
21747
+ /**
21748
+ * Hảm trả về mảng năm liên tiếp tương ứng trường date có trong tham số query truyền vào
21749
+ * @param query
21750
+ * @returns
21751
+ */
21691
21752
  private getYearsArray_fromQuery;
21692
21753
  /**
21693
21754
  * 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
@@ -25278,6 +25339,7 @@ export declare class VhQuerySales {
25278
25339
  */
25279
25340
  deleteBill_Billdetail(id_bill: any): any;
25280
25341
  /**
25342
+ * Hàm lấy về các có kèm chương trình khuyến mãi
25281
25343
  * @example
25282
25344
  this.vhQuerySales.getBill_details_byId_bill('RcECbNgU9BdYQo37s30p')
25283
25345
  .then((bill_details:any)=>{
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ionic-vhframeworks",
3
- "version": "9.5.5",
3
+ "version": "9.5.6",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "^12.2.0",
6
6
  "@angular/core": "^12.2.0"