ionic-vhframeworks 3.8.5 → 3.8.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 +17 -17
- package/package.json +1 -1
|
@@ -10284,7 +10284,6 @@ export declare class VhQuerySales {
|
|
|
10284
10284
|
/**
|
|
10285
10285
|
* @example:
|
|
10286
10286
|
let payment_detail_main = {
|
|
10287
|
-
date: new Date(),
|
|
10288
10287
|
id_branch: 'AEUWSWZXA4iHv8BmCNz2', //khách chọn
|
|
10289
10288
|
id_payment: '5D4XGdZ2q5XLnOUa0mMx', //payment._id
|
|
10290
10289
|
id_restriction: 'main_package_advanced', //package.id_restriction
|
|
@@ -10308,8 +10307,8 @@ export declare class VhQuerySales {
|
|
|
10308
10307
|
payment_type,
|
|
10309
10308
|
activating,
|
|
10310
10309
|
invalid,
|
|
10311
|
-
|
|
10312
10310
|
date,
|
|
10311
|
+
|
|
10313
10312
|
id_branch,
|
|
10314
10313
|
id_payment,
|
|
10315
10314
|
id_restriction,
|
|
@@ -10341,19 +10340,19 @@ export declare class VhQuerySales {
|
|
|
10341
10340
|
*/
|
|
10342
10341
|
updatePayment_Detail(id_payment_detail: string, value: object): Promise<unknown>;
|
|
10343
10342
|
/**
|
|
10344
|
-
|
|
10345
|
-
|
|
10346
|
-
|
|
10347
|
-
|
|
10348
|
-
|
|
10349
|
-
|
|
10350
|
-
|
|
10351
|
-
|
|
10352
|
-
|
|
10353
|
-
|
|
10354
|
-
|
|
10355
|
-
|
|
10356
|
-
|
|
10343
|
+
* @example:
|
|
10344
|
+
* let time = new Date();
|
|
10345
|
+
* time.setDate(time.getDate()-7);
|
|
10346
|
+
* this.vhQuerySales.getPayment_details({id_payment:{$eq:'5fb67fda87c0f21d484cbdf3'}}, {},{},0)
|
|
10347
|
+
.then((payment_details)=>{
|
|
10348
|
+
console.log('getPayment_details', payment_details);
|
|
10349
|
+
})
|
|
10350
|
+
* @param query
|
|
10351
|
+
* @param projection — đang tìm hiểu, tạm thời để giá trị là {}
|
|
10352
|
+
* @param sort — null hoặc {}:không sắp xếp; {date:1}: sắp xếp theo ASC; {date:-1}: sắp xếp theo DESC
|
|
10353
|
+
* @param limit — null hoặc 0: không giới hạn record get về; 2: get về 2 record
|
|
10354
|
+
* @return Promise Array => array = [{},{},...] / error
|
|
10355
|
+
*/
|
|
10357
10356
|
getPayment_details(query: object, projection?: object, sort?: object, limit?: number): Promise<unknown>;
|
|
10358
10357
|
/**
|
|
10359
10358
|
* @example:
|
|
@@ -10368,8 +10367,8 @@ export declare class VhQuerySales {
|
|
|
10368
10367
|
/**
|
|
10369
10368
|
* @example:
|
|
10370
10369
|
* this.vhQuerySales.deletePayment_Detail('5fb67fda87c0f21d484cbdf3')
|
|
10371
|
-
.then((
|
|
10372
|
-
console.log('deletePayment_Detail',
|
|
10370
|
+
.then((response)=>{
|
|
10371
|
+
console.log('deletePayment_Detail', response);
|
|
10373
10372
|
},error=>{
|
|
10374
10373
|
reject(error);
|
|
10375
10374
|
})
|
|
@@ -10927,6 +10926,7 @@ export declare class VhQuerySales {
|
|
|
10927
10926
|
* @return Promise JSON(array) => json.docs = [obj, obj, obj....]; obj ={index, id_product, name, barcode, unit, img, id_customer, quantity, sales_btax, sales_atax}
|
|
10928
10927
|
*/
|
|
10929
10928
|
getReportSales_Customers_byProducts(starttime: any, endtime: any, id_customer: any, IDbranch?: string): Promise<any>;
|
|
10929
|
+
getReportSales_Customers_byProducts_Analytics(starttime: any, endtime: any, id_customer: any, IDbranch?: string): Promise<any>;
|
|
10930
10930
|
/**
|
|
10931
10931
|
* @Usage Hàm này dùng trong page DOANH SỐ KHÁCH HÀNG (layer 3) -> Chọn TẤT CẢ hoặc MỘT khách hàng -> Chọn một khách hàng trong list hiện ra -> Chọn một sản phẩm trong list tiếp theo hiện ra
|
|
10932
10932
|
* @example:
|