ionic-vhframeworks 3.5.1 → 3.5.5

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.
@@ -330,6 +330,21 @@ export declare class VhAuth {
330
330
  * @returns
331
331
  */
332
332
  localStorageGET(name: string): any;
333
+ /**
334
+ * @example:
335
+ * this.vhAuth.signUpOwner_Sales('huyleduc92', '123456', '+84909925359',{})
336
+ .then((owner)=>{
337
+ console.log('signUpOwner', owner);
338
+ },error=>{
339
+ console.log('error', error);
340
+ })
341
+ * @param email
342
+ * @param password
343
+ * @param scode
344
+ * @param info
345
+ * @return Promise => owner={}
346
+ */
347
+ signUpOwner_Sales(email: string, password: string, phoneNumber: string, info: object): Promise<unknown>;
333
348
  /**
334
349
  * @example:
335
350
  * this.vhAuth.signUpOwner('huyleduc92', '123456', '+84909925359',{})
@@ -982,6 +997,7 @@ export declare class VhQueryCafe {
982
997
  private subjecttaxs;
983
998
  private subjectareas;
984
999
  private subjecttables;
1000
+ private callbackdispatcher;
985
1001
  /**
986
1002
  * @Nghiệp vụ tạo (bill_type 5->1), hủy đơn hàng bán món ăn (dùng hàm)
987
1003
  * {createBill, getBill} -> {createBill_detail, updateBill_detail, deleteBill_detail} -> {saveBill_Billdetail, deleteBill_Billdetail}
@@ -1041,7 +1057,6 @@ export declare class VhQueryCafe {
1041
1057
  */
1042
1058
  sendImageToAppCare(image: string): Promise<unknown>;
1043
1059
  startLocalStorage(): Promise<any>;
1044
- callbackdispatcher: any;
1045
1060
  observableDispatcher(ptype: any): Observable<any>;
1046
1061
  /**
1047
1062
  * @example:
@@ -6513,7 +6528,49 @@ export declare class VhEcommerce {
6513
6528
  private vhmongo_firebase;
6514
6529
  private productlistshopees;
6515
6530
  private shoplistshopee;
6531
+ private lazadapricecomparinglist;
6532
+ private tikipricecomparinglist;
6533
+ private sendopricecomparinglist;
6534
+ private shopeepricecomparinglist;
6535
+ private callbacklazadapricecomparing;
6516
6536
  constructor(vhmongo_firebase: Vhmongo_firebase);
6537
+ /**
6538
+ * @example:
6539
+ * this.vhEcommerce.observableLazadaPriceComparing('5fb6780ca2148e09806c5b01')
6540
+ .subscribe((data)=> {
6541
+ console.log('observableLazadaPriceComparing', data);
6542
+ },(error:any) => {
6543
+ console.log(error);
6544
+ })
6545
+ * @param id_branch
6546
+ * @returns Observable =>
6547
+ */
6548
+ observableLazadaPriceComparing(id_branch: string): Observable<unknown>;
6549
+ /**
6550
+ * @example:
6551
+ * this.vhEcommerce.closeLazadaPriceComparing();
6552
+ * disconnect LazadaPriceComparing in the APP
6553
+ * @returns void
6554
+ */
6555
+ closeLazadaPriceComparing(): void;
6556
+ /**
6557
+ * let lazadapricecomparinglist = this.vhEcommerce.getLocalLazadaPriceComparing();
6558
+ * @returns Array
6559
+ */
6560
+ getLocalLazadaPriceComparing(): any;
6561
+ /**
6562
+ * @example:
6563
+ * this.vhEcommerce.restartEcommercePriceComparingMACHINE('5fb6780ca2148e09806c5b01')
6564
+ .then((bool)=>{
6565
+ console.log('restartEcommercePriceComparingMACHINE', bool);
6566
+ }, error=>{
6567
+ console.log('error', error);
6568
+ })
6569
+ * @param id_billdetail
6570
+ * @param data
6571
+ * @return Promise => bool = true or false
6572
+ */
6573
+ restartEcommercePriceComparingMACHINE(): Promise<unknown>;
6517
6574
  /**
6518
6575
  * Lấy về tất cả các shops lazada, sendo, tiki, shopee, dùng trong cấu hình gian hàng
6519
6576
  * @example:
@@ -6635,6 +6692,21 @@ export declare class VhEcommerce {
6635
6692
  * @returns Promise => obj ={} or null
6636
6693
  */
6637
6694
  getSalesOrderDetailShopee(order_sn: string, access_token: string, id_shop: any): Promise<unknown>;
6695
+ /**
6696
+ * Hàm này lấy về tracking_number của một hóa đơn khi đơn chuyển sang trạng thái chờ lấy hàng
6697
+ * @example
6698
+ * this.vhEcommerce.getTrackingNumberShopee('14424213387', '403754acaafc4564a16c19faa32d73c8', 'gsdr3454u54w34tfq')
6699
+ .then((result)=>{
6700
+ console.log('getTrackingNumberShopee', result);
6701
+ },error=>{
6702
+ console.log('error', error);
6703
+ })
6704
+ * @param order_sn
6705
+ * @param access_token
6706
+ * @param id_shop
6707
+ * @returns Promise => obj ={}
6708
+ */
6709
+ getTrackingNumberShopee(order_sn: string, access_token: string, id_shop: any): Promise<unknown>;
6638
6710
  /**
6639
6711
  * @example:
6640
6712
  * let product = this.vhQuerySales.getlocalProduct(id_product);
@@ -7123,9 +7195,10 @@ export declare class VhQuerySales {
7123
7195
  <Product>
7124
7196
  <Skus>
7125
7197
  <Sku>
7126
- <SellerSku>7194020293</SellerSku>
7127
- <Price>990000</Price>
7128
- <Quantity>31</Quantity>
7198
+ <ItemId>383144083</ItemId>
7199
+ <SkuId>647304827</SkuId>
7200
+ <SellerSku>ThietBiBaoDongChongTromHongNgoaiHT1AS</SellerSku>
7201
+ <price>268000</price>
7129
7202
  </Sku>
7130
7203
  </Skus>
7131
7204
  </Product>
@@ -9972,29 +10045,6 @@ export declare class VhQuerySales {
9972
10045
  * @Notice bill_type = [1,10,15,30,2,3,9,31]
9973
10046
  */
9974
10047
  getReportInputOutputInventory_byTime_byIDProduct(starttime: any, endtime: any, IDproduct: any, IDbranch?: any): Promise<any>;
9975
- /**
9976
- * Hàm này dùng trong page LỢI NHUẬN HÀNG HÓA
9977
- * @example:
9978
- * this.vhQuerySales.getReportProfit_byTime_byIDProduct(starttime , endtime, 'all', 'tj1iYodbVoShwtEetACx')
9979
- .then((json)=>{
9980
- console.log('json', json);
9981
- })
9982
- * @param starttime
9983
- * @param endtime
9984
- * @param IDproduct: 'all' or id_product;
9985
- * @param IDbranch: 'all' or id_branch;
9986
- * @return Promise Array *
9987
- * @Notice bill_type = [1,10,15,30,2,3,9,31]
9988
- */
9989
- getReportProfit_byTime_byIDProduct(starttime: any, endtime: any, IDproduct: any, IDbranch: any): Promise<any>;
9990
- private getReportInputOutputInventory_byTime_byIDProduct1;
9991
- syncInventoryEveryDay_StockBeginning(): Promise<any>;
9992
- /**
9993
- * vhQuerySales
9994
- * @returns
9995
- */
9996
- private syncInventoryEveryDay_Stock1stDayOfMonth;
9997
- private syncInventoryEveryDay1;
9998
10048
  /**
9999
10049
  * Hàm này dùng trong page Tồn kho, giá trị tồn kho, doanh số, chi phí nhập hàng tại một thời điểm endtime nào đó
10000
10050
  * @example:
@@ -10015,9 +10065,9 @@ export declare class VhQuerySales {
10015
10065
  * Hàm này dùng trong page Tồn kho, giá trị tồn kho, doanh số, chi phí nhập hàng tại một thời điểm endtime nào đó -> chi tiết của một sản phẩm nào đó
10016
10066
  * @example:
10017
10067
  * this.vhQuerySales.getReportInputOutputInventory_Detail_byEndTime_byIDProduct(endtime, 'UTWXdaU3UDq3xq7aK77p')
10018
- .then((bill_details)=>{
10019
- console.log('vhbill_details', bill_details);
10020
- })
10068
+ .then((bill_details)=>{
10069
+ console.log('vhbill_details', bill_details);
10070
+ })
10021
10071
  * @param starttime
10022
10072
  * @param endtime
10023
10073
  * @param id_product
@@ -10026,51 +10076,83 @@ export declare class VhQuerySales {
10026
10076
  */
10027
10077
  getReportInputOutputInventory_Detail_byEndTime_byIDProduct(endtime: any, id_product: any, IDbranch?: string): Promise<any>;
10028
10078
  /**
10029
- * Hàm này dùng trong page XUẤT-NHẬP-TỒN -> Xuất nhập tồn -> chi tiết
10030
- * @example:
10031
- * this.vhQuerySales.getReportInputOutputInventory_Detail_byTime_byIDProduct(starttime , endtime, 'UTWXdaU3UDq3xq7aK77p')
10079
+ * Hàm này dùng trong page XUẤT-NHẬP-TỒN -> Xuất nhập tồn -> chi tiết
10080
+ * @example:
10081
+ * this.vhQuerySales.getReportInputOutputInventory_Detail_byTime_byIDProduct(starttime , endtime, 'UTWXdaU3UDq3xq7aK77p')
10032
10082
  .then((bill_details)=>{
10033
10083
  console.log('vhbill_details', bill_details);
10034
10084
  })
10035
- * @param starttime
10036
- * @param endtime
10037
- * @param id_product
10038
- * @param IDbranch
10039
- * @Notice bill_type = [1,10,15,30,2,3,9,31]
10040
- */
10085
+ * @param starttime
10086
+ * @param endtime
10087
+ * @param id_product
10088
+ * @param IDbranch
10089
+ * @Notice bill_type = [1,10,15,30,2,3,9,31]
10090
+ */
10041
10091
  getReportInputOutputInventory_Detail_byTime_byIDProduct(starttime: any, endtime: any, id_product: string, IDbranch?: string): Promise<any>;
10042
10092
  /**
10043
- * Hàm này dùng trong page XUẤT-NHẬP-TỒN -> Xuất nhập hàng
10044
- * @example:
10045
- * this.vhQuerySales.getReportInputOutput_byTime_byIDProduct(starttime , endtime, 'UTWXdaU3UDq3xq7aK77p')
10093
+ * Hàm này dùng trong page XUẤT-NHẬP-TỒN -> Xuất nhập hàng
10094
+ * @example:
10095
+ * this.vhQuerySales.getReportInputOutput_byTime_byIDProduct(starttime , endtime, 'UTWXdaU3UDq3xq7aK77p')
10046
10096
  .then((bill_details)=>{
10047
10097
  console.log('vhbill_details', bill_details);
10048
10098
  })
10049
- * @param starttime
10050
- * @param endtime
10051
- * @param id_product
10052
- * @param IDbranch
10053
- * @return Promise Array
10054
- * @Notice id_product = 'all' or id_product;
10055
- * @Notice IDbranch = 'all' or id_branch;
10056
- * @Notice bill_type = [1,10,15,30,2,3,9,31]
10057
- */
10099
+ * @param starttime
10100
+ * @param endtime
10101
+ * @param id_product
10102
+ * @param IDbranch
10103
+ * @return Promise Array
10104
+ * @Notice id_product = 'all' or id_product;
10105
+ * @Notice IDbranch = 'all' or id_branch;
10106
+ * @Notice bill_type = [1,10,15,30,2,3,9,31]
10107
+ */
10058
10108
  getReportInputOutput_byTime_byIDProduct(starttime: any, endtime: any, IDproduct: string, IDbranch?: string): Promise<any>;
10059
10109
  /**
10060
- * Hàm này dùng trong page XUẤT-NHẬP-TỒN -> Xuất nhập hàng -> chi tiết
10061
- * @example:
10062
- * this.vhQuerySales.getReportInputOutput_Detail_byTime_byIDProduct(starttime , endtime, 'UTWXdaU3UDq3xq7aK77p')
10110
+ * Hàm này dùng trong page XUẤT-NHẬP-TỒN -> Xuất nhập hàng -> chi tiết
10111
+ * @example:
10112
+ * this.vhQuerySales.getReportInputOutput_Detail_byTime_byIDProduct(starttime , endtime, 'UTWXdaU3UDq3xq7aK77p')
10063
10113
  .then((bill_details)=>{
10064
10114
  console.log('vhbill_details', bill_details);
10065
10115
  })
10116
+ * @param starttime
10117
+ * @param endtime
10118
+ * @param id_product
10119
+ * @param IDbranch: 'all' or id_branch;
10120
+ * @Notice bill_type = [1,10,15,30,2,3,9,31]
10121
+ */
10122
+ getReportInputOutput_Detail_byTime_byIDProduct(starttime: any, endtime: any, id_product: string, IDbranch?: string): Promise<any>;
10123
+ /**
10124
+ * Hàm này dùng trong page LỢI NHUẬN HÀNG HÓA
10125
+ * @example:
10126
+ * this.vhQuerySales.getReportProfit_byTime_byIDProduct(starttime , endtime, 'all', 'tj1iYodbVoShwtEetACx')
10127
+ .then((json)=>{
10128
+ console.log('json', json);
10129
+ })
10066
10130
  * @param starttime
10067
10131
  * @param endtime
10068
- * @param id_product
10132
+ * @param IDproduct: 'all' or id_product;
10069
10133
  * @param IDbranch: 'all' or id_branch;
10134
+ * @return Promise Array *
10070
10135
  * @Notice bill_type = [1,10,15,30,2,3,9,31]
10071
10136
  */
10072
- getReportInputOutput_Detail_byTime_byIDProduct(starttime: any, endtime: any, id_product: string, IDbranch?: string): Promise<any>;
10073
- private makeCorrectQuantityProducts;
10137
+ getReportProfit_byTime_byIDProduct(starttime: any, endtime: any, IDproduct: any, IDbranch: any): Promise<any>;
10138
+ private getReportInputOutputInventory_byTime_byIDProduct1;
10139
+ syncInventoryEveryDay_StockBeginning(): Promise<any>;
10140
+ /**
10141
+ * vhQuerySales
10142
+ * @returns
10143
+ */
10144
+ private syncInventoryEveryDay_Stock1stDayOfMonth;
10145
+ private syncInventoryEveryDay1;
10146
+ /**
10147
+ * @example:
10148
+ * this.vhQuerySales.makeCorrectQuantityProducts()
10149
+ .then((bool)=>{
10150
+ console.log('makeCorrectQuantityProducts', bool);
10151
+ })
10152
+ * @returns
10153
+ */
10154
+ makeCorrectQuantityProducts(): Promise<any>;
10155
+ private makeCorrectQuantityProductsManyBranch;
10074
10156
  /**
10075
10157
  * VhQuerySales
10076
10158
  * lấy về danh sách sản phẩm sắp hết hàng
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ionic-vhframeworks",
3
- "version": "3.5.1",
3
+ "version": "3.5.5",
4
4
  "peerDependencies": {},
5
5
  "dependencies": {
6
6
  "tslib": "^2.0.0"