diff --git a/common/src/proto/descriptor.bin b/common/src/proto/descriptor.bin index 1c04fca6..b217b0a0 100644 Binary files a/common/src/proto/descriptor.bin and b/common/src/proto/descriptor.bin differ diff --git a/komp-app/src/grpc.rs b/komp-app/src/grpc.rs index 66bf2747..d3119a89 100644 --- a/komp-app/src/grpc.rs +++ b/komp-app/src/grpc.rs @@ -11,6 +11,7 @@ use common::proto::komp_ac::search2::search2_client::Search2Client; use common::proto::komp_ac::accounting::{ Account, AccountingPeriod, AccountingStatus, ApproveProfileRequest, CloseAccountingPeriodRequest, ConfigureAccountingPeriodRequest, EnsureAccountRequest, + GenerateAccountingTransferRequest, GenerateAccountingTransferResponse, GetAccountingStatusRequest, GetJournalRequest, GetProfileApprovalRequest, GetTrialBalanceRequest, GetTrialBalanceResponse, Journal, ListAccountingPeriodsRequest, ListAccountingPeriodsResponse, @@ -308,6 +309,15 @@ impl GrpcClient { .context("gRPC GetTrialBalance call failed")?.into_inner()) } + pub async fn generate_accounting_transfer( + &mut self, + request: GenerateAccountingTransferRequest, + ) -> Result { + let request = self.authenticated_request(request)?; + Ok(self.accounting_client.generate_accounting_transfer(request).await + .context("gRPC GenerateAccountingTransfer call failed")?.into_inner()) + } + pub async fn map_opening_balance_account( &mut self, request: MapOpeningBalanceAccountRequest,