1234567891011121314151617 |
- using Comal.Classes;
- using InABox.Core;
- using InABox.Poster.MYOB;
- namespace PRS.Shared.Posters.MYOB;
- public static class PRSMYOBPosterUtils
- {
- public static Result<Guid, Exception> GetMYOBTaxCodeUID(this MYOBConnectionData data, ITaxCode code)
- {
- if(Guid.TryParse(code.PostedReference, out var id))
- {
- return Result.Ok(id);
- }
- return MYOBPosterUtils.GetMYOBTaxCodeUID(data, code.Code);
- }
- }
|