Carrier Tax Codes
Hi, is it possible to set the carrier tax code when creating a sales order in Sage 50. We can set the VAT values etc but when trying to set the tax code nothing is set and it just defaults to T0. Obviously this will cause issue with the nominal ledger posting when submitted from the Sales Ledger.
I am using the below code to set the tax code (the remmed out version attempts to set it via a pre created feed not a single feed entry). The first line returns the tax code feed entry of the supplied tax code and works correctly:
taxCodeFeedEntry taxentry = Q50.sData.Sage50GetRecord.GetTaxCode("T1", sage50company);
taxCodeFeedEntry carriertax = new taxCodeFeedEntry(); carriertax.UUID = taxentry.UUID; AddContent(taxentry.UUID.ToString());
taxCodeFeed taxCodeFeedResult = new taxCodeFeed(); taxCodeFeedResult.Entries.Add(taxentry); AddContent(taxCodeFeedResult.TotalResults.ToString());
// newSalesOrderFeedEntry.carrierTaxCodes = taxCodeFeedResult; newSalesOrderFeedEntry.carrierTaxCodes = new taxCodeFeed(); newSalesOrderFeedEntry.carrierTaxCodes.Entries.Add(taxentry);