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'
|
'acknowledged.acknowledgedGrandTotalAmount.sum'
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
|
||||||
name: 'partiallyPaid.partiallyPaidCount.count',
|
|
||||||
label: 'Partially Paid',
|
|
||||||
type: 'number',
|
|
||||||
color: 'processing'
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
name: 'overdue.overdueCount.count',
|
name: 'overdue.overdueCount.count',
|
||||||
label: 'Overdue',
|
label: 'Overdue',
|
||||||
@ -742,15 +736,6 @@ export const Invoice = {
|
|||||||
roundNumber: 2,
|
roundNumber: 2,
|
||||||
color: 'error'
|
color: 'error'
|
||||||
},
|
},
|
||||||
{
|
|
||||||
name: 'partiallyPaid.partiallyPaidGrandTotalAmount.sum',
|
|
||||||
label: 'Partially Paid Amount',
|
|
||||||
type: 'number',
|
|
||||||
prefix: '£',
|
|
||||||
roundNumber: 2,
|
|
||||||
color: 'processing',
|
|
||||||
cardWidth: 200
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
name: 'paid.paidCount.count',
|
name: 'paid.paidCount.count',
|
||||||
label: 'Paid',
|
label: 'Paid',
|
||||||
|
|||||||
@ -414,28 +414,18 @@ export const PurchaseOrder = {
|
|||||||
type: 'number',
|
type: 'number',
|
||||||
color: 'purple'
|
color: 'purple'
|
||||||
},
|
},
|
||||||
{
|
|
||||||
name: 'partiallyShipped.count',
|
|
||||||
label: 'Partially Shipped',
|
|
||||||
type: 'number',
|
|
||||||
color: 'processing'
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
name: 'shipped.count',
|
name: 'shipped.count',
|
||||||
label: 'Shipped',
|
label: 'Shipped',
|
||||||
type: 'number',
|
type: 'number',
|
||||||
|
sum: ['partiallyShipped.count', 'shipped.count'],
|
||||||
color: 'processing'
|
color: 'processing'
|
||||||
},
|
},
|
||||||
{
|
|
||||||
name: 'partiallyReceived.count',
|
|
||||||
label: 'Partially Received',
|
|
||||||
type: 'number',
|
|
||||||
color: 'success'
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
name: 'received.count',
|
name: 'received.count',
|
||||||
label: 'Received',
|
label: 'Received',
|
||||||
type: 'number',
|
type: 'number',
|
||||||
|
sum: ['partiallyReceived.count', 'received.count'],
|
||||||
color: 'success'
|
color: 'success'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
|||||||
@ -413,28 +413,18 @@ export const SalesOrder = {
|
|||||||
type: 'number',
|
type: 'number',
|
||||||
color: 'purple'
|
color: 'purple'
|
||||||
},
|
},
|
||||||
{
|
|
||||||
name: 'partiallyShipped.count',
|
|
||||||
label: 'Partially Shipped',
|
|
||||||
type: 'number',
|
|
||||||
color: 'processing'
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
name: 'shipped.count',
|
name: 'shipped.count',
|
||||||
label: 'Shipped',
|
label: 'Shipped',
|
||||||
type: 'number',
|
type: 'number',
|
||||||
|
sum: ['partiallyShipped.count', 'shipped.count'],
|
||||||
color: 'processing'
|
color: 'processing'
|
||||||
},
|
},
|
||||||
{
|
|
||||||
name: 'partiallyDelivered.count',
|
|
||||||
label: 'Partially Delivered',
|
|
||||||
type: 'number',
|
|
||||||
color: 'success'
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
name: 'delivered.count',
|
name: 'delivered.count',
|
||||||
label: 'Delivered',
|
label: 'Delivered',
|
||||||
type: 'number',
|
type: 'number',
|
||||||
|
sum: ['partiallyDelivered.count', 'delivered.count'],
|
||||||
color: 'success'
|
color: 'success'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user