Use the choiceKey of PoS item as ItemCode

This commit is contained in:
nicolas.dorier 2018-11-16 23:16:44 +09:00
parent eff983135c
commit c40fc69087

View File

@ -97,6 +97,7 @@ namespace BTCPayServer.Controllers
store.AdditionalClaims.Add(new Claim(Policies.CanCreateInvoice.Key, store.Id));
var invoice = await _InvoiceController.CreateInvoiceCore(new NBitpayClient.Invoice()
{
ItemCode = choiceKey ?? string.Empty,
ItemDesc = title,
Currency = settings.Currency,
Price = price,