This commit is contained in:
Raman Marikanti 2026-02-12 15:00:30 +05:30
parent 5581b94b64
commit 03dd5406aa
2 changed files with 4 additions and 4 deletions

View File

@ -140,7 +140,7 @@ class CustomerOrderLine(models.Model):
def _compute_pending(self):
for line in self:
line.pending_production = max(0, line.order_qty - line.produced_qty)
line.pending_dispatch = max(0, line.produced_qty - line.dispatched_qty)
line.pending_dispatch = max(0, line.order_qty - line.dispatched_qty)
@api.depends('order_qty', 'product_id', 'produced_qty', 'dispatched_qty', 'order_id.order_month', 'order_id.order_year')
def _compute_quantity(self):

View File

@ -1395,7 +1395,7 @@ export class CustomerOrderStatusGrid extends Component {
},
{
title: "Pending Order",
width: 90,
width: 100,
dataIndx: "pending_order",
dataType: "float",
align: "right",
@ -1410,7 +1410,7 @@ export class CustomerOrderStatusGrid extends Component {
},
{
title: "Current Month Order",
width: 90,
width: 100,
dataIndx: "current_month_order",
dataType: "float",
align: "right",
@ -1424,7 +1424,7 @@ export class CustomerOrderStatusGrid extends Component {
},
{
title: "Total Order Qty",
width: 90,
width: 100,
dataIndx: "total_order_qty",
dataType: "float",
align: "right",