Update columnWidth properties across multiple models for consistency
All checks were successful
farmcontrol/farmcontrol-ui/pipeline/head This commit looks good
All checks were successful
farmcontrol/farmcontrol-ui/pipeline/head This commit looks good
- Increased the columnWidth from 250 or 120 to 260 in various models including DocumentJob, DocumentPrinter, FilamentStock, Host, Invoice, Job, and others. - This change ensures a uniform width for better alignment and presentation in the UI.
This commit is contained in:
parent
084d807c95
commit
e730e2c832
@ -111,7 +111,7 @@ export const DocumentJob = {
|
|||||||
objectType: 'printer',
|
objectType: 'printer',
|
||||||
showName: false,
|
showName: false,
|
||||||
readOnly: true,
|
readOnly: true,
|
||||||
columnWidth: 250
|
columnWidth: 260
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: 'objectType',
|
name: 'objectType',
|
||||||
|
|||||||
@ -113,7 +113,7 @@ export const DocumentPrinter = {
|
|||||||
objectType: 'printer',
|
objectType: 'printer',
|
||||||
showName: false,
|
showName: false,
|
||||||
readOnly: true,
|
readOnly: true,
|
||||||
columnWidth: 250
|
columnWidth: 260
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: 'connectedAt',
|
name: 'connectedAt',
|
||||||
|
|||||||
@ -79,7 +79,7 @@ export const FilamentStock = {
|
|||||||
type: 'state',
|
type: 'state',
|
||||||
objectType: 'filamentStock',
|
objectType: 'filamentStock',
|
||||||
readOnly: true,
|
readOnly: true,
|
||||||
columnWidth: 250
|
columnWidth: 260
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: 'filament',
|
name: 'filament',
|
||||||
|
|||||||
@ -132,7 +132,7 @@ export const Host = {
|
|||||||
objectType: 'host',
|
objectType: 'host',
|
||||||
showName: false,
|
showName: false,
|
||||||
readOnly: true,
|
readOnly: true,
|
||||||
columnWidth: 250
|
columnWidth: 260
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: 'online',
|
name: 'online',
|
||||||
|
|||||||
@ -191,7 +191,7 @@ export const Invoice = {
|
|||||||
label: 'State',
|
label: 'State',
|
||||||
type: 'state',
|
type: 'state',
|
||||||
readOnly: true,
|
readOnly: true,
|
||||||
columnWidth: 250
|
columnWidth: 260
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: 'issuedAt',
|
name: 'issuedAt',
|
||||||
|
|||||||
@ -132,7 +132,7 @@ export const Job = {
|
|||||||
showProgress: true,
|
showProgress: true,
|
||||||
showId: false,
|
showId: false,
|
||||||
showQuantity: false,
|
showQuantity: false,
|
||||||
columnWidth: 250,
|
columnWidth: 260,
|
||||||
readOnly: true
|
readOnly: true
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
|||||||
@ -248,7 +248,7 @@ export const Listing = {
|
|||||||
type: 'state',
|
type: 'state',
|
||||||
objectType: 'listing',
|
objectType: 'listing',
|
||||||
readOnly: true,
|
readOnly: true,
|
||||||
columnWidth: 130
|
columnWidth: 260
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: 'price',
|
name: 'price',
|
||||||
|
|||||||
@ -185,7 +185,7 @@ export const ListingVarient = {
|
|||||||
type: 'state',
|
type: 'state',
|
||||||
objectType: 'listingVarient',
|
objectType: 'listingVarient',
|
||||||
readOnly: true,
|
readOnly: true,
|
||||||
columnWidth: 130
|
columnWidth: 260
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: 'price',
|
name: 'price',
|
||||||
|
|||||||
@ -234,7 +234,7 @@ export const Marketplace = {
|
|||||||
type: 'state',
|
type: 'state',
|
||||||
objectType: 'marketplace',
|
objectType: 'marketplace',
|
||||||
readOnly: true,
|
readOnly: true,
|
||||||
columnWidth: 130
|
columnWidth: 260
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: 'active',
|
name: 'active',
|
||||||
|
|||||||
@ -165,7 +165,7 @@ export const OrderItem = {
|
|||||||
label: 'State',
|
label: 'State',
|
||||||
type: 'state',
|
type: 'state',
|
||||||
readOnly: true,
|
readOnly: true,
|
||||||
columnWidth: 250
|
columnWidth: 260
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: 'receivedAt',
|
name: 'receivedAt',
|
||||||
@ -374,15 +374,11 @@ export const OrderItem = {
|
|||||||
if (!totalAmount) return 0
|
if (!totalAmount) return 0
|
||||||
if (objectData?.taxRate?.rateType == 'percentage') {
|
if (objectData?.taxRate?.rateType == 'percentage') {
|
||||||
return (
|
return (
|
||||||
(
|
(totalAmount * (1 + objectData?.taxRate?.rate / 100)).toFixed(2) ||
|
||||||
totalAmount *
|
0
|
||||||
(1 + objectData?.taxRate?.rate / 100)
|
|
||||||
).toFixed(2) || 0
|
|
||||||
)
|
)
|
||||||
} else if (objectData?.taxRate?.rateType == 'amount') {
|
} else if (objectData?.taxRate?.rateType == 'amount') {
|
||||||
return (
|
return (totalAmount + objectData?.taxRate?.rate).toFixed(2) || 0
|
||||||
(totalAmount + objectData?.taxRate?.rate).toFixed(2) || 0
|
|
||||||
)
|
|
||||||
}
|
}
|
||||||
return totalAmount
|
return totalAmount
|
||||||
}
|
}
|
||||||
|
|||||||
@ -62,7 +62,7 @@ export const PartStock = {
|
|||||||
label: 'State',
|
label: 'State',
|
||||||
type: 'state',
|
type: 'state',
|
||||||
readOnly: true,
|
readOnly: true,
|
||||||
columnWidth: 120
|
columnWidth: 260
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: 'updatedAt',
|
name: 'updatedAt',
|
||||||
|
|||||||
@ -184,7 +184,7 @@ export const Payment = {
|
|||||||
label: 'State',
|
label: 'State',
|
||||||
type: 'state',
|
type: 'state',
|
||||||
readOnly: true,
|
readOnly: true,
|
||||||
columnWidth: 250
|
columnWidth: 260
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: 'postedAt',
|
name: 'postedAt',
|
||||||
|
|||||||
@ -286,7 +286,7 @@ export const Printer = {
|
|||||||
objectType: 'printer',
|
objectType: 'printer',
|
||||||
showName: false,
|
showName: false,
|
||||||
readOnly: true,
|
readOnly: true,
|
||||||
columnWidth: 250
|
columnWidth: 260
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: 'online',
|
name: 'online',
|
||||||
|
|||||||
@ -129,7 +129,7 @@ export const ProductStock = {
|
|||||||
label: 'State',
|
label: 'State',
|
||||||
type: 'state',
|
type: 'state',
|
||||||
readOnly: true,
|
readOnly: true,
|
||||||
columnWidth: 120
|
columnWidth: 260
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: 'postedAt',
|
name: 'postedAt',
|
||||||
|
|||||||
@ -248,7 +248,7 @@ export const PurchaseOrder = {
|
|||||||
label: 'State',
|
label: 'State',
|
||||||
type: 'state',
|
type: 'state',
|
||||||
readOnly: true,
|
readOnly: true,
|
||||||
columnWidth: 250
|
columnWidth: 260
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: 'postedAt',
|
name: 'postedAt',
|
||||||
|
|||||||
@ -230,7 +230,7 @@ export const SalesOrder = {
|
|||||||
label: 'State',
|
label: 'State',
|
||||||
type: 'state',
|
type: 'state',
|
||||||
readOnly: true,
|
readOnly: true,
|
||||||
columnWidth: 250
|
columnWidth: 260
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: 'postedAt',
|
name: 'postedAt',
|
||||||
|
|||||||
@ -184,7 +184,7 @@ export const Shipment = {
|
|||||||
label: 'State',
|
label: 'State',
|
||||||
type: 'state',
|
type: 'state',
|
||||||
readOnly: true,
|
readOnly: true,
|
||||||
columnWidth: 250
|
columnWidth: 260
|
||||||
},
|
},
|
||||||
|
|
||||||
{
|
{
|
||||||
|
|||||||
@ -54,7 +54,7 @@ export const StockAudit = {
|
|||||||
label: 'State',
|
label: 'State',
|
||||||
type: 'state',
|
type: 'state',
|
||||||
readOnly: true,
|
readOnly: true,
|
||||||
columnWidth: 120
|
columnWidth: 260
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: 'updatedAt',
|
name: 'updatedAt',
|
||||||
|
|||||||
@ -136,7 +136,7 @@ export const StockTransfer = {
|
|||||||
label: 'State',
|
label: 'State',
|
||||||
type: 'state',
|
type: 'state',
|
||||||
readOnly: true,
|
readOnly: true,
|
||||||
columnWidth: 120
|
columnWidth: 260
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: 'postedAt',
|
name: 'postedAt',
|
||||||
|
|||||||
@ -86,7 +86,7 @@ export const SubJob = {
|
|||||||
showProgress: true,
|
showProgress: true,
|
||||||
showId: false,
|
showId: false,
|
||||||
showQuantity: false,
|
showQuantity: false,
|
||||||
columnWidth: 250,
|
columnWidth: 260,
|
||||||
readOnly: true
|
readOnly: true
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user