ionic-vhframeworks 3.6.6 → 3.7.0
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.
- package/bundles/ionic-vhframeworks.umd.js +1 -1
- package/bundles/ionic-vhframeworks.umd.js.map +1 -1
- package/bundles/ionic-vhframeworks.umd.min.js +1 -1
- package/bundles/ionic-vhframeworks.umd.min.js.map +1 -1
- package/fesm2015/ionic-vhframeworks.js.map +1 -1
- package/ionic-vhframeworks.metadata.json +1 -1
- package/lib/ionic-vhframeworks.service.d.ts +65 -15
- package/package.json +1 -1
|
@@ -10113,21 +10113,71 @@ export declare class VhQuerySales {
|
|
|
10113
10113
|
*/
|
|
10114
10114
|
getReportSales_Products_byProduct(starttime: any, endtime: any, id_product: any, IDbranch?: string): Promise<any>;
|
|
10115
10115
|
/**
|
|
10116
|
-
|
|
10117
|
-
|
|
10118
|
-
|
|
10119
|
-
|
|
10120
|
-
|
|
10121
|
-
|
|
10122
|
-
|
|
10123
|
-
|
|
10124
|
-
|
|
10125
|
-
|
|
10126
|
-
|
|
10127
|
-
|
|
10128
|
-
|
|
10129
|
-
|
|
10130
|
-
|
|
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;
|
|
10124
|
+
/**
|
|
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
|
|
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ố
|
|
10130
|
+
* @example :
|
|
10131
|
+
* let endtime = new Date();
|
|
10132
|
+
let starttime = new Date('2020-07-01T05:24:00');
|
|
10133
|
+
this.vhQuerySales.getReportDiscount_Customers(starttime, endtime, '7YLcm0cFKLu2KaQQ8cyv')
|
|
10134
|
+
.then((discounts)=>{
|
|
10135
|
+
console.log('discounts', discounts);
|
|
10136
|
+
console.log('discounts.docs[0]', discounts.docs[0]);
|
|
10137
|
+
})
|
|
10138
|
+
* @param starttime
|
|
10139
|
+
* @param endtime
|
|
10140
|
+
* @param IDcustomer : 'all' or id_customer
|
|
10141
|
+
* @param IDbranch : 'all' or id_branch
|
|
10142
|
+
* @return Promise JSON(array) => json.docs = [obj, obj, obj....]; obj ={index, name, img, discount_name,sales_btax, discount_btax, sales_atax, discount_atax}
|
|
10143
|
+
*/
|
|
10144
|
+
getReportDiscount_Customers(starttime: any, endtime: any, IDcustomer: any, IDbranch?: string): Promise<any>;
|
|
10145
|
+
/**
|
|
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
|
+
*/
|
|
10164
|
+
getReportCommission_Employees(starttime: any, endtime: any, IDemployee: any, IDbranch?: string): Promise<any>;
|
|
10165
|
+
/**
|
|
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
|
+
*/
|
|
10131
10181
|
getReportSales_Customers_byCustomers(starttime: any, endtime: any, IDcustomer: any, IDbranch?: string): Promise<any>;
|
|
10132
10182
|
/**
|
|
10133
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
|