...
This commit is contained in:
@@ -14,6 +14,7 @@ namespace Front
|
||||
private List<IdName<int>>? Patterns = null;
|
||||
private List<IdName<int>>? Patternsbyinp = null;
|
||||
private List<IdName<int>>? BillTypes = null;
|
||||
private List<IdName<int>>? UnitsbyUnitTaxID = null;
|
||||
private List<IdName<int>>? Units = null;
|
||||
private List<CODIdName<int>>? Cods = null;
|
||||
private CompanyDTO? InfoCompany = null;
|
||||
@@ -84,6 +85,20 @@ namespace Front
|
||||
|
||||
return Patternsbyinp;
|
||||
}
|
||||
public async Task<List<IdName<int>>?> GetUnitsbyUnitTaxID()
|
||||
{
|
||||
if (UnitsbyUnitTaxID == null)
|
||||
{
|
||||
var request = await _hc.Get($"COD/GetUnits?UnitTaxID=true");
|
||||
if (request.IsSuccessStatusCode)
|
||||
{
|
||||
UnitsbyUnitTaxID = await request.Content.ReadFromJsonAsync<List<IdName<int>>>();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
return UnitsbyUnitTaxID;
|
||||
}
|
||||
public async Task<List<IdName<int>>?> GetBillTypes()
|
||||
{
|
||||
if (BillTypes == null)
|
||||
|
Reference in New Issue
Block a user