Add option to disable PD check on service side
This commit is contained in:
@ -210,6 +210,13 @@ namespace Hcs.Client.Api.Payload.Bills
|
|||||||
public DateTime? dateOfLastReceivedPayment;
|
public DateTime? dateOfLastReceivedPayment;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Необязательное. Если true, то передаваемые данные платежных документов, следует считать верными,
|
||||||
|
/// даже если они отличаются от автоматически рассчитанных системой значений. В том случае, если параметр
|
||||||
|
/// не заполнен, то ГИС ЖХК будет проводить автоматическую проверку рассчитываемых сумм по ПД.
|
||||||
|
/// </summary>
|
||||||
|
public bool confirmAmountsCorrect;
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Месяц расчетного периода платежного документа
|
/// Месяц расчетного периода платежного документа
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
|||||||
@ -50,6 +50,11 @@ namespace Hcs.Client.Api.Request.Bills
|
|||||||
payload.year
|
payload.year
|
||||||
};
|
};
|
||||||
|
|
||||||
|
if (payload.confirmAmountsCorrect)
|
||||||
|
{
|
||||||
|
items.Add(true);
|
||||||
|
}
|
||||||
|
|
||||||
var paymentInformations = new Dictionary<ImportPaymentDocumentPayload.PaymentInformation, importPaymentDocumentRequestPaymentInformation>();
|
var paymentInformations = new Dictionary<ImportPaymentDocumentPayload.PaymentInformation, importPaymentDocumentRequestPaymentInformation>();
|
||||||
foreach (var entry in payload.paymentInformation)
|
foreach (var entry in payload.paymentInformation)
|
||||||
{
|
{
|
||||||
|
|||||||
@ -2,6 +2,7 @@
|
|||||||
using Hcs.Client.Api.Payload.Bills;
|
using Hcs.Client.Api.Payload.Bills;
|
||||||
using Hcs.Client.Api.Registry;
|
using Hcs.Client.Api.Registry;
|
||||||
using Hcs.Client.Api.Type;
|
using Hcs.Client.Api.Type;
|
||||||
|
using Hcs.Service.Async.Bills;
|
||||||
using System;
|
using System;
|
||||||
|
|
||||||
namespace Hcs.TestApp.Scenario
|
namespace Hcs.TestApp.Scenario
|
||||||
@ -19,6 +20,7 @@ namespace Hcs.TestApp.Scenario
|
|||||||
};
|
};
|
||||||
var payload = new ImportPaymentDocumentPayload()
|
var payload = new ImportPaymentDocumentPayload()
|
||||||
{
|
{
|
||||||
|
confirmAmountsCorrect = true,
|
||||||
month = 8,
|
month = 8,
|
||||||
year = 2025,
|
year = 2025,
|
||||||
paymentInformation = [paymentInformation],
|
paymentInformation = [paymentInformation],
|
||||||
|
|||||||
Reference in New Issue
Block a user