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_igr_details IGRD', 'igr.IGRNo = IGRD.IGRNo')
|
||||
->where('igr.IGRStatus !=', MRIR_CREATED)
|
||||
->where('igr.CreatedDate >=',"$fromDate")
|
||||
->where('igr.CreatedDate <=', "$toDate")
|
||||
->where('Date(igr.CreatedDate) >=',"$fromDate")
|
||||
->where('Date(igr.CreatedDate) <=', "$toDate")
|
||||
->groupBy('igr.IGRNo')
|
||||
->orderBy('igr.CreatedDate', 'desc');
|
||||
$query = $builder->get();
|
||||
$result = $query->getResult();
|
||||
->orderBy('igr.CreatedDate', 'desc');
|
||||
$query = $builder->get();
|
||||
$result = $query->getResult();
|
||||
|
||||
$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')
|
||||
|
||||
@ -403,8 +403,8 @@ mstr.CourierNo,pom.Status,pom.POType') //,bill.BillNo,bill.FilePath,
|
||||
// $builder->orderBy('POMast.Status !=',PO_AMENDED);
|
||||
}
|
||||
|
||||
$builder->where('POMast.CreatedDate >=', $fromDate)
|
||||
->where('POMast.CreatedDate <=', $toDate);
|
||||
$builder->where('Date(POMast.CreatedDate) >=', $fromDate)
|
||||
->where('Date(POMast.CreatedDate) <=', $toDate);
|
||||
|
||||
|
||||
$builder->orderBy('POMast.CreatedDate', 'desc');
|
||||
|
||||
Loading…
Reference in New Issue
Block a user