diff --git a/application/views/mrirservicepopdf.php b/application/views/mrirservicepopdf.php index a6a2982a..a037092a 100755 --- a/application/views/mrirservicepopdf.php +++ b/application/views/mrirservicepopdf.php @@ -24,7 +24,7 @@ $TotalTax = 0.00; $OrderValue = 0.00; $AdvanceAmount=0.00; - $color=''; + if(!empty($CompanyDetails)) { foreach ($CompanyDetails as $CO) @@ -36,7 +36,7 @@ } $currencyName='INR'; - $currencyCode =''; + $currencyCode =''; if(!empty($CurrencySymbol)) { foreach ($CurrencySymbol as $Curr) @@ -56,8 +56,8 @@ if(!empty($POItem)) { - foreach ($POItem as $PO) - { + foreach ($POItem as $PO) + { $PONO = $PO->PONO; $postatus= $PO->Status; @@ -69,22 +69,17 @@ $dtDe = new DateTime($PO->DeliveryDate, new DateTimeZone('Asia/Kolkata')); $DeliveryDate = $dtDe->format('d-m-Y'); $ServiceDescription =$PO->ServiceDescription; - $PaymentTerms = $PO->PaymentTerms; - $AdvanceAmount=$PO->AdvanceAmount; - + if($PO->PaymentID!='PT08'){ + $PaymentTerms = $PO->PaymentTerms; + } + else{ + $PaymentTerms = $PO->PaymentTerms . ' ( '.$PO->PaymentOtherDescription.' ) '; + } + $AdvanceAmount=$PO->AdvanceAmount; - } - } + } +} - - if($AdvanceAmount>0) - { - $color="green"; - } - else - { - $color="black"; - } ?> @@ -97,10 +92,10 @@
-
+
DRAFT
'; @@ -110,345 +105,389 @@ ?>
-
PURCHASE ORDER - PO NO:
+
PURCHASE ORDER - PO NO:/S
- - - - - - - - - - - - - - - - -
-

-

-
-

Vendor Address :

-


-
-

Delivery To :

-

-
PO DATE :DELIVERY DATE / SCHEDULE BY :
- - -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Requistion NumberRequested ByRequested DepartmentCost Center  
- -

 

- -

 

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - +
#Item NameService DescriptionUOMQtyRate In INRBasic Value In INRCGST In INRSGST In INRIGST In INROther Allow In INRTotal Amount In INR
MaterialName ; ?>ServiceMaterialDescription ; ?>UOM ; ?>Quantity ; ?>Rate ; ?>NumberOfService==0 || $record->NumberOfService==''){ - echo $record->BasicValue; - $TotalAmount = $record->BasicValue + $record->Taxamount + $record->otherallowance; - $SubTotalAmount = $SubTotalAmount + $record->BasicValue + $record->otherallowance; - } - else{ - echo $record->BasicValue * $record->NumberOfService; - $TotalAmount = $record->BasicValue * $record->NumberOfService + $record->Taxamount + $record->otherallowance; - $SubTotalAmount = $SubTotalAmount + $record->BasicValue * $record->NumberOfService + $record->otherallowance; - } - ?>After_SGST ; ?>After_CGST ; ?>After_IGST ; ?>otherallowance ; ?>
+ + + + + - - After_SGST; - $Cgst =$Cgst + $record->After_CGST; - $Igst = $Igst + $record->After_IGST; - - + + + + + + + + + +
+

+

+
+

Vendor Address :

+


+
+

Delivery To :

+

+
PO DATE :  DELIVERY DATE / SCHEDULE BY :  
+ + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - - - -
Requistion NumberFrequencyRequistion DateRequested ByRequested DepartmentCost Center Code
- -

 

+ } + + ?> + + + + + +

 

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - -

Total Amount In Words


- - - -

- - - -
Total Amount Before Tax In INR -
Total Tax Amount In INR -
Total Amount After Tax In INR -
Advance Amout In INR -
Total Amount In INR-
- - - -

Payment Terms 

- - - - -

- - - -
- - - -

Certified that the particulars given above are true and correct

- - - -

- - - -

 

- - - -

Authorized Signatory

- -
- -

Scope Of Work:

- -

- - + + + + + + # + + + + Item Description + + HSN Code + + UOM + + + + Qty + + Rate In INR + + Basic Value In INR + + + + + + + + + + + + ServiceMaterialDescription ; ?> + HSNCODE ; ?> + UOM ; ?> + + Quantity ; ?> + + Rate, 2, '.', ''); ?> + NumberOfService==0 || $record->NumberOfService==''){ + echo number_format($record->BasicValue, 2, '.', ''); + $TotalAmount = $record->BasicValue + $record->Taxamount + $record->otherallowance; + $SubTotalAmount = $SubTotalAmount + $record->BasicValue + $record->otherallowance; + } + else{ + echo number_format($record->BasicValue * $record->NumberOfService, 2, '.', ''); + $TotalAmount = $record->BasicValue * $record->NumberOfService + $record->Taxamount + $record->otherallowance; + $SubTotalAmount = $SubTotalAmount + $record->BasicValue * $record->NumberOfService + $record->otherallowance; + } + ?> + + + + After_SGST; + $Cgst =$Cgst + $record->After_CGST; + $Igst = $Igst + $record->After_IGST; + + + } + + $TotalTax =$TotalTax+ $Sgst + $Cgst+$Igst; + $OrderValue = $OrderValue + $SubTotalAmount + $TotalTax; + } + + ?> + + + + + +

 

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - - - + +
HSN
CGST

SGST

IGST

Tax Amt In INR
Other Allow In INR
Total Amount In INR
IN%AmtIN%AmtIN%Amt
HSNCODE ; ?>CGST ; ?>After_CGST, 2, '.', ''); ?>SGST ; ?>After_SGST, 2, '.', ''); ?>IGST ; ?>After_IGST, 2, '.', ''); ?>Taxamount, 2, '.', ''); ?>otherallowance, 2, '.', ''); ?>NumberOfService==0 || $record->NumberOfService==''){ + echo number_format($record->BasicValue + $record1->Taxamount + $record1->otherallowance, 2, '.', ''); + + } + else{ + echo number_format($record->BasicValue * $record->NumberOfService + $record1->Taxamount + $record1->otherallowance, 2, '.', ''); - $releasedOn = ''; - foreach($releasedetails as $detail){ - $releasedOn= new DateTime($detail->ReleasedOn, new DateTimeZone('Asia/Kolkata')); - - - ?> - - - -

 

-
Released By : FirstName;?>
-
Released On : format('d-m-Y');?>
-
+

 

- - \ No newline at end of file + +

Payment Terms:

+ + +
+ +

Scope Of Work As Per Annexure:

+ +

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + +

Total Amount In Words


+ + + +

+ + + +
Total Amount Before Tax In INR   
Total Tax Amount In INR   
Total Amount After Tax In INR   
Advance Paid   
Balance amount needs to pay   
+

 

+ ReleasedOn, new DateTimeZone('Asia/Kolkata')); + + + ?> + +
 Released By : FirstName;?>
+
 Released On : format('d-m-Y');?>
+ + + + + + + + + + +
+ + + +

Certified that the particulars given above are true and correct

+ + + +

+ + + +

 

+ + + +

Authorized Signatory

+ +
+ +
\ No newline at end of file