Compare commits

..

No commits in common. "d1d37d058a36481750da961232cd5b3b995a4766" and "48275ea5d3789e2c1b3f4d3508c4643384dd9dab" have entirely different histories.

3 changed files with 5 additions and 28 deletions

View File

@ -413,26 +413,6 @@ namespace Nop.Plugin.Misc.FruitBankPlugin.Controllers
return await ctx.EkaerHistories.GetByIdAsync(ekaerHistory.Id, true);
}
/// <summary>
/// Egy legenerált (Generated/GeneratedWithWarning) EkaerHistory TÁROLT tradeCard XML-jét beküldi a NAV-nak (create).
/// A service tölti a rekordot (Sent/SentWithMissingData + EkaerNumber + SentDate, vagy SendError + ErrorText),
/// itt csak perzisztáljuk. User-vezérelt (grid „Beküldés" gomb), a kliens megerősítő dialógus után hívja.
/// </summary>
[SignalR(SignalRTags.SendEkaerToNav)]
public async Task<EkaerHistory> SendEkaerToNav(int ekaerHistoryId)
{
_logger.Detail($"SendEkaerToNav invoked; ekaerHistoryId: {ekaerHistoryId}");
var ekaerHistory = await ctx.EkaerHistories.GetByIdAsync(ekaerHistoryId, true)
?? throw new ArgumentException($"EkaerHistory not found; id: {ekaerHistoryId}", nameof(ekaerHistoryId));
ekaerHistory = await fruitBankEkaerService.SendEkaerAsync(ekaerHistory);
await ctx.EkaerHistories.UpdateAsync(ekaerHistory);
_logger.Info($"SendEkaerToNav; id: {ekaerHistoryId}; status: {ekaerHistory.Status}; ekaerNumber: {ekaerHistory.EkaerNumber}");
return await ctx.EkaerHistories.GetByIdAsync(ekaerHistory.Id, true);
}
/// <summary>
/// Idempotens rekord-létrehozás: ha a forrás-rekordra (foreignKey + isOutgoing) már van mapping → a hozzá tartozó
/// EkaerHistory-t adja vissza érintetlenül; különben új Pending rekordot + EGY mapping sort hoz létre (atomikusan).

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long