ionic-vhframeworks 4.2.9 → 4.3.2
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 +67 -4
- package/package.json +1 -1
|
@@ -3243,7 +3243,7 @@ export declare class VhQueryCafe {
|
|
|
3243
3243
|
private observableLocalPrinters;
|
|
3244
3244
|
/**
|
|
3245
3245
|
* @example:
|
|
3246
|
-
* this.observablePrinter = this.
|
|
3246
|
+
* this.observablePrinter = this.vhQueryCafe.getObservableLocalPrinters().subscribe((localPrinters:any) => {
|
|
3247
3247
|
do something...
|
|
3248
3248
|
})
|
|
3249
3249
|
|
|
@@ -7817,6 +7817,7 @@ export declare class VhQuerySales {
|
|
|
7817
7817
|
private spending_groups;
|
|
7818
7818
|
private branchs;
|
|
7819
7819
|
private promotions;
|
|
7820
|
+
private print_pages;
|
|
7820
7821
|
private printers;
|
|
7821
7822
|
private hwinfo;
|
|
7822
7823
|
private appsettingstations;
|
|
@@ -10763,6 +10764,64 @@ export declare class VhQuerySales {
|
|
|
10763
10764
|
* @return array(object) = [{},{},..]
|
|
10764
10765
|
*/
|
|
10765
10766
|
getPrinters(): Promise<unknown>;
|
|
10767
|
+
/**
|
|
10768
|
+
* @example:
|
|
10769
|
+
* this.vhQuerySales.refreshLocalPrintPages()
|
|
10770
|
+
.then(()=>{
|
|
10771
|
+
do something.....
|
|
10772
|
+
})
|
|
10773
|
+
* Hàm này refresh giá trị mới nhất cho hàm getlocalPrintPage(), getlocalPrintPages() trong localstorage
|
|
10774
|
+
* @return Promise => null
|
|
10775
|
+
*/
|
|
10776
|
+
private refreshLocalPrintPages;
|
|
10777
|
+
/**
|
|
10778
|
+
* @example:
|
|
10779
|
+
* let print_page = this.vhQuerySales.getLocalPrintPage('page_desktop_sales');
|
|
10780
|
+
* @param page_type
|
|
10781
|
+
* @return Object => obj = {} or null
|
|
10782
|
+
*/
|
|
10783
|
+
getLocalPrintPage(page_type: string): any;
|
|
10784
|
+
/**
|
|
10785
|
+
* @example:
|
|
10786
|
+
* let pagesize = this.vhQuerySales.getLocalDefaultPageSize('page_desktop_sales');
|
|
10787
|
+
* @param page_type
|
|
10788
|
+
* @return Object => obj = {} or null
|
|
10789
|
+
*/
|
|
10790
|
+
getLocalDefaultPageSize(page_type: string): any;
|
|
10791
|
+
/**
|
|
10792
|
+
* @example:
|
|
10793
|
+
* this.vhQuerySales.addPrintPage('page_desktop_sales', {name:'camera 2', quantity:20, price:200000})
|
|
10794
|
+
.then((print_page)=>{
|
|
10795
|
+
console.log('addPrintPage', print_page);
|
|
10796
|
+
}, error=>{
|
|
10797
|
+
console.log('error', error);
|
|
10798
|
+
})
|
|
10799
|
+
* @param data
|
|
10800
|
+
* Promise => object = {} Luu ý: chỉ có 2 trường hợp, hoặc là thêm thành công, hoặc là báo lỗi error
|
|
10801
|
+
*/
|
|
10802
|
+
addPrintPage(page_type: string, data: any): Promise<unknown>;
|
|
10803
|
+
/**
|
|
10804
|
+
* @example:
|
|
10805
|
+
* this.vhQuerySales.updatePrintPage('5fb6780ca2148e09806c5b01', {quantity:400})
|
|
10806
|
+
.then((bool)=>{
|
|
10807
|
+
console.log('updatePrintPage', bool);
|
|
10808
|
+
}, error=>{
|
|
10809
|
+
console.log('error', error);
|
|
10810
|
+
})
|
|
10811
|
+
* @param id_print_page
|
|
10812
|
+
* @param data
|
|
10813
|
+
* @return Promise => bool = true or false
|
|
10814
|
+
*/
|
|
10815
|
+
updatePrintPage(id_print_page: string, data: object): Promise<unknown>;
|
|
10816
|
+
/**
|
|
10817
|
+
* @example
|
|
10818
|
+
* this.vhQuerySales.getPrintPages()
|
|
10819
|
+
.then((print_pages)=>{
|
|
10820
|
+
console.log('getPrintPages', print_pages);
|
|
10821
|
+
})
|
|
10822
|
+
* @return array(object) = [{},{},..]
|
|
10823
|
+
*/
|
|
10824
|
+
private getPrintPages;
|
|
10766
10825
|
/**
|
|
10767
10826
|
* Hàm này dùng để thực hiện trừ hàng hóa trong nhiều Payment_Card
|
|
10768
10827
|
* Hàm chạy ổn định anh sẽ thêm phần trừ số lượng hàng hóa đã sử dụng trong payment_card_code
|
|
@@ -10991,11 +11050,15 @@ export declare class VhQuerySales {
|
|
|
10991
11050
|
updateBill_Billdetail(id_bill: any, bill: any, bill_details: any): any;
|
|
10992
11051
|
/**
|
|
10993
11052
|
* VhQuerySales:
|
|
10994
|
-
* Lưu ý: xóa tất cả các bill_type(từ 1 đến 28) đều dùng hàm này
|
|
11053
|
+
* Lưu ý: xóa tất cả các bill_type(từ 1 đến 28, 40, 41, 50, 51) đều dùng hàm này
|
|
10995
11054
|
* @example
|
|
10996
11055
|
this.vhQuerySales.deleteBill_Billdetail('RcECbNgU9BdYQo37s30p')
|
|
10997
|
-
.then(()=>{
|
|
10998
|
-
|
|
11056
|
+
.then((bool)=>{
|
|
11057
|
+
if(bool){
|
|
11058
|
+
console.log('success');
|
|
11059
|
+
}else{
|
|
11060
|
+
console.log('no success');
|
|
11061
|
+
}
|
|
10999
11062
|
},(error:any)=>{
|
|
11000
11063
|
console.log('error ', error);
|
|
11001
11064
|
})
|