- ordinamento per Data
This commit is contained in:
@@ -74,6 +74,7 @@ const SubCatProd = require('../models/subcatprod');
|
||||
const Gasordine = require('../models/gasordine');
|
||||
const Product = require('../models/product');
|
||||
const Author = require('../models/author');
|
||||
const Publisher = require('../models/publisher');
|
||||
const ProductInfo = require('../models/productInfo');
|
||||
const Scontistica = require('../models/scontistica');
|
||||
const Department = require('../models/department');
|
||||
@@ -1366,6 +1367,7 @@ router.post('/duprec/:table/:id', authenticate, async (req, res) => {
|
||||
|
||||
tools.mylog('DUPLICATED ', rec);
|
||||
|
||||
|
||||
// Do extra things after deleted
|
||||
return await actions.doOtherThingsAfterDuplicated(tablename, rec).
|
||||
then(({ myrec }) => {
|
||||
@@ -1425,6 +1427,7 @@ function load(req, res, version) {
|
||||
|
||||
// tools.mylog('loadsite : ', req.params);
|
||||
|
||||
|
||||
let bookedevent = [];
|
||||
// let msgs = [];
|
||||
|
||||
@@ -1490,6 +1493,7 @@ function load(req, res, version) {
|
||||
}
|
||||
let products = Product.findAllIdApp(idapp, undefined, undefined, ismanager);
|
||||
let authors = Author.findAllIdApp(idapp);
|
||||
let publishers = Publisher.findAllIdApp(idapp);
|
||||
let productInfos = ProductInfo.findAllIdApp(idapp);
|
||||
let scontisticas = Scontistica.findAllIdApp(idapp);
|
||||
let departments = Department.findAllIdApp(idapp);
|
||||
@@ -1587,6 +1591,7 @@ function load(req, res, version) {
|
||||
catprods_gas,
|
||||
catAI,
|
||||
authors,
|
||||
publishers,
|
||||
]).then((arrdata) => {
|
||||
// console.table(arrdata);
|
||||
let myuser = req.user;
|
||||
@@ -1680,6 +1685,7 @@ function load(req, res, version) {
|
||||
catAI: arrdata[48],
|
||||
code: req.code,
|
||||
authors: arrdata[49],
|
||||
publishers: arrdata[50],
|
||||
});
|
||||
|
||||
const prova = 1;
|
||||
|
||||
Reference in New Issue
Block a user