// Added by Bharat on 16/May/2017 public Dictionary <string, object> GetBPDocTypeData(Ctx ctx, string fields) { int C_BPartner_ID = Util.GetValueOfInt(fields); Dictionary <string, object> retDic = new Dictionary <string, object>(); MBPartner bp = new MBPartner(ctx, C_BPartner_ID, null); retDic["C_PaymentTerm_ID"] = bp.GetC_PaymentTerm_ID(); retDic["PaymentRule"] = bp.GetPaymentRule(); retDic["InvoiceRule"] = bp.GetInvoiceRule(); retDic["DeliveryRule"] = bp.GetDeliveryRule(); retDic["FreightCostRule"] = bp.GetFreightCostRule(); retDic["PaymentRulePO"] = bp.GetPaymentRulePO(); retDic["DeliveryViaRule"] = bp.GetDeliveryViaRule(); retDic["PO_PaymentTerm_ID"] = bp.GetPO_PaymentTerm_ID(); return(retDic); }