ionic-vhframeworks 10.9.0 → 10.9.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.
@@ -0,0 +1,9 @@
1
+ export declare function addCustomer(data: any): Promise<any>;
2
+ export declare function insertCustomer(_id: string, data: any): Promise<any>;
3
+ export declare function addCustomers(list: any[]): Promise<void>;
4
+ export declare function updateCustomer(_id: string, data: any): Promise<any>;
5
+ export declare function deleteCustomer(id: string): Promise<any>;
6
+ export declare function hardDeleteProduct(_id: string): Promise<any>;
7
+ export declare function getAllCustomers(): Promise<any>;
8
+ export declare function getLiveAllCustomers(): import("rxjs").Observable<any>;
9
+ export declare function getCustomerById(_id: string): Promise<any>;
@@ -0,0 +1,11 @@
1
+ import Dexie from 'dexie';
2
+ export declare class AppDB extends Dexie {
3
+ products: any;
4
+ customers: any;
5
+ meta: any;
6
+ constructor(dbName: string);
7
+ }
8
+ export declare function initDB(userId: string): AppDB;
9
+ export declare function getDB(): AppDB;
10
+ export declare function closeDB(): void;
11
+ export declare function deleteDB(userId: string): Promise<void>;
@@ -2942,6 +2942,7 @@ export declare class VhQueryCafe {
2942
2942
  private callback1syncbilltype;
2943
2943
  private callback2syncbilltype;
2944
2944
  private sync_code;
2945
+ private colname_array;
2945
2946
  /**
2946
2947
  * @Nghiệp vụ tạo (bill_type 5->1), hủy đơn hàng bán món ăn (dùng hàm)
2947
2948
  * {createBill, getBill} -> {createBill_detail, updateBill_detail, deleteBill_detail} -> {saveBill_Billdetail, deleteBill_Billdetail}
@@ -3040,6 +3041,12 @@ export declare class VhQueryCafe {
3040
3041
  * @returns Promise bool = true or false
3041
3042
  */
3042
3043
  syncCollections_Sales365_Desktop(): Promise<unknown>;
3044
+ /**
3045
+ * vhQueryCafe
3046
+ * Hàm này lấy về tất cả các collections mà firebase lưu trong cache ứng dụng, dữ liệu trong cache này dùng ko mất phí
3047
+ * @returns
3048
+ */
3049
+ private getLocalLiveIndexDB;
3043
3050
  private initSyncCollections;
3044
3051
  /**
3045
3052
  * @example:
@@ -3056,6 +3063,9 @@ export declare class VhQueryCafe {
3056
3063
  * @param obj
3057
3064
  */
3058
3065
  private syncRaw_Detail_ProductInsert;
3066
+ /**
3067
+ * VhQueryCafe
3068
+ */
3059
3069
  private syncRaw_Detail_ProductUpdate;
3060
3070
  /**
3061
3071
  * VhQueryCafe
@@ -7199,6 +7209,7 @@ export declare class VhQueryCafe {
7199
7209
  */
7200
7210
  getDebtSuppliers(starttime: any, endtime: any, IDsuppiler: string, IDbranch?: string): Promise<any>;
7201
7211
  /**
7212
+ * CÔNG NỢ KHÁCH HÀNG
7202
7213
  * @example:
7203
7214
  * let endtime = new Date();
7204
7215
  * let starttime = new Date('2020-07-01T05:24:00');
@@ -13337,6 +13348,7 @@ export declare class VhQuerySales {
13337
13348
  private callback1syncbilltype;
13338
13349
  private callback2syncbilltype;
13339
13350
  private sync_code;
13351
+ private colname_array;
13340
13352
  constructor(vhEinvoice: VhEinvoice, vhMGDB_auth: VhMGDB_auth, vhMGDB_rootdatabase: VhMGDB_rootdatabase, vhMGDB_database: VhMGDB_database, vhMGDB_socketMongoDB: VhMGDB_socketMongoDB, vhMGDB_tiki: VhMGDB_tiki, vhMGDB_sendo: VhMGDB_sendo, vhMGDB_lazada: VhMGDB_lazada, vhMGDB_socketFacebook: VhMGDB_socketFacebook, vhMGDB_paymentVNPAY: VhMGDB_paymentVNPAY, vhQuery: VhQuery, vhAuth: VhAuth, vhAlgorithm: VhAlgorithm, vhDisplayLEDService: VhDisplayLEDService, iap2: InAppPurchase2, platform: Platform);
13341
13353
  fix_loi_kieu_du_lieu_barcode(): Promise<unknown>;
13342
13354
  /**
@@ -14459,6 +14471,13 @@ export declare class VhQuerySales {
14459
14471
  * @returns Promise bool = true or false
14460
14472
  */
14461
14473
  syncCollections_Sales365_Desktop(): Promise<unknown>;
14474
+ private getLocalLiveIndexDB1;
14475
+ /**
14476
+ * vhQuerySales
14477
+ * Hàm này lấy về tất cả các collections mà firebase lưu trong cache ứng dụng, dữ liệu trong cache này dùng ko mất phí
14478
+ * @returns
14479
+ */
14480
+ private getLocalLiveIndexDB;
14462
14481
  private checkExpireBranch_Sales;
14463
14482
  private checkExpireBranch_Sales365;
14464
14483
  private initSyncCollections;
@@ -14473,10 +14492,14 @@ export declare class VhQuerySales {
14473
14492
  * Khi lấy obj từ database về, hàm syncRaw_Detail_ProductInsert sẽ đồng bộ obj vào 3 loại local rawproducts, detailproducts và products
14474
14493
  * (3 loại dữ liệu local đc fw sử dụng để tính toán hoặc trả về cho frontend khi cần), dùng cho type =3
14475
14494
  * @example:
14476
- * this.syncRaw_Detail_ProductInsert(obj);
14495
+ * this.vhQuerySales.syncRaw_Detail_ProductInsert(obj);
14477
14496
  * @param obj
14478
14497
  */
14479
14498
  private syncRaw_Detail_ProductInsert;
14499
+ /**
14500
+ * vhQuerySales
14501
+ * @param obj
14502
+ */
14480
14503
  private syncRaw_Detail_ProductUpdate;
14481
14504
  /**
14482
14505
  * vhQuerySales
@@ -18792,6 +18815,7 @@ export declare class VhQuerySales {
18792
18815
  * @returns
18793
18816
  */
18794
18817
  private syncInventoryEveryDay_Stock1stDayOfMonth;
18818
+ private syncInventoryEveryDay_Stock1stDayOfMonth_old;
18795
18819
  /**
18796
18820
  * this.vhQuerySales.xoaduthuatronglots()
18797
18821
  .then((bool:any)=>{
@@ -19093,6 +19117,38 @@ export declare class VhQuerySales {
19093
19117
  */
19094
19118
  getDebtSuppliers(starttime: any, endtime: any, IDsuppiler: string, IDbranch?: string): Promise<any>;
19095
19119
  /**
19120
+ * CÔNG NỢ KHÁCH HÀNG
19121
+ * @example:
19122
+ * let endtime = new Date();
19123
+ * let starttime = new Date('2020-07-01T05:24:00');
19124
+ * this.vhQuerySales.getDebtCustomers('gtrtyery56646577456')
19125
+ .then((debts)=>{
19126
+ console.log('getDebtCustomers', debts);
19127
+ })
19128
+ * @param IDbranch: id_branch hoặc 'all'
19129
+ * @return JSON(Array) => json.docs = [{id, name, index, debt, payment, rest,...},{},....]
19130
+ * Lưu ý: giá trị này trả về dạng array
19131
+ */
19132
+ private getDebtCustomers_danglam;
19133
+ /**
19134
+ * CÔNG NỢ KHÁCH HÀNG
19135
+ * @example:
19136
+ * let endtime = new Date();
19137
+ * let starttime = new Date('2020-07-01T05:24:00');
19138
+ * this.vhQuerySales.getDebtCustomers(starttime, endtime, 'yewwg44667njdt443s', 'gtrtyery56646577456')
19139
+ .then((debts)=>{
19140
+ console.log('getDebtCustomers', debts);
19141
+ })
19142
+ * @param starttime
19143
+ * @param endtime
19144
+ * @param id_customer: id_customer
19145
+ * @param IDbranch: id_branch hoặc 'all'
19146
+ * @return JSON(Array) => json.docs = [{id, name, index, debt, payment, rest,...},{},....]
19147
+ * Lưu ý: giá trị này trả về dạng array
19148
+ */
19149
+ private getDebtCustomer_byTime;
19150
+ /**
19151
+ * CÔNG NỢ KHÁCH HÀNG
19096
19152
  * @example:
19097
19153
  * let endtime = new Date();
19098
19154
  * let starttime = new Date('2020-07-01T05:24:00');
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ionic-vhframeworks",
3
- "version": "10.9.0",
3
+ "version": "10.9.2",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "^12.2.0",
6
6
  "@angular/core": "^12.2.0"