Esempio n. 1
0
        protected virtual void ARInvoice_RowSelected(PXCache cache, PXRowSelectedEventArgs e)
        {
            ARInvoiceRUTROT doc = RUTROTHelper.GetExtensionNullable <ARInvoice, ARInvoiceRUTROT>(e.Row as ARInvoice);

            if (doc == null)
            {
                return;
            }

            RRManager.Update((ARInvoice)e.Row);
            UpdateLinesControls(doc.IsRUTROTDeductible == true);
        }
Esempio n. 2
0
        protected virtual void SOOrder_RowSelected(PXCache cache, PXRowSelectedEventArgs e, PXRowSelected baseMethod)
        {
            baseMethod(cache, e);
            SOOrderRUTROT doc = RUTROTHelper.GetExtensionNullable <SOOrder, SOOrderRUTROT>(e.Row as SOOrder);

            if (doc == null)
            {
                return;
            }
            PXUIFieldAttribute.SetEnabled <SOOrder.billSeparately>(cache, e.Row, doc.IsRUTROTDeductible != true);

            RRManager.Update((SOOrder)e.Row);
            UpdateLinesControls(doc.IsRUTROTDeductible == true);
        }