Refactor Invoice, PurchaseOrder, and SalesOrder Models to Remove Partially Paid/Shipped/Delivered Metrics
Some checks are pending
farmcontrol/farmcontrol-ui/pipeline/head Build started...
Some checks are pending
farmcontrol/farmcontrol-ui/pipeline/head Build started...
- Removed partially paid, partially shipped, and partially delivered metrics from Invoice, PurchaseOrder, and SalesOrder models to streamline data representation. - Updated shipped and received metrics to include sums of their respective partially metrics, enhancing overall clarity in order tracking.
This commit is contained in:
parent
eb61700248
commit
6e8ad1c412
@ -722,12 +722,6 @@ export const Invoice = {
|
||||
'acknowledged.acknowledgedGrandTotalAmount.sum'
|
||||
]
|
||||
},
|
||||
{
|
||||
name: 'partiallyPaid.partiallyPaidCount.count',
|
||||
label: 'Partially Paid',
|
||||
type: 'number',
|
||||
color: 'processing'
|
||||
},
|
||||
{
|
||||
name: 'overdue.overdueCount.count',
|
||||
label: 'Overdue',
|
||||
@ -742,15 +736,6 @@ export const Invoice = {
|
||||
roundNumber: 2,
|
||||
color: 'error'
|
||||
},
|
||||
{
|
||||
name: 'partiallyPaid.partiallyPaidGrandTotalAmount.sum',
|
||||
label: 'Partially Paid Amount',
|
||||
type: 'number',
|
||||
prefix: '£',
|
||||
roundNumber: 2,
|
||||
color: 'processing',
|
||||
cardWidth: 200
|
||||
},
|
||||
{
|
||||
name: 'paid.paidCount.count',
|
||||
label: 'Paid',
|
||||
|
||||
@ -414,28 +414,18 @@ export const PurchaseOrder = {
|
||||
type: 'number',
|
||||
color: 'purple'
|
||||
},
|
||||
{
|
||||
name: 'partiallyShipped.count',
|
||||
label: 'Partially Shipped',
|
||||
type: 'number',
|
||||
color: 'processing'
|
||||
},
|
||||
{
|
||||
name: 'shipped.count',
|
||||
label: 'Shipped',
|
||||
type: 'number',
|
||||
sum: ['partiallyShipped.count', 'shipped.count'],
|
||||
color: 'processing'
|
||||
},
|
||||
{
|
||||
name: 'partiallyReceived.count',
|
||||
label: 'Partially Received',
|
||||
type: 'number',
|
||||
color: 'success'
|
||||
},
|
||||
{
|
||||
name: 'received.count',
|
||||
label: 'Received',
|
||||
type: 'number',
|
||||
sum: ['partiallyReceived.count', 'received.count'],
|
||||
color: 'success'
|
||||
},
|
||||
{
|
||||
|
||||
@ -413,28 +413,18 @@ export const SalesOrder = {
|
||||
type: 'number',
|
||||
color: 'purple'
|
||||
},
|
||||
{
|
||||
name: 'partiallyShipped.count',
|
||||
label: 'Partially Shipped',
|
||||
type: 'number',
|
||||
color: 'processing'
|
||||
},
|
||||
{
|
||||
name: 'shipped.count',
|
||||
label: 'Shipped',
|
||||
type: 'number',
|
||||
sum: ['partiallyShipped.count', 'shipped.count'],
|
||||
color: 'processing'
|
||||
},
|
||||
{
|
||||
name: 'partiallyDelivered.count',
|
||||
label: 'Partially Delivered',
|
||||
type: 'number',
|
||||
color: 'success'
|
||||
},
|
||||
{
|
||||
name: 'delivered.count',
|
||||
label: 'Delivered',
|
||||
type: 'number',
|
||||
sum: ['partiallyDelivered.count', 'delivered.count'],
|
||||
color: 'success'
|
||||
},
|
||||
{
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user