Exemplo n.º 1
0
        private void Fixupinvoice(invoice previousValue)
        {
            if (previousValue != null && previousValue.invoiceitems.Contains(this))
            {
                previousValue.invoiceitems.Remove(this);
            }

            if (invoice != null)
            {
                if (!invoice.invoiceitems.Contains(this))
                {
                    invoice.invoiceitems.Add(this);
                }
                if (invoice_id != invoice.id)
                {
                    invoice_id = invoice.id;
                }
            }
        }
Exemplo n.º 2
0
        private void Fixupinvoice(invoice previousValue)
        {
            if (previousValue != null && previousValue.ordermasters.Contains(this))
            {
                previousValue.ordermasters.Remove(this);
            }

            if (invoice != null)
            {
                if (!invoice.ordermasters.Contains(this))
                {
                    invoice.ordermasters.Add(this);
                }
                if (invoice_id != invoice.id)
                {
                    invoice_id = invoice.id;
                }
            }
            else if (!_settingFK)
            {
                invoice_id = null;
            }
        }
Exemplo n.º 3
0
        private void Fixupinvoice(invoice previousValue)
        {
            if (previousValue != null && previousValue.accounts.Contains(this))
            {
                previousValue.accounts.Remove(this);
            }

            if (invoice != null)
            {
                if (!invoice.accounts.Contains(this))
                {
                    invoice.accounts.Add(this);
                }
                if (invoice_id != invoice.id)
                {
                    invoice_id = invoice.id;
                }
            }
            else if (!_settingFK)
            {
                invoice_id = null;
            }
        }
Exemplo n.º 4
0
        private void Fixupinvoice(invoice previousValue)
        {
            if (previousValue != null && previousValue.invoiceitems.Contains(this))
            {
                previousValue.invoiceitems.Remove(this);
            }

            if (invoice != null)
            {
                if (!invoice.invoiceitems.Contains(this))
                {
                    invoice.invoiceitems.Add(this);
                }
                if (invoice_id != invoice.id)
                {
                    invoice_id = invoice.id;
                }
            }
        }