Beispiel #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;
                }
            }
        }
Beispiel #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;
            }
        }
Beispiel #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;
            }
        }
Beispiel #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;
                }
            }
        }