flexbiz-server 12.4.14 → 12.4.15

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/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "flexbiz-server",
3
3
  "main": "./server/app.js",
4
4
  "description": "Flexible Server",
5
- "version": "12.4.14",
5
+ "version": "12.4.15",
6
6
  "author": {
7
7
  "name": "Van Truong Pham",
8
8
  "email": "invncur@gmail.com"
@@ -426,7 +426,7 @@ module.exports = async function(condition, fn) {
426
426
  let _model = ctrl?ctrl.getProperty("model"): mongoose.models[voucher_x.ma_ct.toLowerCase()];
427
427
  await _model.updateOne({_id:voucher_x._id},voucher_x_data)
428
428
  //post lai so sach
429
- if (ctrl && ctrl.post) {
429
+ /*if (ctrl && ctrl.post) {
430
430
  await (new Promise((resolve,reject)=>{
431
431
  //console.log("posted book",{ma_ct:voucher_x.ma_ct,so_ct:voucher_x.so_ct,_id:voucher_x_data._id});
432
432
  Controller.postData(voucher_x_data,ctrl, (e, rs) => {
@@ -437,7 +437,7 @@ module.exports = async function(condition, fn) {
437
437
  resolve(rs);
438
438
  },{kiem_tra_han_muc_cong_no:false});
439
439
  }));
440
- }
440
+ }*/
441
441
  callback(null,voucher_x);
442
442
  }catch(e){
443
443
  console.error("❌ [tinhgiatb] Lỗi cập nhật phiếu xuất:",voucher_x.ma_ct,voucher_x.so_ct,e.message||e.error||e);