diff --git a/application/models/purchaseorder_model.php b/application/models/purchaseorder_model.php index 49db3c19..b22a49e0 100755 --- a/application/models/purchaseorder_model.php +++ b/application/models/purchaseorder_model.php @@ -677,7 +677,7 @@ function purchaseorderListing($forwhat='') function GetRevenuePurchaseOrderDetailsForPDF($PONO = '') { - $subQuery ='SELECT distinct LineItem.LineItemNo,ReqNo,Mat.MaterialCode,Mat.MaterialName, + $subQuery ='SELECT distinct LineItem.LineItemNo,LineItem.ReqNo,Date(ReqMast.ReqDate) as ReqDate,Mat.MaterialCode,Mat.MaterialName, Mat.UOM,Quantity,Rate,(Quantity *Rate) as BasicValue , (AfterPackagingValue + AfterFreightValue + AfterSGST + AfterCGST + AfterIGST + Insurance - AfterDiscount) as Taxamount,AdvanceAmount, @@ -690,6 +690,7 @@ function purchaseorderListing($forwhat='') join T_PaymentTerms Payment on Payment.PaymentID = POMaster.PaymentTerms left join T_PurchaseOrder_AdvanceRequest PurAdv on POMaster.PONO=PurAdv.PONO + join T_Requestion_Master ReqMast on LineItem.ReqNo=ReqMast.ReqNo where LineItem.PONO =?'; $query = $this->db->query($subQuery,array($PONO)); diff --git a/application/views/mrirrevenuepopdf.php b/application/views/mrirrevenuepopdf.php old mode 100755 new mode 100644 index 928bbc9f..2e8d38bb --- a/application/views/mrirrevenuepopdf.php +++ b/application/views/mrirrevenuepopdf.php @@ -15,8 +15,9 @@ $PaymentDays=''; $PayableAT=''; $DeliverySchedule=''; + $ReqDate=''; $AdvanceAmount=0.00; - $color=''; + if(!empty($CompanyDetails)) { @@ -32,14 +33,14 @@ foreach ($POItem as $PO) { - $PONO = $PO->PONO; - $postatus= $PO->Status; - $SuplierName = $PO->SupplierName; - $SuplierAddress = $PO->Address; - $DeliveryAddress = $PO->DeliveryAddress; - $postatus= $PO->Status; - $dt = new DateTime($PO->PODate, new DateTimeZone('Asia/Kolkata')); - $Podt = $dt->format('d-m-Y'); + $PONO = $PO->PONO; + $postatus= $PO->Status; + $SuplierName = $PO->SupplierName; + $SuplierAddress = $PO->Address; + $DeliveryAddress = $PO->DeliveryAddress; + $postatus= $PO->Status; + $dt = new DateTime($PO->PODate, new DateTimeZone('Asia/Kolkata')); + $Podt = $dt->format('d-m-Y'); if($PO->DeliveryOption=='1'){ $DeliveryDate = ''; $DeliverySchedule = $PO->DeliverySchedule; @@ -58,18 +59,6 @@ } } - - - - if($AdvanceAmount>0) - { - $color="green"; - } - else - { - $color="black"; - } - $currencyName='INR'; $currencyCode =''; if(!empty($CurrencySymbol)) @@ -108,7 +97,7 @@ ?> -
| PO DATE : | -DELIVERY DATE / SCHEDULE BY : | +PO DATE : | +DELIVERY DATE / SCHEDULE BY : | ||
| Requistion Number | -Requested By | -Requested Department | -Cost Center | +|||||
| Requistion Number | +Requistion Date | +Requested By | +Requested Department | +Cost Center | ||||
| - | - | - | + | + | + | + | + |
-
-
| # | -Item Name | -UOM | -Qty | -Rate In INR | -Basic Value In INR | +||
| # | +Item Code | +Item Name | +HSN Code | +UOM | +Qty | +Rate In INR | +Basic Value In INR | + +
| + | 001 | +MaterialName ; ?> | +000666 | +UOM ; ?> | +Quantity ; ?> | + +Rate ; ?> | +BasicValue, 2, '.', '') ;?> | + +
+
+ +
| HSN Code |
+Discount In INR |
+SGST |
+CGST |
+IGST |
+Packaging In INR | +Insurance In INR | +Freight In INR | +Total Amount In INR | +||||||
| IN% | +Amt | +IN% | +Amt | +IN% | +Amt | +IN% | +Amt | +IN% | +Amt | +IN% | +Amt | +|||
| 000666 | +5% | +25 | +5% | +25 | +5% | +25 | +5% | +25 | +5% | +25 | ++ | 5% | +25 | +150 | +
| 000666 | ++ | 20 | ++ | 30 | ++ | 50 | ++ | 60 | ++ | 500 | ++ | + | 5000 | +10000 | +
+
Payment Terms:
+Special Instructions:
+ --
|
- Total Amount In Words Total Amount In Words
|
-Total Amount Before Tax In INR | +Total Amount Before Tax In INR | +|||
| Total Tax Amount In INR | +Total Tax Amount In INR | +||||
| Total Amount After Tax In INR | - - - +Total Amount After Tax In INR | +||||
| Advance Amout In INR - | + +Advance Paid | ++ | |||
| Total Amount To Pay In INR- | + +Balance amount needs to pay | ++ | |||
|
- Payment Terms + + if(!empty($releasedetails)){ + + $releasedOn = ''; + foreach($releasedetails as $detail){ + $releasedOn= new DateTime($detail->ReleasedOn, new DateTimeZone('Asia/Kolkata')); + + + ?> + + + ++ Released By : FirstName;?>
+ Released On : format('d-m-Y');?>
+
+
+
+
|
-+ |
Certified that the particulars given above are true and correct @@ -312,42 +448,8 @@ | |||
Special Instruction:
- - +-