add new metod "CreateFromBankGateway"

This commit is contained in:
SamSys
2025-07-23 03:43:29 +04:00
parent 0981dc20ec
commit a61c62a2c3
3 changed files with 72 additions and 7 deletions

View File

@@ -85,19 +85,16 @@ public class GeneralController : GeneralBaseController
{
var command = new CreateFinancialStatment()
{
ContractingPartyId = transaction.ContractingPartyId,
TdateFa = DateTime.Now.ToFarsi(),
Deptor = 0,
Creditor = transaction.Amount,
DeptorString = "0",
CreditorString = transaction.Amount.ToMoney(),
TypeOfTransaction = "credit",
DescriptionOption = "بابت قرارداد مابین (روابط کار)",
Description = "درگاه بانکی ",
Description = "درگاه بانکی",
};
var statementResult = _financialStatmentApplication.Create(command);
var statementResult = _financialStatmentApplication.CreateFromBankGateway(command);
if (!statementResult.IsSuccedded)
{
return await HandleFailedTransaction(transaction, paymentTransactionId);