public void Build(PurchaseRecord gafRecord, APRegister register, Vendor vendor)
        {
            var location = _gafRepository.GetLocation(register.VendorID, register.VendorLocationID);
            var contact  = _gafRepository.GetContactByID(location.DefContactID);

            gafRecord.SupplierName = contact.FullName;
            gafRecord.SupplierBRN  = vendor.AcctReferenceNbr;
        }
Esempio n. 2
0
        public void Build(SupplyRecord gafRecord, ARRegister register, Customer customer)
        {
            gafRecord.CustomerBRN = customer.AcctReferenceNbr;

            var location = _gafRepository.GetLocation(register.CustomerID, register.CustomerLocationID);
            var contact  = _gafRepository.GetContactByID(location.DefContactID);

            gafRecord.CustomerName = contact.FullName;
        }