changes in listing order in igr listing, purchase order listing -j vadivel
This commit is contained in:
parent
1764388a1b
commit
71fdcd8512
@ -378,12 +378,12 @@ class Inwardgateregister_model extends Model
|
|||||||
->join('t_transporter trans', 'igr.TransporterId = trans.id' , 'left')
|
->join('t_transporter trans', 'igr.TransporterId = trans.id' , 'left')
|
||||||
->join('t_igr_details IGRD', 'igr.IGRNo = IGRD.IGRNo')
|
->join('t_igr_details IGRD', 'igr.IGRNo = IGRD.IGRNo')
|
||||||
->where('igr.IGRStatus !=', MRIR_CREATED)
|
->where('igr.IGRStatus !=', MRIR_CREATED)
|
||||||
->where('igr.CreatedDate >=',"$fromDate")
|
->where('Date(igr.CreatedDate) >=',"$fromDate")
|
||||||
->where('igr.CreatedDate <=', "$toDate")
|
->where('Date(igr.CreatedDate) <=', "$toDate")
|
||||||
->groupBy('igr.IGRNo')
|
->groupBy('igr.IGRNo')
|
||||||
->orderBy('igr.CreatedDate', 'desc');
|
->orderBy('igr.CreatedDate', 'desc');
|
||||||
$query = $builder->get();
|
$query = $builder->get();
|
||||||
$result = $query->getResult();
|
$result = $query->getResult();
|
||||||
|
|
||||||
$builder2 = $this->db->table('t_igr_details igr_details')
|
$builder2 = $this->db->table('t_igr_details igr_details')
|
||||||
->select('igr.*,PO.IsOpenOrder,PO.DeliveryDate,sup.SupplierName,PO.POType,trans.name as TransporterName,item.MaterialName, igr_details.QuantityAsPerInvoice as ReceivedQuantity , igr_details.NetWeight as NetWeight')
|
->select('igr.*,PO.IsOpenOrder,PO.DeliveryDate,sup.SupplierName,PO.POType,trans.name as TransporterName,item.MaterialName, igr_details.QuantityAsPerInvoice as ReceivedQuantity , igr_details.NetWeight as NetWeight')
|
||||||
|
|||||||
@ -403,8 +403,8 @@ mstr.CourierNo,pom.Status,pom.POType') //,bill.BillNo,bill.FilePath,
|
|||||||
// $builder->orderBy('POMast.Status !=',PO_AMENDED);
|
// $builder->orderBy('POMast.Status !=',PO_AMENDED);
|
||||||
}
|
}
|
||||||
|
|
||||||
$builder->where('POMast.CreatedDate >=', $fromDate)
|
$builder->where('Date(POMast.CreatedDate) >=', $fromDate)
|
||||||
->where('POMast.CreatedDate <=', $toDate);
|
->where('Date(POMast.CreatedDate) <=', $toDate);
|
||||||
|
|
||||||
|
|
||||||
$builder->orderBy('POMast.CreatedDate', 'desc');
|
$builder->orderBy('POMast.CreatedDate', 'desc');
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user