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 @@
|
- - - |
-||
|
- Vendor Address : - |
-
- Delivery To : - - |
-|
| PO DATE : | -DELIVERY DATE / SCHEDULE BY : | -|
| Requistion Number | - -Requested By | - -Requested Department | - -Cost Center | - -
| - | - | - | - |
- -
- -
| # | - -Item Name | - -Service Description | - -UOM | - -Qty | - -Rate In INR | - -Basic Value In INR | - -CGST In INR | - -SGST In INR | - -IGST In INR | - -Other Allow In INR | - -Total 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 ; ?> | -+ | |||||||||||||||||||||
|
+ + + |
+ ||
|
+ Vendor Address : + |
+
+ Delivery To : + + |
+ |
| PO DATE : | +DELIVERY DATE / SCHEDULE BY : | +|
| Requistion Number | +Frequency | +Requistion Date | + +Requested By | + +Requested Department | + +Cost 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:
- - - - + + + ++ +
| HSN |
+ CGST |
+ SGST |
+ IGST |
+ Tax Amt In INR |
+ Other Allow In INR |
+ Total Amount In INR | + +|||
| IN% | +Amt | +IN% | +Amt | +IN% | +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 + + |
+
+ |