ionic-vhframeworks 3.6.7 → 3.7.1

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.
@@ -6999,7 +6999,7 @@ export declare class VhQuerySales {
6999
6999
  /**------------------------TIKI Ecommerce-------------------------- */
7000
7000
  /**
7001
7001
  * @example:
7002
- * this.vhQuerySales.GetShippingStampForDropshipTiki(code, access_token).then((result)=>{
7002
+ * this.vhQuerySales.GetShippingStampForDropshipTiki(code, size, access_token).then((result)=>{
7003
7003
  console.log('result', result);
7004
7004
  },error=>{
7005
7005
  console.log('error', error);
@@ -7008,7 +7008,7 @@ export declare class VhQuerySales {
7008
7008
  * @param access_token :string
7009
7009
  * @returns Promise
7010
7010
  */
7011
- GetShippingStampForDropshipTiki(code: string, access_token: string): Promise<unknown>;
7011
+ GetShippingStampForDropshipTiki(code: string, size: any, access_token: string): Promise<unknown>;
7012
7012
  /**
7013
7013
  * @example:
7014
7014
  * this.vhQuerySales.getSellerInventoriesForConfirmationTiki(access_token).then((result)=>{
@@ -10112,9 +10112,21 @@ export declare class VhQuerySales {
10112
10112
  * @return Promise JSON(array) => json.docs = [obj, obj, obj....]; obj ={index, name, barcode, unit, img, date, quantity, price, tax, id_bill, id_product, salesman}
10113
10113
  */
10114
10114
  getReportSales_Products_byProduct(starttime: any, endtime: any, id_product: any, IDbranch?: string): Promise<any>;
10115
+ /**
10116
+ * @Usage : Hàm này lấy về tiền chiết khấu trên tổng giá trị hàng hóa bán ra của mỗi đơn hàng theo khách mua hàng
10117
+ * @example :
10118
+ * let discount = this.vhQuerySales.getDiscount_byCustomer(43000000, '7YLcm0cFKLu2KaQQ8cyv');
10119
+ * @param total_price : Tổng giá
10120
+ * @param id_customer
10121
+ * @returns Number
10122
+ */
10123
+ getDiscount_byCustomer(total_price: number, id_customer: any): number;
10115
10124
  /**
10116
10125
  * @Usage :Hàm này dùng trong page CHIẾT KHẤU KHÁCH HÀNG -> Chọn TẤT CẢ hoặc MỘT khách hàng
10117
10126
  * @notice : Mỗi công thức chiết khấu có 5 mức (level1, level2, level3, level4, level5), giá trị doanh số (sales) level sau phải lơn hơn level trước
10127
+ * type : 1 chiết khấu %, 2 chiết khấu tiền
10128
+ * method : 1 phương pháp tính theo từng mức, 2 phương pháp tính theo mức cuối
10129
+ * usage: 1 chiết khấu trên hóa đơn, 2 chiết khấu trên doanh số
10118
10130
  * @example :
10119
10131
  * let endtime = new Date();
10120
10132
  let starttime = new Date('2020-07-01T05:24:00');
@@ -10131,39 +10143,41 @@ export declare class VhQuerySales {
10131
10143
  */
10132
10144
  getReportDiscount_Customers(starttime: any, endtime: any, IDcustomer: any, IDbranch?: string): Promise<any>;
10133
10145
  /**
10134
- * @Usage :Hàm này dùng trong page HOA HỒNG NHÂN VIÊN -> Chọn TẤT CẢ hoặc MỘT nhân viên
10135
- * @notice : Mỗi công thức chiết khấu có 5 mức (level1, level2, level3, level4, level5), giá trị doanh số (sales) level sau phải lơn hơn level trước
10136
- * @example :
10137
- * let endtime = new Date();
10138
- let starttime = new Date('2020-07-01T05:24:00');
10139
- this.vhQuerySales.getReportCommission_Employees(starttime, endtime, '7YLcm0cFKLu2KaQQ8cyv')
10140
- .then((commissions)=>{
10141
- console.log('commissions', commissions);
10142
- console.log('commissions.docs[0]', commissions.docs[0]);
10143
- })
10144
- * @param starttime
10145
- * @param endtime
10146
- * @param IDemployee : 'all' or id_employee
10147
- * @param IDbranch : 'all' or id_branch
10148
- * @return Promise JSON(array) => json.docs = [obj, obj, obj....]; obj ={index, name, img, commission_name, sales_btax, commission_btax, sales_atax, commission_atax}
10149
- */
10146
+ * @Usage :Hàm này dùng trong page HOA HỒNG NHÂN VIÊN -> Chọn TẤT CẢ hoặc MỘT nhân viên
10147
+ * @notice : Mỗi công thức chiết khấu có 5 mức (level1, level2, level3, level4, level5), giá trị doanh số (sales) level sau phải lơn hơn level trước
10148
+ * type : 1 chiết khấu %, 2 chiết khấu tiền
10149
+ * method : 1 phương pháp tính theo từng mức, 2 phương pháp tính theo mức cuối
10150
+ * @example :
10151
+ * let endtime = new Date();
10152
+ let starttime = new Date('2020-07-01T05:24:00');
10153
+ this.vhQuerySales.getReportCommission_Employees(starttime, endtime, '7YLcm0cFKLu2KaQQ8cyv')
10154
+ .then((commissions)=>{
10155
+ console.log('commissions', commissions);
10156
+ console.log('commissions.docs[0]', commissions.docs[0]);
10157
+ })
10158
+ * @param starttime
10159
+ * @param endtime
10160
+ * @param IDemployee : 'all' or id_employee
10161
+ * @param IDbranch : 'all' or id_branch
10162
+ * @return Promise JSON(array) => json.docs = [obj, obj, obj....]; obj ={index, name, img, commission_name, sales_btax, commission_btax, sales_atax, commission_atax}
10163
+ */
10150
10164
  getReportCommission_Employees(starttime: any, endtime: any, IDemployee: any, IDbranch?: string): Promise<any>;
10151
10165
  /**
10152
- * @Usage Hàm này dùng trong page DOANH SỐ KHÁCH HÀNG (layer 1) -> Chọn TẤT CẢ hoặc MỘT khách hàng
10153
- * @example
10154
- * let endtime = new Date();
10155
- let starttime = new Date('2020-07-01T05:24:00');
10156
- this.vhQuerySales.getReportSales_Customers_byCustomers(starttime, endtime, '7YLcm0cFKLu2KaQQ8cyv')
10157
- .then((reportsales)=>{
10158
- console.log('reportsales', reportsales);
10159
- console.log('reportsales.docs[0]', reportsales.docs[0]);
10160
- })
10161
- * @param starttime
10162
- * @param endtime
10163
- * @param IDcustomer : 'all' or id_customer
10164
- * @param IDbranch : 'all' or id_branch
10165
- * @return Promise JSON(array) => json.docs = [obj, obj, obj....]; obj ={index, name, img, id_customer, quantity, sales_btax, sales_atax}
10166
- */
10166
+ * @Usage Hàm này dùng trong page DOANH SỐ KHÁCH HÀNG (layer 1) -> Chọn TẤT CẢ hoặc MỘT khách hàng
10167
+ * @example
10168
+ * let endtime = new Date();
10169
+ let starttime = new Date('2020-07-01T05:24:00');
10170
+ this.vhQuerySales.getReportSales_Customers_byCustomers(starttime, endtime, '7YLcm0cFKLu2KaQQ8cyv')
10171
+ .then((reportsales)=>{
10172
+ console.log('reportsales', reportsales);
10173
+ console.log('reportsales.docs[0]', reportsales.docs[0]);
10174
+ })
10175
+ * @param starttime
10176
+ * @param endtime
10177
+ * @param IDcustomer : 'all' or id_customer
10178
+ * @param IDbranch : 'all' or id_branch
10179
+ * @return Promise JSON(array) => json.docs = [obj, obj, obj....]; obj ={index, name, img, id_customer, quantity, sales_btax, sales_atax}
10180
+ */
10167
10181
  getReportSales_Customers_byCustomers(starttime: any, endtime: any, IDcustomer: any, IDbranch?: string): Promise<any>;
10168
10182
  /**
10169
10183
  * @Usage Hàm này dùng trong page DOANH SỐ KHÁCH HÀNG (layer 2) -> Chọn TẤT CẢ hoặc MỘT khách hàng -> Chọn một khách hàng trong list hiện ra
@@ -10652,7 +10666,7 @@ export declare class VhQuerySales {
10652
10666
  */
10653
10667
  getDebtCustomers(starttime: any, endtime: any, IDcustomer: string, IDbranch?: string): Promise<any>;
10654
10668
  /**
10655
- * lấy về 1 bảng báo cáo (report) theo cấu trúc json ở dưới
10669
+ * lấy về 1 bảng báo cáo kiểm kho (report) theo cấu trúc json ở dưới
10656
10670
  * @example:
10657
10671
  * this.vhQuerySales.getReportInventoryTime_byTimes('hNCda0obCvrX6qC3PZ0N')
10658
10672
  .then((reports)=>{
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ionic-vhframeworks",
3
- "version": "3.6.7",
3
+ "version": "3.7.1",
4
4
  "peerDependencies": {},
5
5
  "dependencies": {
6
6
  "tslib": "^2.0.0"