Exemplo n.º 1
0
        public static void RenewContract(ContractMaint docgraph, ContractsList item)
        {
            docgraph.Contracts.Current = PXSelect <CT.Contract, Where <CT.Contract.contractID, Equal <Required <CT.Contract.contractID> > > > .Select(docgraph, item.ContractID);

            docgraph.Billing.Current = docgraph.Billing.Select();
            docgraph.RenewContract();
        }
        public static void RenewContract(ContractMaint docgraph, ContractsList item, RenewalContractFilter filter)
        {
            docgraph.Contracts.Current = PXSelect <Contract, Where <Contract.contractID, Equal <Required <Contract.contractID> > > > .Select(docgraph, item.ContractID);

            docgraph.Billing.Current = docgraph.Billing.Select();
            docgraph.RenewContract(filter.RenewalDate.Value);
        }