ionic-vhframeworks 3.6.9 → 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 +14 -0
- package/package.json +1 -1
|
@@ -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');
|
|
@@ -10133,6 +10145,8 @@ export declare class VhQuerySales {
|
|
|
10133
10145
|
/**
|
|
10134
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
|
|
10135
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
|
|
10136
10150
|
* @example :
|
|
10137
10151
|
* let endtime = new Date();
|
|
10138
10152
|
let starttime = new Date('2020-07-01T05:24:00');
|