ionic-vhframeworks 9.5.5 → 9.5.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.
@@ -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',{})
@@ -987,7 +990,9 @@ export declare class VhAuth {
987
990
  * @param camserverversion
988
991
  * @param fwcode
989
992
  * @param database : tất cả database 'all' hoặc một database nào đó '4wk3JMSwSjh4kOLWOMbLbWt0Rdk2'
990
- * @returns void
993
+ * @returns Promise => boolean
994
+ * - boolean: true cho phép chạy dự án
995
+ * - boolean: false không cho chạy dự án, trường bị là mở từ 2 tab của 1 trình duyệt trở lên => đề nghị đóng tab đang mở
991
996
  */
992
997
  initializeProject(projectname: string, dbstorage: string, imgstorage: string, tplstorage: string, dbserverversion: string, camserverversion: string, fwcode: number, database: string): any;
993
998
  /**
@@ -1058,7 +1063,7 @@ export declare class VhAuth {
1058
1063
  localStorageSET(name: string, value: any): void;
1059
1064
  /**
1060
1065
  * @example GET:
1061
- * let object = localStorageGET('local_name');
1066
+ * let object = this.vhAuth.localStorageGET('local_name');
1062
1067
  * @returns
1063
1068
  */
1064
1069
  localStorageGET(name: string): any;
@@ -2393,6 +2398,24 @@ export declare class VhQueryCafe {
2393
2398
  * {createBill_Billdetail} -> {updateBill_Billdetail, deleteBill_Billdetail}
2394
2399
  */
2395
2400
  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);
2401
+ /**
2402
+ * Hàm trả về năm của billdate
2403
+ * @param billdate
2404
+ * @returns
2405
+ */
2406
+ private getYear;
2407
+ /**
2408
+ * 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
2409
+ * @returns
2410
+ */
2411
+ private getYearsArray;
2412
+ /**
2413
+ * 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,
2414
+ * nếu trong query không có trường date thì lấy từ hàm getYearsArray()
2415
+ * @param query
2416
+ * @returns
2417
+ */
2418
+ private getYearsArray_fromQuery;
2396
2419
  /**
2397
2420
  * 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
2421
  * @example:
@@ -5276,7 +5299,6 @@ export declare class VhQueryCafe {
5276
5299
  * @return Promise => object = {} or null
5277
5300
  */
5278
5301
  createBill_Billdetail(bill: any, bill_details: any): any;
5279
- private createBill_Billdetail1;
5280
5302
  /**
5281
5303
  * 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
5304
  * @example
@@ -5304,7 +5326,6 @@ export declare class VhQueryCafe {
5304
5326
  * @returns
5305
5327
  */
5306
5328
  updateBill_Billdetail(id_bill: any, bill: any, bill_details: any): any;
5307
- private updateBill_Billdetail1;
5308
5329
  /**
5309
5330
  * VhQueryCafe
5310
5331
  * Lưu ý: xóa tất cả các bill_type(từ 1 đến 28) đều dùng hàm này
@@ -5319,8 +5340,8 @@ export declare class VhQueryCafe {
5319
5340
  * @return Promise => true or orror
5320
5341
  */
5321
5342
  deleteBill_Billdetail(id_bill: any): any;
5322
- private deleteBill_Billdetail1;
5323
5343
  /**
5344
+ * Hàm lấy về các có kèm chương trình khuyến mãi
5324
5345
  * @example
5325
5346
  this.vhQueryCafe.getBill_details_byId_bill('RcECbNgU9BdYQo37s30p')
5326
5347
  .then((bill_details:any)=>{
@@ -5332,6 +5353,33 @@ export declare class VhQueryCafe {
5332
5353
  * @return Promise => array / orror
5333
5354
  */
5334
5355
  getBill_details_byId_bill(id_bill: any): any;
5356
+ /**
5357
+ * @example:
5358
+ * this.vhQueryCafe.getBill_details_byID({id_bill:{$eq:id_bill}, bill_type:{$eq:5}}, {},{date:1},0)
5359
+ .then((bill_details)=>{
5360
+ console.log('bill_details', bill_details);
5361
+ })
5362
+ * @param query : trong query phải có query id_bill or id_product or id_subproduct....
5363
+ * @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
5364
+ * @param limit — null hoặc 0: không giới hạn record get về; 2: get về 2 record
5365
+ * @return — Array -> array = [{},{},...]
5366
+ */
5367
+ private getBill_details_byID;
5368
+ /**
5369
+ * @example:
5370
+ * let time = new Date();
5371
+ * time.setDate(time.getDate()-7);
5372
+ * this.vhQuerySales.getBill_details_byFields({date:{$gte:time}, {bill_type:{$eq:5}}, {},{date:1},0)
5373
+ .then((bill_details)=>{
5374
+ console.log('getBill_details_byFields', bill_details);
5375
+ })
5376
+ * @param query trong query phải có date
5377
+ * @param projection — đang tìm hiểu, tạm thời để giá trị là {}
5378
+ * @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
5379
+ * @param limit — null hoặc 0: không giới hạn record get về; 2: get về 2 record
5380
+ * @return — Array -> array = [{},{},...]
5381
+ */
5382
+ private getBill_details_byFields;
5335
5383
  /**
5336
5384
  * VhQueryCafe:
5337
5385
  * @example
@@ -5346,7 +5394,6 @@ export declare class VhQueryCafe {
5346
5394
  */
5347
5395
  private getBill_details;
5348
5396
  private _getBill_details;
5349
- private getBill_detail;
5350
5397
  /**
5351
5398
  * @example:
5352
5399
  * this.vhQueryCafe.createBill_Detail({})
@@ -5462,7 +5509,7 @@ export declare class VhQueryCafe {
5462
5509
  * @param limit — null hoặc 0: không giới hạn record get về; 2: get về 2 record
5463
5510
  * @return — Array -> array = [{},{},...]
5464
5511
  */
5465
- getBills_byFields(query: object, projection?: object, sort?: object, limit?: number): Promise<unknown>;
5512
+ getBills_byFields(query: any, projection?: object, sort?: object, limit?: number): Promise<unknown>;
5466
5513
  /**
5467
5514
  * @example:
5468
5515
  * this.vhQueryCafe.createBill({name:'Cuối tuần vui vẻ', type:2, active:true, date_start:new Date(), date_end: new Date()})
@@ -7192,7 +7239,7 @@ export declare class VhQueryCafe {
7192
7239
  * @example:
7193
7240
  * this.vhQueryCafe.getReportInputOutputReturns_Detail_byTime_byIDMaterial_byBillTypeArray(time['startTime'], time['endTime'], 'UTWXdaU3UDq3xq7aK77p', [1])
7194
7241
  .then((bill_details:any)=>{
7195
- console.log('vhbill_details', bill_details);
7242
+ console.log('vhs_bill_details_', bill_details);
7196
7243
  })
7197
7244
  * @param starttime
7198
7245
  * @param endtime
@@ -7241,7 +7288,7 @@ export declare class VhQueryCafe {
7241
7288
  * @example:
7242
7289
  * this.vhQueryCafe.getReportInputOutputInventory_byEndTime_byIDMaterial(endtime, 'all')
7243
7290
  .then((bill_details:any)=>{
7244
- console.log('vhbill_details', bill_details);
7291
+ console.log('vhs_bill_details_', bill_details);
7245
7292
  })
7246
7293
  * @param starttime
7247
7294
  * @param endtime
@@ -7257,7 +7304,7 @@ export declare class VhQueryCafe {
7257
7304
  * @example:
7258
7305
  * this.vhQueryCafe.getReportInputOutputInventory_Detail_byEndTime_byIDMaterial(endtime, 'UTWXdaU3UDq3xq7aK77p')
7259
7306
  .then((bill_details:any)=>{
7260
- console.log('vhbill_details', bill_details);
7307
+ console.log('vhs_bill_details_', bill_details);
7261
7308
  })
7262
7309
  * @param starttime
7263
7310
  * @param endtime
@@ -7271,7 +7318,7 @@ export declare class VhQueryCafe {
7271
7318
  * @example:
7272
7319
  * this.vhQueryCafe.getReportInputOutputInventory_Detail_byEndTime_byIDMaterial(endtime, 'UTWXdaU3UDq3xq7aK77p')
7273
7320
  .then((bill_details:any)=>{
7274
- console.log('vhbill_details', bill_details);
7321
+ console.log('vhs_bill_details_', bill_details);
7275
7322
  })
7276
7323
  * @param starttime
7277
7324
  * @param endtime
@@ -7285,7 +7332,7 @@ export declare class VhQueryCafe {
7285
7332
  * @example:
7286
7333
  * this.vhQueryCafe.getReportInputOutputInventory_Detail_byTime_byIDMaterial(starttime , endtime, 'UTWXdaU3UDq3xq7aK77p')
7287
7334
  .then((bill_details:any)=>{
7288
- console.log('vhbill_details', bill_details);
7335
+ console.log('vhs_bill_details_', bill_details);
7289
7336
  })
7290
7337
  * @param starttime
7291
7338
  * @param endtime
@@ -7299,7 +7346,7 @@ export declare class VhQueryCafe {
7299
7346
  * @example:
7300
7347
  * this.vhQueryCafe.getReportInputOutput_byTime_byIDMaterial(starttime , endtime, 'UTWXdaU3UDq3xq7aK77p')
7301
7348
  .then((bill_details:any)=>{
7302
- console.log('vhbill_details', bill_details);
7349
+ console.log('vhs_bill_details_', bill_details);
7303
7350
  })
7304
7351
  * @param starttime
7305
7352
  * @param endtime
@@ -7316,7 +7363,7 @@ export declare class VhQueryCafe {
7316
7363
  * @example:
7317
7364
  * this.vhQueryCafe.getReportInputOutput_byTime_byIDMaterial(starttime , endtime, 'UTWXdaU3UDq3xq7aK77p')
7318
7365
  .then((bill_details:any)=>{
7319
- console.log('vhbill_details', bill_details);
7366
+ console.log('vhs_bill_details_', bill_details);
7320
7367
  })
7321
7368
  * @param starttime
7322
7369
  * @param endtime
@@ -7332,7 +7379,7 @@ export declare class VhQueryCafe {
7332
7379
  * @example:
7333
7380
  * this.vhQueryCafe.getReportInputOutput_Detail_byTime_byIDMaterial(starttime , endtime, 'UTWXdaU3UDq3xq7aK77p','sdfwe23qw245234t3')
7334
7381
  .then((bill_details:any)=>{
7335
- console.log('vhbill_details', bill_details);
7382
+ console.log('vhs_bill_details_', bill_details);
7336
7383
  })
7337
7384
  * @param starttime
7338
7385
  * @param endtime
@@ -9045,6 +9092,7 @@ export declare class VhQueryCafe {
9045
9092
  */
9046
9093
  private changeBillDetails_withPromotionNameUnitsLots;
9047
9094
  /**
9095
+ * vhQueryCafe
9048
9096
  * @example:
9049
9097
  * let _bill_details = this.vhQueryCafe.changeBillDetails_withNameUnitsLots(bill_details);
9050
9098
  * @param bill_details
@@ -18131,6 +18179,7 @@ export declare class VhQueryAutoWeb {
18131
18179
  */
18132
18180
  private getBill_details;
18133
18181
  /**
18182
+ * Hàm lấy về các có kèm chương trình khuyến mãi
18134
18183
  * @example
18135
18184
  this.vhQueryAutoWeb.getBill_details_byId_bill('RcECbNgU9BdYQo37s30p')
18136
18185
  .then((bill_details)=>{
@@ -21686,8 +21735,22 @@ export declare class VhQuerySales {
21686
21735
  })
21687
21736
  */
21688
21737
  fix_mot_lan_duy_nhat_inventory_null(): Promise<unknown>;
21738
+ /**
21739
+ * Hàm trả về năm của billdate
21740
+ * @param billdate
21741
+ * @returns
21742
+ */
21689
21743
  private getYear;
21744
+ /**
21745
+ * 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
21746
+ * @returns
21747
+ */
21690
21748
  private getYearsArray;
21749
+ /**
21750
+ * 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
21751
+ * @param query
21752
+ * @returns
21753
+ */
21691
21754
  private getYearsArray_fromQuery;
21692
21755
  /**
21693
21756
  * 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 +25341,7 @@ export declare class VhQuerySales {
25278
25341
  */
25279
25342
  deleteBill_Billdetail(id_bill: any): any;
25280
25343
  /**
25344
+ * Hàm lấy về các có kèm chương trình khuyến mãi
25281
25345
  * @example
25282
25346
  this.vhQuerySales.getBill_details_byId_bill('RcECbNgU9BdYQo37s30p')
25283
25347
  .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.7",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "^12.2.0",
6
6
  "@angular/core": "^12.2.0"