ionic-vhframeworks 2.8.1 → 2.8.5
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 +128 -103
- package/package.json +1 -1
|
@@ -1163,7 +1163,7 @@ export declare class VhQueryCafe {
|
|
|
1163
1163
|
refreshLocalAreas(): any;
|
|
1164
1164
|
/**
|
|
1165
1165
|
* @example:
|
|
1166
|
-
* this.vhQueryCafe.addArea({name:'
|
|
1166
|
+
* this.vhQueryCafe.addArea({name:'Khu vực 2', id_branch:'j7H8FADQlxQWB0pPq4Qt', status:true})
|
|
1167
1167
|
.then((are)=>{
|
|
1168
1168
|
console.log('addArea', area);
|
|
1169
1169
|
}, error=>{
|
|
@@ -1176,7 +1176,7 @@ export declare class VhQueryCafe {
|
|
|
1176
1176
|
addArea(data: object): Promise<unknown>;
|
|
1177
1177
|
/**
|
|
1178
1178
|
* @example:
|
|
1179
|
-
* this.vhQueryCafe.updateArea('5fb6780ca2148e09806c5b01', {
|
|
1179
|
+
* this.vhQueryCafe.updateArea('5fb6780ca2148e09806c5b01', {name: 'Khu vực sảnh'})
|
|
1180
1180
|
.then((bool)=>{
|
|
1181
1181
|
console.log('updateArea', bool);
|
|
1182
1182
|
}, error=>{
|
|
@@ -1218,6 +1218,76 @@ export declare class VhQueryCafe {
|
|
|
1218
1218
|
* @return array(object) = [{},{},..]
|
|
1219
1219
|
*/
|
|
1220
1220
|
getAreas(): Promise<unknown>;
|
|
1221
|
+
/**
|
|
1222
|
+
* @example:
|
|
1223
|
+
* this.vhQueryCafe.addAdss({name:name: 'Quảng cáo 1'})
|
|
1224
|
+
.then((ads)=>{
|
|
1225
|
+
console.log('addAdss', ads);
|
|
1226
|
+
}, error=>{
|
|
1227
|
+
console.log('error', error);
|
|
1228
|
+
})
|
|
1229
|
+
* @param data
|
|
1230
|
+
* @return Promise => object = {}
|
|
1231
|
+
* 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
|
|
1232
|
+
*/
|
|
1233
|
+
addAdss(data: object): Promise<unknown>;
|
|
1234
|
+
/**
|
|
1235
|
+
* @example:
|
|
1236
|
+
* this.vhQueryCafe.updateAds('5fb6780ca2148e09806c5b01', {name: 'Quảng cáo 1'})
|
|
1237
|
+
.then((bool)=>{
|
|
1238
|
+
console.log('updateAds', bool);
|
|
1239
|
+
}, error=>{
|
|
1240
|
+
console.log('error', error);
|
|
1241
|
+
})
|
|
1242
|
+
* @param id_ads
|
|
1243
|
+
* @param data
|
|
1244
|
+
* @return Promise => bool = true or false
|
|
1245
|
+
*/
|
|
1246
|
+
updateAds(id_ads: string, data: object): Promise<unknown>;
|
|
1247
|
+
/**
|
|
1248
|
+
* @example:
|
|
1249
|
+
* this.vhQueryCafe.deleteAds('5fb67fda87c0f21d484cbdf3')
|
|
1250
|
+
.then((bool)=>{
|
|
1251
|
+
console.log('deleteAds', bool);
|
|
1252
|
+
}, error=>{
|
|
1253
|
+
reject(error)
|
|
1254
|
+
})
|
|
1255
|
+
* @param id_ads
|
|
1256
|
+
* @return Promise => bool = true or false
|
|
1257
|
+
*/
|
|
1258
|
+
deleteAds(id_ads: string): Promise<unknown>;
|
|
1259
|
+
/**
|
|
1260
|
+
* @example
|
|
1261
|
+
* this.vhQueryCafe.getAds('5fb67fda87c0f21d484cbdf3')
|
|
1262
|
+
.then((ads)=>{
|
|
1263
|
+
console.log('getAds', ads);
|
|
1264
|
+
})
|
|
1265
|
+
* @param id_ads
|
|
1266
|
+
* @return false or object
|
|
1267
|
+
*/
|
|
1268
|
+
getAds(id_ads: string): Promise<unknown>;
|
|
1269
|
+
/**
|
|
1270
|
+
* @example
|
|
1271
|
+
* this.vhQueryCafe.getAdss()
|
|
1272
|
+
.then((adss)=>{
|
|
1273
|
+
console.log('getAdss', adss);
|
|
1274
|
+
})
|
|
1275
|
+
* @return array(object) = [{},{},..]
|
|
1276
|
+
*/
|
|
1277
|
+
getAdss(): Promise<unknown>;
|
|
1278
|
+
/**
|
|
1279
|
+
* @example
|
|
1280
|
+
* this.vhQueryCafe.getAdss_byFields('hjkhklf8f90we8', {quantity:{$gte:10}}, {}, {}, 0)
|
|
1281
|
+
.then((adss)=>{
|
|
1282
|
+
console.log('getAdss_byFields', adss);
|
|
1283
|
+
})
|
|
1284
|
+
* @param query
|
|
1285
|
+
* @param projection
|
|
1286
|
+
* @param sort
|
|
1287
|
+
* @param limit
|
|
1288
|
+
* @return Promise => array(object) = [{},{},..]
|
|
1289
|
+
*/
|
|
1290
|
+
getAdss_byFields(query: any, projection?: object, sort?: any, limit?: number): Promise<unknown>;
|
|
1221
1291
|
private publishObservableEventTables;
|
|
1222
1292
|
private observableLocalTables;
|
|
1223
1293
|
/**
|
|
@@ -1256,7 +1326,7 @@ export declare class VhQueryCafe {
|
|
|
1256
1326
|
refreshLocalTables(): any;
|
|
1257
1327
|
/**
|
|
1258
1328
|
* @example:
|
|
1259
|
-
* this.vhQueryCafe.addTable({name:'
|
|
1329
|
+
* this.vhQueryCafe.addTable({name:'Bàn 2', id_area:'hou9080asdfasdfashf', id_branch:'j7H8FADQlxQWB0pPq4Qt', status:false})
|
|
1260
1330
|
.then((table)=>{
|
|
1261
1331
|
console.log('addTable', table);
|
|
1262
1332
|
}, error=>{
|
|
@@ -1647,7 +1717,7 @@ export declare class VhQueryCafe {
|
|
|
1647
1717
|
private observableLocalSuppliers;
|
|
1648
1718
|
/**
|
|
1649
1719
|
* @example:
|
|
1650
|
-
* this.observableSupplier = this.
|
|
1720
|
+
* this.observableSupplier = this.vhQueryCafe.getObservableLocalSuppliers().subscribe((localSuppliers:any) => {
|
|
1651
1721
|
do something...
|
|
1652
1722
|
})
|
|
1653
1723
|
|
|
@@ -2344,31 +2414,17 @@ export declare class VhQueryCafe {
|
|
|
2344
2414
|
*/
|
|
2345
2415
|
getPatternMenus(): Promise<unknown>;
|
|
2346
2416
|
/**
|
|
2347
|
-
|
|
2348
|
-
|
|
2349
|
-
|
|
2350
|
-
|
|
2351
|
-
|
|
2352
|
-
|
|
2353
|
-
|
|
2354
|
-
|
|
2355
|
-
|
|
2356
|
-
|
|
2357
|
-
|
|
2358
|
-
* 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
|
|
2359
|
-
*/
|
|
2360
|
-
addDebtAtBeginningCustomer(id_customer: string, id_branch: string, debt: number): Promise<unknown>;
|
|
2361
|
-
/**
|
|
2362
|
-
* @example:
|
|
2363
|
-
* this.vhQueryCafe.updateDebtAtBeginningCustomer('5fb6780ca2148e09806c5b01', 2000000)
|
|
2364
|
-
.then((bool)=>{
|
|
2365
|
-
console.log('updateDebtAtBeginningCustomer', bool);
|
|
2366
|
-
})
|
|
2367
|
-
* @param id_debtatbeginningcustomer
|
|
2368
|
-
* @param debt
|
|
2369
|
-
* @return Promise => bool = true or false
|
|
2370
|
-
*/
|
|
2371
|
-
updateDebtAtBeginningCustomer(id_debtatbeginningcustomer: string, debt: number): Promise<unknown>;
|
|
2417
|
+
* @example:
|
|
2418
|
+
* this.vhQueryCafe.updateDebtAtBeginningCustomer('5fb6780ca2148e09806c5b01', '56345gy34t12tf12', 2000000)
|
|
2419
|
+
.then((bool)=>{
|
|
2420
|
+
console.log('updateDebtAtBeginningCustomer', bool);
|
|
2421
|
+
})
|
|
2422
|
+
* @param id_customer
|
|
2423
|
+
* @param id_branch
|
|
2424
|
+
* @param debt_beginning
|
|
2425
|
+
* @return Promise => bool = true or false
|
|
2426
|
+
*/
|
|
2427
|
+
updateDebtAtBeginningCustomer(id_customer: string, id_branch: string, debt_beginning: number): Promise<unknown>;
|
|
2372
2428
|
/**
|
|
2373
2429
|
* @example
|
|
2374
2430
|
* this.vhQueryCafe.getDebtAtBeginningCustomers_byIDcustomer()
|
|
@@ -2378,7 +2434,7 @@ export declare class VhQueryCafe {
|
|
|
2378
2434
|
* @param id_customer
|
|
2379
2435
|
* @return Promise => array(object) = [{},{},..]
|
|
2380
2436
|
*/
|
|
2381
|
-
getDebtAtBeginningCustomers_byIDcustomer
|
|
2437
|
+
private getDebtAtBeginningCustomers_byIDcustomer;
|
|
2382
2438
|
/**
|
|
2383
2439
|
* @example
|
|
2384
2440
|
* this.vhQueryCafe.getDebtAtBeginningCustomers_byIDbranch()
|
|
@@ -2388,7 +2444,7 @@ export declare class VhQueryCafe {
|
|
|
2388
2444
|
* @param id_customer
|
|
2389
2445
|
* @return Promise => array(object) = [{},{},..]
|
|
2390
2446
|
*/
|
|
2391
|
-
getDebtAtBeginningCustomers_byIDbranch
|
|
2447
|
+
private getDebtAtBeginningCustomers_byIDbranch;
|
|
2392
2448
|
/**
|
|
2393
2449
|
* @example
|
|
2394
2450
|
* this.vhQueryCafe.getDebtAtBeginningCustomers_byIDcustomer_byIDbranch('3546235ytrhdghyw465', 'i5455234trgxi8675eg')
|
|
@@ -2398,7 +2454,7 @@ export declare class VhQueryCafe {
|
|
|
2398
2454
|
* @param id_customer
|
|
2399
2455
|
* @return Promise => array(object) = [{},{},..]
|
|
2400
2456
|
*/
|
|
2401
|
-
getDebtAtBeginningCustomers_byIDcustomer_byIDbranch
|
|
2457
|
+
private getDebtAtBeginningCustomers_byIDcustomer_byIDbranch;
|
|
2402
2458
|
/**
|
|
2403
2459
|
* @example
|
|
2404
2460
|
* this.vhQueryCafe.getDebtAtBeginningCustomers()
|
|
@@ -2407,33 +2463,19 @@ export declare class VhQueryCafe {
|
|
|
2407
2463
|
})
|
|
2408
2464
|
* @return Promise => array(object) = [{},{},..]
|
|
2409
2465
|
*/
|
|
2410
|
-
getDebtAtBeginningCustomers
|
|
2466
|
+
private getDebtAtBeginningCustomers;
|
|
2411
2467
|
/**
|
|
2412
2468
|
* @example:
|
|
2413
|
-
* this.vhQueryCafe.
|
|
2414
|
-
|
|
2415
|
-
|
|
2416
|
-
|
|
2417
|
-
console.log('error', error);
|
|
2418
|
-
})
|
|
2469
|
+
* this.vhQueryCafe.updateDebtAtBeginningSupplier('5fb6780ca2148e09806c5b01', '56345gy34t12tf12', 2000000)
|
|
2470
|
+
.then((bool)=>{
|
|
2471
|
+
console.log('updateDebtAtBeginningSupplier', bool);
|
|
2472
|
+
})
|
|
2419
2473
|
* @param id_supplier
|
|
2420
2474
|
* @param id_branch
|
|
2421
|
-
* @param
|
|
2422
|
-
* @return Promise =>
|
|
2423
|
-
* 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
|
|
2475
|
+
* @param debt_beginning
|
|
2476
|
+
* @return Promise => bool = true or false
|
|
2424
2477
|
*/
|
|
2425
|
-
|
|
2426
|
-
/**
|
|
2427
|
-
* @example:
|
|
2428
|
-
* this.vhQueryCafe.updateDebtAtBeginningSupplier('5fb6780ca2148e09806c5b01', 2000000)
|
|
2429
|
-
.then((bool)=>{
|
|
2430
|
-
console.log('updateDebtAtBeginningSupplier', bool);
|
|
2431
|
-
})
|
|
2432
|
-
* @param id_debtatbeginningsupplier
|
|
2433
|
-
* @param debt
|
|
2434
|
-
* @return Promise => bool = true or false
|
|
2435
|
-
*/
|
|
2436
|
-
updateDebtAtBeginningSupplier(id_debtatbeginningsupplier: string, debt: number): Promise<unknown>;
|
|
2478
|
+
updateDebtAtBeginningSupplier(id_supplier: string, id_branch: string, debt_beginning: number): Promise<unknown>;
|
|
2437
2479
|
/**
|
|
2438
2480
|
* @example
|
|
2439
2481
|
* this.vhQueryCafe.getDebtAtBeginningSuppliers_byIDsupplier()
|
|
@@ -2443,7 +2485,7 @@ export declare class VhQueryCafe {
|
|
|
2443
2485
|
* @param id_supplier
|
|
2444
2486
|
* @return Promise => array(object) = [{},{},..]
|
|
2445
2487
|
*/
|
|
2446
|
-
getDebtAtBeginningSuppliers_byIDsupplier
|
|
2488
|
+
private getDebtAtBeginningSuppliers_byIDsupplier;
|
|
2447
2489
|
/**
|
|
2448
2490
|
* @example
|
|
2449
2491
|
* this.vhQueryCafe.getDebtAtBeginningSuppliers_byIDbranch()
|
|
@@ -2453,7 +2495,7 @@ export declare class VhQueryCafe {
|
|
|
2453
2495
|
* @param id_branch
|
|
2454
2496
|
* @return Promise => array(object) = [{},{},..]
|
|
2455
2497
|
*/
|
|
2456
|
-
getDebtAtBeginningSuppliers_byIDbranch
|
|
2498
|
+
private getDebtAtBeginningSuppliers_byIDbranch;
|
|
2457
2499
|
/**
|
|
2458
2500
|
* @example
|
|
2459
2501
|
* this.vhQueryCafe.getDebtAtBeginningSuppliers_byIDsupplier_byIDbranch('4ye5r6tyhdfdfaenm', '576dfgbdshdmiret3')
|
|
@@ -2464,7 +2506,7 @@ export declare class VhQueryCafe {
|
|
|
2464
2506
|
* @param id_branch
|
|
2465
2507
|
* @return Promise => array(object) = [{},{},..]
|
|
2466
2508
|
*/
|
|
2467
|
-
getDebtAtBeginningSuppliers_byIDsupplier_byIDbranch
|
|
2509
|
+
private getDebtAtBeginningSuppliers_byIDsupplier_byIDbranch;
|
|
2468
2510
|
/**
|
|
2469
2511
|
* @example
|
|
2470
2512
|
* this.vhQueryCafe.getDebtAtBeginningSuppliers()
|
|
@@ -2473,7 +2515,7 @@ export declare class VhQueryCafe {
|
|
|
2473
2515
|
})
|
|
2474
2516
|
* @return Promise => array(object) = [{},{},..]
|
|
2475
2517
|
*/
|
|
2476
|
-
getDebtAtBeginningSuppliers
|
|
2518
|
+
private getDebtAtBeginningSuppliers;
|
|
2477
2519
|
setDefaultBranch(id_branch: any): void;
|
|
2478
2520
|
getDefaultBranch(): any;
|
|
2479
2521
|
clearDefaultBranch(): void;
|
|
@@ -3854,7 +3896,7 @@ export declare class VhQueryCafe {
|
|
|
3854
3896
|
/**
|
|
3855
3897
|
* lấy về danh sách sản phẩm sắp hết hàng
|
|
3856
3898
|
* @example:
|
|
3857
|
-
* this.vhQueryCafe.
|
|
3899
|
+
* this.vhQueryCafe.getReportMaterials_byLowInStock()
|
|
3858
3900
|
.then((products)=>{
|
|
3859
3901
|
console.log(products);
|
|
3860
3902
|
})
|
|
@@ -6904,7 +6946,7 @@ export declare class VhQuerySales {
|
|
|
6904
6946
|
* let suppliers = this.vhQuerySales.getlocalWallets();
|
|
6905
6947
|
* @return Array(object) => array = [{},{},...]
|
|
6906
6948
|
*/
|
|
6907
|
-
getlocalSuppliers(): any;
|
|
6949
|
+
getlocalSuppliers(): any[];
|
|
6908
6950
|
/**
|
|
6909
6951
|
* this.vhQuerySales.refreshLocalSuppliers()
|
|
6910
6952
|
.then(()=>{
|
|
@@ -7022,7 +7064,7 @@ export declare class VhQuerySales {
|
|
|
7022
7064
|
* let wallets = this.vhQuerySales.getlocalWallets();
|
|
7023
7065
|
* @return Array(object) => array = [{},{},...]
|
|
7024
7066
|
*/
|
|
7025
|
-
getlocalWallets(): any;
|
|
7067
|
+
getlocalWallets(): any[];
|
|
7026
7068
|
/**
|
|
7027
7069
|
* @example:
|
|
7028
7070
|
* this.vhQuerySales.refreshLocalWallets()
|
|
@@ -7622,30 +7664,16 @@ export declare class VhQuerySales {
|
|
|
7622
7664
|
getAddresss(): Promise<unknown>;
|
|
7623
7665
|
/**
|
|
7624
7666
|
* @example:
|
|
7625
|
-
* this.vhQuerySales.
|
|
7626
|
-
.then((
|
|
7627
|
-
console.log('
|
|
7628
|
-
},error=>{
|
|
7629
|
-
console.log('error', error);
|
|
7667
|
+
* this.vhQuerySales.updateDebtAtBeginningCustomer('5fb6780ca2148e09806c5b01', '56345gy34t12tf12', 2000000)
|
|
7668
|
+
.then((bool)=>{
|
|
7669
|
+
console.log('updateDebtAtBeginningCustomer', bool);
|
|
7630
7670
|
})
|
|
7631
7671
|
* @param id_customer
|
|
7632
7672
|
* @param id_branch
|
|
7633
|
-
* @param
|
|
7634
|
-
* @return
|
|
7635
|
-
* 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
|
|
7673
|
+
* @param debt_beginning
|
|
7674
|
+
* @return Promise => bool = true or false
|
|
7636
7675
|
*/
|
|
7637
|
-
|
|
7638
|
-
/**
|
|
7639
|
-
* @example:
|
|
7640
|
-
* this.vhQuerySales.updateDebtAtBeginningCustomer('5fb6780ca2148e09806c5b01', 2000000)
|
|
7641
|
-
.then((bool)=>{
|
|
7642
|
-
console.log('updateDebtAtBeginningCustomer', bool);
|
|
7643
|
-
})
|
|
7644
|
-
* @param id_debtatbeginningcustomer
|
|
7645
|
-
* @param debt
|
|
7646
|
-
* @return Promise => bool = true or false
|
|
7647
|
-
*/
|
|
7648
|
-
updateDebtAtBeginningCustomer(id_debtatbeginningcustomer: string, debt: number): Promise<unknown>;
|
|
7676
|
+
updateDebtAtBeginningCustomer(id_customer: string, id_branch: string, debt_beginning: number): Promise<unknown>;
|
|
7649
7677
|
/**
|
|
7650
7678
|
* @example
|
|
7651
7679
|
* this.vhQuerySales.getDebtAtBeginningCustomers_byIDcustomer()
|
|
@@ -7687,30 +7715,16 @@ export declare class VhQuerySales {
|
|
|
7687
7715
|
getDebtAtBeginningCustomers(): Promise<unknown>;
|
|
7688
7716
|
/**
|
|
7689
7717
|
* @example:
|
|
7690
|
-
* this.vhQuerySales.
|
|
7691
|
-
.then((debtatbeginning)=>{
|
|
7692
|
-
console.log('addDebtAtBeginningSupplier', debtatbeginning);
|
|
7693
|
-
},error=>{
|
|
7694
|
-
console.log('error', error);
|
|
7695
|
-
})
|
|
7696
|
-
* @param id_supplier
|
|
7697
|
-
* @param id_branch
|
|
7698
|
-
* @param debt
|
|
7699
|
-
* @return Promise => obj = {}
|
|
7700
|
-
* 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
|
|
7701
|
-
*/
|
|
7702
|
-
addDebtAtBeginningSupplier(id_supplier: string, id_branch: string, debt: number): Promise<unknown>;
|
|
7703
|
-
/**
|
|
7704
|
-
* @example:
|
|
7705
|
-
* this.vhQuerySales.updateDebtAtBeginningSupplier('5fb6780ca2148e09806c5b01', 2000000)
|
|
7718
|
+
* this.vhQuerySales.updateDebtAtBeginningSupplier('5fb6780ca2148e09806c5b01', '56345gy34t12tf12', 2000000)
|
|
7706
7719
|
.then((bool)=>{
|
|
7707
7720
|
console.log('updateDebtAtBeginningSupplier', bool);
|
|
7708
7721
|
})
|
|
7709
|
-
* @param
|
|
7710
|
-
* @param
|
|
7722
|
+
* @param id_supplier
|
|
7723
|
+
* @param id_branch
|
|
7724
|
+
* @param debt_beginning
|
|
7711
7725
|
* @return Promise => bool = true or false
|
|
7712
7726
|
*/
|
|
7713
|
-
updateDebtAtBeginningSupplier(
|
|
7727
|
+
updateDebtAtBeginningSupplier(id_supplier: string, id_branch: string, debt_beginning: number): Promise<unknown>;
|
|
7714
7728
|
/**
|
|
7715
7729
|
* @example
|
|
7716
7730
|
* this.vhQuerySales.getDebtAtBeginningSuppliers_byIDsupplier()
|
|
@@ -7730,7 +7744,7 @@ export declare class VhQuerySales {
|
|
|
7730
7744
|
* @param id_branch
|
|
7731
7745
|
* @return Promise => array(object) = [{},{},..]
|
|
7732
7746
|
*/
|
|
7733
|
-
getDebtAtBeginningSuppliers_byIDbranch
|
|
7747
|
+
private getDebtAtBeginningSuppliers_byIDbranch;
|
|
7734
7748
|
/**
|
|
7735
7749
|
* @example
|
|
7736
7750
|
* this.vhQuerySales.getDebtAtBeginningSuppliers_byIDsupplier_byIDbranch('4ye5r6tyhdfdfaenm', '576dfgbdshdmiret3')
|
|
@@ -8722,6 +8736,7 @@ export declare class VhQuerySales {
|
|
|
8722
8736
|
* @Notice bill_type = [1,10,15,30,2,3,9,31]
|
|
8723
8737
|
*/
|
|
8724
8738
|
getReportInputOutputInventory_byTime_byIDProduct(starttime: any, endtime: any, IDproduct: any, IDbranch?: any): Promise<any>;
|
|
8739
|
+
syncInventoryEveryDay(): Promise<any>;
|
|
8725
8740
|
/**
|
|
8726
8741
|
* Hàm này dùng trong page Tồn kho, giá trị tồn kho, doanh số, chi phí nhập hàng tại một thời điểm endtime nào đó
|
|
8727
8742
|
* @example:
|
|
@@ -8967,6 +8982,15 @@ export declare class VhQuerySales {
|
|
|
8967
8982
|
* @notice : ở giao diện APP, chọn IDbranch rồi mới hiện ra những IDwallet của chi nhánh đó để chọn tiếp. Nếu IDbranch = 'all' thì IDwallet phải là 'all'
|
|
8968
8983
|
*/
|
|
8969
8984
|
getReportCashBook(starttime: any, endtime: any, IDwallet: any, IDbranch?: string): Promise<unknown>;
|
|
8985
|
+
private getReportCashBook_old;
|
|
8986
|
+
private syncCashBook;
|
|
8987
|
+
/**
|
|
8988
|
+
*
|
|
8989
|
+
* @returns
|
|
8990
|
+
*/
|
|
8991
|
+
syncCashBookEveryDay(): Promise<unknown>;
|
|
8992
|
+
private get15thDayOfMonthArray;
|
|
8993
|
+
private get1stDayOfMonthArray;
|
|
8970
8994
|
/**
|
|
8971
8995
|
* VhQuerySales: đã check
|
|
8972
8996
|
* @param starttime
|
|
@@ -8981,11 +9005,12 @@ export declare class VhQuerySales {
|
|
|
8981
9005
|
getReportIncomeExpenditureDiary(starttime: any, endtime: any, id_wallet: any, id_employee: any, array_bill_type: any, IDbranch?: string): Promise<unknown>;
|
|
8982
9006
|
/**
|
|
8983
9007
|
* VhQuerySales:
|
|
9008
|
+
* @param IDsuppiler: id_supplier hoặc 'all'
|
|
8984
9009
|
* @param IDbranch: id_branch hoặc 'all'
|
|
8985
9010
|
* @return JSON(Array) => json.docs = [{id, name, index, debt, payment, rest,...},{},....]
|
|
8986
9011
|
* Lưu ý: giá trị này trả về dạng array
|
|
8987
9012
|
*/
|
|
8988
|
-
getDebtSuppliers(IDbranch?: string): Promise<any>;
|
|
9013
|
+
getDebtSuppliers(starttime: any, endtime: any, IDsuppiler: string, IDbranch?: string): Promise<any>;
|
|
8989
9014
|
/**
|
|
8990
9015
|
* VhQuerySales:
|
|
8991
9016
|
* @param id_supplier
|
|
@@ -9004,7 +9029,7 @@ export declare class VhQuerySales {
|
|
|
9004
9029
|
* @return JSON(Array) => json.docs = [{id, name, index, debt, payment, rest,...},{},....]
|
|
9005
9030
|
* Lưu ý: giá trị này trả về dạng array
|
|
9006
9031
|
*/
|
|
9007
|
-
getDebtCustomers(IDbranch?: string): Promise<any>;
|
|
9032
|
+
getDebtCustomers(starttime: any, endtime: any, IDcustomer: string, IDbranch?: string): Promise<any>;
|
|
9008
9033
|
/**
|
|
9009
9034
|
* VhQuerySales:
|
|
9010
9035
|
* @param id_customer
|