ionic-vhframeworks 4.1.1 → 4.1.4
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 +9 -16
- package/package.json +1 -1
|
@@ -4068,6 +4068,7 @@ export declare class VhQueryCafe {
|
|
|
4068
4068
|
* trả về null nghĩa là khách hàng này không có chiết khấu theo hóa đơn
|
|
4069
4069
|
*/
|
|
4070
4070
|
getDiscount_bill_byCustomer(total_price: number, id_customer: any): any;
|
|
4071
|
+
getDiscount_bill_byCustomer_new(total_price: number, id_customer: any): any;
|
|
4071
4072
|
/**
|
|
4072
4073
|
* @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
|
|
4073
4074
|
* @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
|
|
@@ -4089,6 +4090,7 @@ export declare class VhQueryCafe {
|
|
|
4089
4090
|
* @return Promise JSON(array) => json.docs = [obj, obj, obj....]; obj ={index, name, img, discount_name,sales_btax, discount_btax, sales_atax, discount_atax}
|
|
4090
4091
|
*/
|
|
4091
4092
|
getReportDiscount_sales_Customers(starttime: any, endtime: any, IDcustomer: any, IDbranch?: string): Promise<any>;
|
|
4093
|
+
getReportDiscount_sales_Customers_new(starttime: any, endtime: any, IDcustomer: any, IDbranch?: string): Promise<any>;
|
|
4092
4094
|
/**
|
|
4093
4095
|
* @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
|
|
4094
4096
|
* @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
|
|
@@ -4109,6 +4111,7 @@ export declare class VhQueryCafe {
|
|
|
4109
4111
|
* @return Promise JSON(array) => json.docs = [obj, obj, obj....]; obj ={index, name, img, commission_name, sales_btax, commission_btax, sales_atax, commission_atax}
|
|
4110
4112
|
*/
|
|
4111
4113
|
getReportCommission_Employees(starttime: any, endtime: any, IDemployee: any, IDbranch?: string): Promise<any>;
|
|
4114
|
+
getReportCommission_Employees_new(starttime: any, endtime: any, IDemployee: any, IDbranch?: string): Promise<any>;
|
|
4112
4115
|
/**
|
|
4113
4116
|
* VhQueryCafe:
|
|
4114
4117
|
* cashbook_first: tiền mặt đầu kỳ (starttime),
|
|
@@ -10900,7 +10903,7 @@ export declare class VhQuerySales {
|
|
|
10900
10903
|
/**
|
|
10901
10904
|
* Hàm này dùng để đồng bộ hóa đơn đang mở ở 2 giao diện hoặc 2 thiết bị khác nhau
|
|
10902
10905
|
* @example:
|
|
10903
|
-
* this.
|
|
10906
|
+
* this.vhQuerySales.observableSyncOpeningBill('5fb6780ca2148e09806c5b01', 5)
|
|
10904
10907
|
.subscribe((rsp)=> {
|
|
10905
10908
|
if(rsp.vcode === 0){
|
|
10906
10909
|
//-----------your code 0-----------
|
|
@@ -11935,6 +11938,8 @@ export declare class VhQuerySales {
|
|
|
11935
11938
|
* this.vhQuerySales.makeCorrectQuantityProducts_byShop()
|
|
11936
11939
|
.then((bool)=>{
|
|
11937
11940
|
console.log('makeCorrectQuantityProducts_byShop', bool);
|
|
11941
|
+
},error=>{
|
|
11942
|
+
console.log(error);
|
|
11938
11943
|
})
|
|
11939
11944
|
* @returns
|
|
11940
11945
|
*/
|
|
@@ -12824,7 +12829,9 @@ export declare class VhQuerySales {
|
|
|
12824
12829
|
*/
|
|
12825
12830
|
getCoupon_Code_Name_Release(id_coupon_code: any): Promise<unknown>;
|
|
12826
12831
|
/**
|
|
12827
|
-
*
|
|
12832
|
+
* hàm này để đổi phiếu từ điểm của khách hàng. Đổi thành công tự động tạo lịch sử đổi điểm của khách hàng
|
|
12833
|
+
* hàm này đã cập nhật lại trường status, id_customer, date_points_exchanged cho coupon_codes
|
|
12834
|
+
* hàm này đã cập nhật lại trường earned_points, id_customer, branch_earned_points cho customers
|
|
12828
12835
|
* @example:
|
|
12829
12836
|
* this.vhQuerySales.exchangeCouponCode_byEarningPoints(['OUIYWGUDBYWUHEDW0512','1984QIHBSYGWDIOUHIQFE'], 'INBIFDYWUGUHNI65498', 1000})
|
|
12830
12837
|
.then((bool)=>{
|
|
@@ -13170,20 +13177,6 @@ export declare class VhQuerySales {
|
|
|
13170
13177
|
* @return Promise => obj ={} or null
|
|
13171
13178
|
*/
|
|
13172
13179
|
getVoucher_Code_Name_Release(id_voucher_code: any): Promise<unknown>;
|
|
13173
|
-
/** Hàm này để đổi voucher từ điểm của khách hàng. Đổi thành công tự động tạo lịch sử đổi điểm của khách hàng
|
|
13174
|
-
* @example:
|
|
13175
|
-
* let data = [id_voucher_code]
|
|
13176
|
-
* this.vhQuerySales.exchangeVoucherCode_byEarningPoints(data, "fuMS21I6othUm34385WV", 10)
|
|
13177
|
-
.then((bool)=>{
|
|
13178
|
-
console.log('exchangeVoucherCode_byEarningPoints', bool);
|
|
13179
|
-
}, error=>{
|
|
13180
|
-
console.log('error', error);
|
|
13181
|
-
})
|
|
13182
|
-
* @param array_id_voucher_code
|
|
13183
|
-
* @param id_customer
|
|
13184
|
-
* @param points
|
|
13185
|
-
* @return Promise Boolean => true or false
|
|
13186
|
-
*/
|
|
13187
13180
|
exchangeVoucherCode_byEarningPoints(array_id_voucher_code: any, id_customer: any, points: any): Promise<unknown>;
|
|
13188
13181
|
/**
|
|
13189
13182
|
* @example:
|