This commit is contained in:
Surya Paolo
2023-11-28 15:04:17 +01:00
parent a66cd610dd
commit 0e3ba5ff87

View File

@@ -40,7 +40,7 @@ const productSchema = new Schema({
category: {
type: Array,
},
prezzo_ivato: {
prezzo_ivato: { // Con IVA
type: Number
},
perc_iva: { // 4, 10, 22 &
@@ -187,6 +187,9 @@ module.exports.getProductByID = function (id, callback) {
Product.findById(id, callback);
}
// const Product = mongoose.model('Product', ProductSchema);
// module.exports = { Product };
// PROVA