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 +1 -1
- package/server/libs/tinhgiatb.js +2 -2
package/package.json
CHANGED
package/server/libs/tinhgiatb.js
CHANGED
|
@@ -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);
|