feat: implement VAT management service and integrate VAT calculations across components
This commit is contained in:
@@ -79,4 +79,25 @@ public class OrderService
|
||||
|
||||
return order;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// دریافت نرخ مالیات بر ارزش افزوده
|
||||
/// </summary>
|
||||
public async Task<GetVATRateResponse> GetVATRateAsync()
|
||||
{
|
||||
try
|
||||
{
|
||||
return await _userOrderContractClient.GetVATRateAsync(new Google.Protobuf.WellKnownTypes.Empty());
|
||||
}
|
||||
catch
|
||||
{
|
||||
// در صورت خطا، مقادیر پیشفرض
|
||||
return new GetVATRateResponse
|
||||
{
|
||||
VatRate = 0.10,
|
||||
VatPercentage = 10,
|
||||
IsEnabled = true
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user