add new metod "CreateFromBankGateway"
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user