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',
|
||||
showName: false,
|
||||
readOnly: true,
|
||||
columnWidth: 250
|
||||
columnWidth: 260
|
||||
},
|
||||
{
|
||||
name: 'objectType',
|
||||
|
||||
@ -113,7 +113,7 @@ export const DocumentPrinter = {
|
||||
objectType: 'printer',
|
||||
showName: false,
|
||||
readOnly: true,
|
||||
columnWidth: 250
|
||||
columnWidth: 260
|
||||
},
|
||||
{
|
||||
name: 'connectedAt',
|
||||
|
||||
@ -79,7 +79,7 @@ export const FilamentStock = {
|
||||
type: 'state',
|
||||
objectType: 'filamentStock',
|
||||
readOnly: true,
|
||||
columnWidth: 250
|
||||
columnWidth: 260
|
||||
},
|
||||
{
|
||||
name: 'filament',
|
||||
|
||||
@ -132,7 +132,7 @@ export const Host = {
|
||||
objectType: 'host',
|
||||
showName: false,
|
||||
readOnly: true,
|
||||
columnWidth: 250
|
||||
columnWidth: 260
|
||||
},
|
||||
{
|
||||
name: 'online',
|
||||
|
||||
@ -191,7 +191,7 @@ export const Invoice = {
|
||||
label: 'State',
|
||||
type: 'state',
|
||||
readOnly: true,
|
||||
columnWidth: 250
|
||||
columnWidth: 260
|
||||
},
|
||||
{
|
||||
name: 'issuedAt',
|
||||
|
||||
@ -132,7 +132,7 @@ export const Job = {
|
||||
showProgress: true,
|
||||
showId: false,
|
||||
showQuantity: false,
|
||||
columnWidth: 250,
|
||||
columnWidth: 260,
|
||||
readOnly: true
|
||||
},
|
||||
{
|
||||
|
||||
@ -248,7 +248,7 @@ export const Listing = {
|
||||
type: 'state',
|
||||
objectType: 'listing',
|
||||
readOnly: true,
|
||||
columnWidth: 130
|
||||
columnWidth: 260
|
||||
},
|
||||
{
|
||||
name: 'price',
|
||||
|
||||
@ -185,7 +185,7 @@ export const ListingVarient = {
|
||||
type: 'state',
|
||||
objectType: 'listingVarient',
|
||||
readOnly: true,
|
||||
columnWidth: 130
|
||||
columnWidth: 260
|
||||
},
|
||||
{
|
||||
name: 'price',
|
||||
|
||||
@ -234,7 +234,7 @@ export const Marketplace = {
|
||||
type: 'state',
|
||||
objectType: 'marketplace',
|
||||
readOnly: true,
|
||||
columnWidth: 130
|
||||
columnWidth: 260
|
||||
},
|
||||
{
|
||||
name: 'active',
|
||||
|
||||
@ -165,7 +165,7 @@ export const OrderItem = {
|
||||
label: 'State',
|
||||
type: 'state',
|
||||
readOnly: true,
|
||||
columnWidth: 250
|
||||
columnWidth: 260
|
||||
},
|
||||
{
|
||||
name: 'receivedAt',
|
||||
@ -374,15 +374,11 @@ export const OrderItem = {
|
||||
if (!totalAmount) return 0
|
||||
if (objectData?.taxRate?.rateType == 'percentage') {
|
||||
return (
|
||||
(
|
||||
totalAmount *
|
||||
(1 + objectData?.taxRate?.rate / 100)
|
||||
).toFixed(2) || 0
|
||||
(totalAmount * (1 + objectData?.taxRate?.rate / 100)).toFixed(2) ||
|
||||
0
|
||||
)
|
||||
} else if (objectData?.taxRate?.rateType == 'amount') {
|
||||
return (
|
||||
(totalAmount + objectData?.taxRate?.rate).toFixed(2) || 0
|
||||
)
|
||||
return (totalAmount + objectData?.taxRate?.rate).toFixed(2) || 0
|
||||
}
|
||||
return totalAmount
|
||||
}
|
||||
|
||||
@ -62,7 +62,7 @@ export const PartStock = {
|
||||
label: 'State',
|
||||
type: 'state',
|
||||
readOnly: true,
|
||||
columnWidth: 120
|
||||
columnWidth: 260
|
||||
},
|
||||
{
|
||||
name: 'updatedAt',
|
||||
|
||||
@ -184,7 +184,7 @@ export const Payment = {
|
||||
label: 'State',
|
||||
type: 'state',
|
||||
readOnly: true,
|
||||
columnWidth: 250
|
||||
columnWidth: 260
|
||||
},
|
||||
{
|
||||
name: 'postedAt',
|
||||
|
||||
@ -286,7 +286,7 @@ export const Printer = {
|
||||
objectType: 'printer',
|
||||
showName: false,
|
||||
readOnly: true,
|
||||
columnWidth: 250
|
||||
columnWidth: 260
|
||||
},
|
||||
{
|
||||
name: 'online',
|
||||
|
||||
@ -129,7 +129,7 @@ export const ProductStock = {
|
||||
label: 'State',
|
||||
type: 'state',
|
||||
readOnly: true,
|
||||
columnWidth: 120
|
||||
columnWidth: 260
|
||||
},
|
||||
{
|
||||
name: 'postedAt',
|
||||
|
||||
@ -248,7 +248,7 @@ export const PurchaseOrder = {
|
||||
label: 'State',
|
||||
type: 'state',
|
||||
readOnly: true,
|
||||
columnWidth: 250
|
||||
columnWidth: 260
|
||||
},
|
||||
{
|
||||
name: 'postedAt',
|
||||
|
||||
@ -230,7 +230,7 @@ export const SalesOrder = {
|
||||
label: 'State',
|
||||
type: 'state',
|
||||
readOnly: true,
|
||||
columnWidth: 250
|
||||
columnWidth: 260
|
||||
},
|
||||
{
|
||||
name: 'postedAt',
|
||||
|
||||
@ -184,7 +184,7 @@ export const Shipment = {
|
||||
label: 'State',
|
||||
type: 'state',
|
||||
readOnly: true,
|
||||
columnWidth: 250
|
||||
columnWidth: 260
|
||||
},
|
||||
|
||||
{
|
||||
|
||||
@ -54,7 +54,7 @@ export const StockAudit = {
|
||||
label: 'State',
|
||||
type: 'state',
|
||||
readOnly: true,
|
||||
columnWidth: 120
|
||||
columnWidth: 260
|
||||
},
|
||||
{
|
||||
name: 'updatedAt',
|
||||
|
||||
@ -136,7 +136,7 @@ export const StockTransfer = {
|
||||
label: 'State',
|
||||
type: 'state',
|
||||
readOnly: true,
|
||||
columnWidth: 120
|
||||
columnWidth: 260
|
||||
},
|
||||
{
|
||||
name: 'postedAt',
|
||||
|
||||
@ -86,7 +86,7 @@ export const SubJob = {
|
||||
showProgress: true,
|
||||
showId: false,
|
||||
showQuantity: false,
|
||||
columnWidth: 250,
|
||||
columnWidth: 260,
|
||||
readOnly: true
|
||||
},
|
||||
{
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user