diff --git a/application/models/inwardgateregister_model.php b/application/models/inwardgateregister_model.php index d5be4a9c..2ff0922a 100755 --- a/application/models/inwardgateregister_model.php +++ b/application/models/inwardgateregister_model.php @@ -160,4 +160,15 @@ class inwardgateregister_model extends CI_Model } } + function getPOLineItemReceivedQty($PONO,$MaterialCode) + { + $this->db->select('ReceivedQuantity'); + $this->db->from('T_PurchaseOrder_LineItem'); + $this->db->where('PONO',$PONO); + $this->db->where('MaterialCode',$MaterialCode); + $query = $this->db->get(); + // print_r( $this->db->last_query()); + $result = $query->result(); + return $result; + } } \ No newline at end of file