Skip to main content
Controller:

public with sharing class costsheet {

    

    public String OrderId;

    public Order ord;

    public Shipper_Info_India__c SII;

    

    public costsheet(ApexPages.StandardController controller) {

     ord= (Order)Controller.getRecord();

     system.debug('ORD--'+ord);

     OrderId=Apexpages.currentpage().getParameters().get('id');

     listIex =[Select Id,subtotal__c from Shipper_Info_India__c where Supplier_Order__r.id =:ord.id AND RecordType.Name='Steamer Charges'].subtotal__c ;

     /*if(SII.Bill_Type__c =='Service Type'){

     CHAList =[Select Id,subtotal__c from Shipper_Info_India__c where Supplier_Order__r.id =:ord.id AND RecordType.Name='CHA Charges' ].subtotal__c ;

     }*/

     CFSList =[Select Id,subtotal__c from Shipper_Info_India__c where Supplier_Order__r.id =:ord.id AND RecordType.Name='CFS Charges' ].subtotal__c ;

     //fetchlist();

      

     Calculation();

      

    }

        public Decimal CFSList {get;set;}

        public Decimal CHAList {get;set;}

        Public Decimal listIex {get;set;}

}
11 answers
  1. Jun 12, 2019, 6:46 AM
    This Is Not A solution
0/9000