Fix bad request
This commit is contained in:
@ -173,6 +173,11 @@ namespace Hcs.Client.Api.Payload.Bills
|
||||
/// </summary>
|
||||
public List<IChargeInfo> chargeInfo;
|
||||
|
||||
/// <summary>
|
||||
/// Если true, то выставлен на оплату, иначе - отозван
|
||||
/// </summary>
|
||||
public bool exposeNotWithdraw;
|
||||
|
||||
/// <summary>
|
||||
/// Необязательное. Задолженность за предыдущие периоды, руб.
|
||||
/// </summary>
|
||||
|
||||
@ -220,7 +220,9 @@ namespace Hcs.Client.Api.Request.Bills
|
||||
Items1 = [paymentInformations[entry.paymentInformation].TransportGUID],
|
||||
AccountGuid = entry.accountGuid,
|
||||
PaymentDocumentNumber = entry.paymentDocumentNumber,
|
||||
Items = [.. chargeInfo]
|
||||
Items = [.. chargeInfo],
|
||||
Item = true,
|
||||
ItemElementName = entry.exposeNotWithdraw ? ItemChoiceType5.Expose : ItemChoiceType5.Withdraw
|
||||
};
|
||||
|
||||
if (entry.debtPreviousPeriods.HasValue)
|
||||
|
||||
@ -51,6 +51,7 @@ namespace Hcs.TestApp.Scenario
|
||||
accountingPeriodTotal = 1862.93M
|
||||
}
|
||||
],
|
||||
exposeNotWithdraw = true,
|
||||
debtPreviousPeriods = 3271.16M,
|
||||
advanceBllingPeriod = 0M,
|
||||
totalPayableByPDWithDebtAndAdvance = 3043.95M,
|
||||
|
||||
Reference in New Issue
Block a user