Enhance Database Models with Additional Cost and Pricing Fields

- Added 'additionalCost' and 'additionalCostWithTax' fields to CourierService model.
- Introduced 'connection.port' field in DocumentPrinter model.
- Updated Filament model with 'density' and 'emptySpoolWeight' fields.
- Enhanced Part, PartSku, Product, and ProductSku models by adding 'cost', 'costWithTax', 'price', 'margin', and 'priceWithTax' fields for improved pricing structure.
This commit is contained in:
Tom Butcher 2026-09-01 17:35:20 +01:00
parent d96b84513c
commit b590890bd3
7 changed files with 33 additions and 0 deletions

View File

@ -131,6 +131,8 @@ export const CourierService = {
'deliveryTime', 'deliveryTime',
'cost', 'cost',
'costWithTax', 'costWithTax',
'additionalCost',
'additionalCostWithTax',
'createdAt', 'createdAt',
'updatedAt', 'updatedAt',
'_reference' '_reference'
@ -140,8 +142,11 @@ export const CourierService = {
'courier', 'courier',
'active', 'active',
'tracked', 'tracked',
'deliveryTime',
'cost', 'cost',
'costWithTax', 'costWithTax',
'additionalCost',
'additionalCostWithTax',
'estimatedDeliveryTime', 'estimatedDeliveryTime',
'createdAt', 'createdAt',
'_id', '_id',

View File

@ -103,6 +103,7 @@ export const DocumentPrinter = {
'active', 'active',
'isGlobal', 'isGlobal',
'state', 'state',
'connection.port',
'createdAt', 'createdAt',
'updatedAt', 'updatedAt',
'_reference' '_reference'
@ -111,6 +112,7 @@ export const DocumentPrinter = {
'name', 'name',
'documentSize', 'documentSize',
'connectedAt', 'connectedAt',
'connection.port',
'updatedAt', 'updatedAt',
'state', 'state',
'createdAt' 'createdAt'

View File

@ -135,7 +135,10 @@ export const Filament = {
'material', 'material',
'diameter', 'diameter',
'name', 'name',
'density',
'emptySpoolWeight',
'cost', 'cost',
'costWithTax',
'createdAt', 'createdAt',
'updatedAt', 'updatedAt',
'_reference' '_reference'
@ -145,6 +148,9 @@ export const Filament = {
'createdAt', 'createdAt',
'vendor', 'vendor',
'material', 'material',
'diameter',
'density',
'emptySpoolWeight',
'cost', 'cost',
'costWithTax', 'costWithTax',
'updatedAt' 'updatedAt'

View File

@ -113,6 +113,11 @@ export const Part = {
'product._id', 'product._id',
'_id', '_id',
'name', 'name',
'cost',
'costWithTax',
'price',
'margin',
'priceWithTax',
'createdAt', 'createdAt',
'updatedAt', 'updatedAt',
'_reference' '_reference'
@ -123,6 +128,7 @@ export const Part = {
'cost', 'cost',
'costWithTax', 'costWithTax',
'price', 'price',
'margin',
'priceWithTax', 'priceWithTax',
'createdAt', 'createdAt',
'updatedAt', 'updatedAt',

View File

@ -124,7 +124,10 @@ export const PartSku = {
'part', 'part',
'name', 'name',
'cost', 'cost',
'costWithTax',
'price', 'price',
'priceWithTax',
'margin',
'createdAt', 'createdAt',
'updatedAt', 'updatedAt',
'_reference' '_reference'
@ -137,6 +140,7 @@ export const PartSku = {
'costWithTax', 'costWithTax',
'price', 'price',
'priceWithTax', 'priceWithTax',
'margin',
'createdAt', 'createdAt',
'updatedAt' 'updatedAt'
], ],

View File

@ -118,6 +118,11 @@ export const Product = {
'name', 'name',
'globalPrice', 'globalPrice',
'productCategory', 'productCategory',
'cost',
'costWithTax',
'price',
'margin',
'priceWithTax',
'createdAt', 'createdAt',
'updatedAt', 'updatedAt',
'_reference' '_reference'
@ -131,6 +136,7 @@ export const Product = {
'cost', 'cost',
'costWithTax', 'costWithTax',
'price', 'price',
'margin',
'priceWithTax', 'priceWithTax',
'updatedAt' 'updatedAt'
], ],

View File

@ -124,7 +124,10 @@ export const ProductSku = {
'product', 'product',
'name', 'name',
'cost', 'cost',
'costWithTax',
'price', 'price',
'priceWithTax',
'margin',
'createdAt', 'createdAt',
'updatedAt', 'updatedAt',
'_reference' '_reference'
@ -137,6 +140,7 @@ export const ProductSku = {
'costWithTax', 'costWithTax',
'price', 'price',
'priceWithTax', 'priceWithTax',
'margin',
'createdAt', 'createdAt',
'updatedAt' 'updatedAt'
], ],