ionic-vhframeworks 4.1.7 → 4.1.8
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 +57 -2
- package/package.json +1 -1
|
@@ -434,7 +434,7 @@ export declare class VhAuth {
|
|
|
434
434
|
private initializeDB;
|
|
435
435
|
/**
|
|
436
436
|
* @example:
|
|
437
|
-
* this.vhAuth.initializeProject('vhsales','firebase-mongo','research','research',
|
|
437
|
+
* this.vhAuth.initializeProject('vhsales','firebase-mongo','research','research', 324852, 'all');
|
|
438
438
|
* @param projectname
|
|
439
439
|
* @param dbstorage
|
|
440
440
|
* @param dbserverversion
|
|
@@ -446,7 +446,7 @@ export declare class VhAuth {
|
|
|
446
446
|
initializeProject(projectname: string, dbstorage: string, dbserverversion: string, camserverversion: string, fwcode: number, database: string): any;
|
|
447
447
|
/**
|
|
448
448
|
* @example:
|
|
449
|
-
* this.vhAuth.initializeWebAppProject('vhsales',
|
|
449
|
+
* this.vhAuth.initializeWebAppProject('vhsales', 356842, 'all');
|
|
450
450
|
* @param projectname
|
|
451
451
|
* @param fwcode
|
|
452
452
|
* @param database : tất cả database 'all' hoặc một database nào đó '4wk3JMSwSjh4kOLWOMbLbWt0Rdk2'
|
|
@@ -7839,6 +7839,28 @@ export declare class VhQuerySales {
|
|
|
7839
7839
|
private callbacksyncopeningbill;
|
|
7840
7840
|
private sync_code;
|
|
7841
7841
|
constructor(vhmongo_firebase: Vhmongo_firebase, vhQuery: VhQuery, vhAuth: VhAuth, vhAlgorithm: VhAlgorithm, iap2: InAppPurchase2, platform: Platform);
|
|
7842
|
+
/**
|
|
7843
|
+
* Hàm này lấy về các trường trong phạm vi quản lý bán hàng trong cài đặt
|
|
7844
|
+
* @example:
|
|
7845
|
+
* let sales_management_scope = this.vhQuerySales.getSales_Management_Scope();
|
|
7846
|
+
* @return Object = {product_scope, employee_scope, customer_scope, supplier_scope, sales_program_scope}
|
|
7847
|
+
* => 1 áp dụng cho toàn chi nhánh, 2 áp dụng riêng cho từng chi nhánh
|
|
7848
|
+
*/
|
|
7849
|
+
getSales_Management_Scope(): any;
|
|
7850
|
+
/**
|
|
7851
|
+
* Hàm này cấp nhật lại các trường trong phạm vi quản lý bán hàng trong cài đặt
|
|
7852
|
+
* @example:
|
|
7853
|
+
* this.vhQuerySales.updateSales_Management_Scope({product_scope:1, employee_scope:1, customer_scope:1, supplier_scope:1, sales_program_scope:2})
|
|
7854
|
+
.then(()=>{
|
|
7855
|
+
console.log('updateSales_Management_Scope');
|
|
7856
|
+
}, error=>{
|
|
7857
|
+
reject(error);
|
|
7858
|
+
})
|
|
7859
|
+
* @param value = {product_scope, employee_scope, customer_scope, supplier_scope, sales_program_scope}
|
|
7860
|
+
* 1 áp dụng cho toàn chi nhánh, 2 áp dụng riêng cho từng chi nhánh
|
|
7861
|
+
* @return Promise => udefined/error
|
|
7862
|
+
*/
|
|
7863
|
+
updateSales_Management_Scope(value: any): Promise<unknown>;
|
|
7842
7864
|
/**
|
|
7843
7865
|
* @description: hàm này lấy về những hạn chế của gói main_package (khách trả phí mua gói sử dụng các chức năng CHÍNH, mỗi gói sẽ có nhưng hạn chế khác nhau về user_number, show_report_duration)
|
|
7844
7866
|
* @example
|
|
@@ -9218,6 +9240,39 @@ export declare class VhQuerySales {
|
|
|
9218
9240
|
* @return Promise => array(object) = [{},{},..]
|
|
9219
9241
|
*/
|
|
9220
9242
|
getCustomers(): Promise<unknown>;
|
|
9243
|
+
/**
|
|
9244
|
+
* Hàm này dùng để xóa hoặc đặt lại điểm mới cho khách hàng
|
|
9245
|
+
* @example:
|
|
9246
|
+
* this.vhQuerySales.updateCustomer_byEarnedPoints('5fb6780ca2148e09806c5b01', 1000)
|
|
9247
|
+
.then((bool)=>{
|
|
9248
|
+
console.log('updateCustomer_byEarnedPoints', bool);
|
|
9249
|
+
})
|
|
9250
|
+
* @param _id
|
|
9251
|
+
* @param points
|
|
9252
|
+
* @return Promise => bool = true or false
|
|
9253
|
+
*/
|
|
9254
|
+
updateCustomer_byPoints(_id: string, points: number): Promise<unknown>;
|
|
9255
|
+
/**
|
|
9256
|
+
* Hàm này thêm điểm mới kiếm được vào quỹ điểm khách hàng đang có
|
|
9257
|
+
* points = points(tích được trên bill) - point (sử dụng thanh toán trên bill)
|
|
9258
|
+
* @example:
|
|
9259
|
+
* this.vhQuerySales.updateCustomer_byEarnedPoints('5fb6780ca2148e09806c5b01', 200)
|
|
9260
|
+
.then((bool)=>{
|
|
9261
|
+
console.log('updateCustomer_byEarnedPoints', bool);
|
|
9262
|
+
})
|
|
9263
|
+
* @param _id
|
|
9264
|
+
* @param points
|
|
9265
|
+
* @return Promise => bool = true or false
|
|
9266
|
+
*/
|
|
9267
|
+
updateCustomer_byEarnedPoints(_id: string, points: number): Promise<unknown>;
|
|
9268
|
+
/**
|
|
9269
|
+
* Hàm này trả về điểm của khách hàng theo phạm vị chương trình bán hàng là toàn chi nhánh hay là từng chi nhánh
|
|
9270
|
+
* @example:
|
|
9271
|
+
* let customer = this.vhQuerySales.getlocalCustomer_byPoints('5fb6780ca2148e09806c5b01');
|
|
9272
|
+
* @param id_customer
|
|
9273
|
+
* @return Object => obj = {} or null
|
|
9274
|
+
*/
|
|
9275
|
+
getlocalCustomerPoints(id_customer: any): any;
|
|
9221
9276
|
private publishObservableEventSuppliers;
|
|
9222
9277
|
private observableLocalSuppliers;
|
|
9223
9278
|
/**
|