Fix bad request
This commit is contained in:
@ -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>
|
||||||
|
|||||||
@ -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)
|
||||||
|
|||||||
@ -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,
|
||||||
|
|||||||
Reference in New Issue
Block a user