Fix bad request

This commit is contained in:
2025-09-13 10:51:23 +09:00
parent 71217acea5
commit b318d73d78
3 changed files with 9 additions and 1 deletions

View File

@ -173,6 +173,11 @@ namespace Hcs.Client.Api.Payload.Bills
/// </summary> /// </summary>
public List<IChargeInfo> chargeInfo; public List<IChargeInfo> chargeInfo;
/// <summary>
/// Если true, то выставлен на оплату, иначе - отозван
/// </summary>
public bool exposeNotWithdraw;
/// <summary> /// <summary>
/// Необязательное. Задолженность за предыдущие периоды, руб. /// Необязательное. Задолженность за предыдущие периоды, руб.
/// </summary> /// </summary>

View File

@ -220,7 +220,9 @@ namespace Hcs.Client.Api.Request.Bills
Items1 = [paymentInformations[entry.paymentInformation].TransportGUID], Items1 = [paymentInformations[entry.paymentInformation].TransportGUID],
AccountGuid = entry.accountGuid, AccountGuid = entry.accountGuid,
PaymentDocumentNumber = entry.paymentDocumentNumber, PaymentDocumentNumber = entry.paymentDocumentNumber,
Items = [.. chargeInfo] Items = [.. chargeInfo],
Item = true,
ItemElementName = entry.exposeNotWithdraw ? ItemChoiceType5.Expose : ItemChoiceType5.Withdraw
}; };
if (entry.debtPreviousPeriods.HasValue) if (entry.debtPreviousPeriods.HasValue)

View File

@ -51,6 +51,7 @@ namespace Hcs.TestApp.Scenario
accountingPeriodTotal = 1862.93M accountingPeriodTotal = 1862.93M
} }
], ],
exposeNotWithdraw = true,
debtPreviousPeriods = 3271.16M, debtPreviousPeriods = 3271.16M,
advanceBllingPeriod = 0M, advanceBllingPeriod = 0M,
totalPayableByPDWithDebtAndAdvance = 3043.95M, totalPayableByPDWithDebtAndAdvance = 3043.95M,