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',
'cost',
'costWithTax',
'additionalCost',
'additionalCostWithTax',
'createdAt',
'updatedAt',
'_reference'
@ -140,8 +142,11 @@ export const CourierService = {
'courier',
'active',
'tracked',
'deliveryTime',
'cost',
'costWithTax',
'additionalCost',
'additionalCostWithTax',
'estimatedDeliveryTime',
'createdAt',
'_id',

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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