agg
This commit is contained in:
@@ -40,7 +40,7 @@ const productSchema = new Schema({
|
|||||||
category: {
|
category: {
|
||||||
type: Array,
|
type: Array,
|
||||||
},
|
},
|
||||||
prezzo_ivato: {
|
prezzo_ivato: { // Con IVA
|
||||||
type: Number
|
type: Number
|
||||||
},
|
},
|
||||||
perc_iva: { // 4, 10, 22 &
|
perc_iva: { // 4, 10, 22 &
|
||||||
@@ -187,6 +187,9 @@ module.exports.getProductByID = function (id, callback) {
|
|||||||
Product.findById(id, callback);
|
Product.findById(id, callback);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
// const Product = mongoose.model('Product', ProductSchema);
|
// const Product = mongoose.model('Product', ProductSchema);
|
||||||
|
|
||||||
// module.exports = { Product };
|
// module.exports = { Product };
|
||||||
|
// PROVA
|
||||||
|
|||||||
Reference in New Issue
Block a user