ionic-vhframeworks 4.1.0 → 4.1.3
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 +34 -9
- package/package.json +1 -1
|
@@ -3444,16 +3444,26 @@ export declare class VhQueryCafe {
|
|
|
3444
3444
|
* 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
|
|
3445
3445
|
* @example:
|
|
3446
3446
|
* this.vhQueryCafe.observableSyncOpeningBill('5fb6780ca2148e09806c5b01', 5)
|
|
3447
|
-
.subscribe((
|
|
3448
|
-
|
|
3447
|
+
.subscribe((rsp)=> {
|
|
3448
|
+
if(rsp.vcode === 0){
|
|
3449
|
+
//-----------your code 0-----------
|
|
3450
|
+
let bill = rsp.data;
|
|
3451
|
+
console.log('observableSyncOpeningBill', bill);
|
|
3452
|
+
}else if(rsp.vcode === 1){
|
|
3453
|
+
//-----------your code 1-----------
|
|
3454
|
+
}else if(rsp.vcode === 2){
|
|
3455
|
+
//-----------your code 2-----------
|
|
3456
|
+
}
|
|
3449
3457
|
},(error:any) => {
|
|
3450
3458
|
console.log(error);
|
|
3451
3459
|
})
|
|
3452
3460
|
* @param id_bill
|
|
3453
3461
|
* @param bill_type
|
|
3454
3462
|
* @returns Observable => bill hoặc null;
|
|
3455
|
-
*
|
|
3456
|
-
*
|
|
3463
|
+
* @return Observable object => rsp = {vcode, message, data}
|
|
3464
|
+
* vcode == 0: repaired bill by another device
|
|
3465
|
+
* vcode == 1: changed bill_type by another device
|
|
3466
|
+
* vcode == 2: deleted bill by unknown device
|
|
3457
3467
|
* @notice : nhớ đóng closeSyncOpeningBill() khi thoát trang hiện tại this.vhQueryCafe.closeSyncOpeningBill();
|
|
3458
3468
|
*/
|
|
3459
3469
|
observableSyncOpeningBill(id_bill: string, bill_type: number): Observable<unknown>;
|
|
@@ -4058,6 +4068,7 @@ export declare class VhQueryCafe {
|
|
|
4058
4068
|
* trả về null nghĩa là khách hàng này không có chiết khấu theo hóa đơn
|
|
4059
4069
|
*/
|
|
4060
4070
|
getDiscount_bill_byCustomer(total_price: number, id_customer: any): any;
|
|
4071
|
+
getDiscount_bill_byCustomer_new(total_price: number, id_customer: any): any;
|
|
4061
4072
|
/**
|
|
4062
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
|
|
4063
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
|
|
@@ -4079,6 +4090,7 @@ export declare class VhQueryCafe {
|
|
|
4079
4090
|
* @return Promise JSON(array) => json.docs = [obj, obj, obj....]; obj ={index, name, img, discount_name,sales_btax, discount_btax, sales_atax, discount_atax}
|
|
4080
4091
|
*/
|
|
4081
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>;
|
|
4082
4094
|
/**
|
|
4083
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
|
|
4084
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
|
|
@@ -4099,6 +4111,7 @@ export declare class VhQueryCafe {
|
|
|
4099
4111
|
* @return Promise JSON(array) => json.docs = [obj, obj, obj....]; obj ={index, name, img, commission_name, sales_btax, commission_btax, sales_atax, commission_atax}
|
|
4100
4112
|
*/
|
|
4101
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>;
|
|
4102
4115
|
/**
|
|
4103
4116
|
* VhQueryCafe:
|
|
4104
4117
|
* cashbook_first: tiền mặt đầu kỳ (starttime),
|
|
@@ -10891,17 +10904,27 @@ export declare class VhQuerySales {
|
|
|
10891
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
|
|
10892
10905
|
* @example:
|
|
10893
10906
|
* this.vhQuerySales.observableSyncOpeningBill('5fb6780ca2148e09806c5b01', 5)
|
|
10894
|
-
.subscribe((
|
|
10895
|
-
|
|
10907
|
+
.subscribe((rsp)=> {
|
|
10908
|
+
if(rsp.vcode === 0){
|
|
10909
|
+
//-----------your code 0-----------
|
|
10910
|
+
let bill = rsp.data;
|
|
10911
|
+
console.log('observableSyncOpeningBill', bill);
|
|
10912
|
+
}else if(rsp.vcode === 1){
|
|
10913
|
+
//-----------your code 1-----------
|
|
10914
|
+
}else if(rsp.vcode === 2){
|
|
10915
|
+
//-----------your code 2-----------
|
|
10916
|
+
}
|
|
10896
10917
|
},(error:any) => {
|
|
10897
10918
|
console.log(error);
|
|
10898
10919
|
})
|
|
10899
10920
|
* @param id_bill
|
|
10900
10921
|
* @param bill_type
|
|
10901
10922
|
* @returns Observable => bill hoặc null;
|
|
10902
|
-
*
|
|
10903
|
-
*
|
|
10904
|
-
*
|
|
10923
|
+
* @return Observable object => rsp = {vcode, message, data}
|
|
10924
|
+
* vcode == 0: repaired bill by another device
|
|
10925
|
+
* vcode == 1: changed bill_type by another device
|
|
10926
|
+
* vcode == 2: deleted bill by unknown device
|
|
10927
|
+
* @notice : nhớ đóng closeSyncOpeningBill() khi thoát trang hiện tại this.vhQueryCafe.closeSyncOpeningBill();
|
|
10905
10928
|
*/
|
|
10906
10929
|
observableSyncOpeningBill(id_bill: string, bill_type: number): Observable<unknown>;
|
|
10907
10930
|
/**
|
|
@@ -11915,6 +11938,8 @@ export declare class VhQuerySales {
|
|
|
11915
11938
|
* this.vhQuerySales.makeCorrectQuantityProducts_byShop()
|
|
11916
11939
|
.then((bool)=>{
|
|
11917
11940
|
console.log('makeCorrectQuantityProducts_byShop', bool);
|
|
11941
|
+
},error=>{
|
|
11942
|
+
console.log(error);
|
|
11918
11943
|
})
|
|
11919
11944
|
* @returns
|
|
11920
11945
|
*/
|