public bool LogInventoryRequestCreation(InventoryComponent componentRecord, int numberToRequest)
 {
     componentRecord.Pending += numberToRequest;
     LogInventoryEntry("Inventory Request created for " + componentRecord.Name, componentRecord.Record.Id, numberToRequest);
     UpdateComponentRecord(componentRecord);
     return(true);
 }
 public bool UpdateComponentQuantity(InventoryComponent component, int quantityChange, int originalRequestQuantity)
 {
     if (component != null)
     {
         var fields = new Fields();
         component.Quantity = component.Quantity + quantityChange;
         component.Pending  = component.Pending - originalRequestQuantity;
         UpdateComponentRecord(component);
         LogInventoryEntry("Inventory Request completed for " + component.Name, component.Record.Id, quantityChange);
         return(true);
     }
     return(false);
 }
 public void UpdateComponentRecord(InventoryComponent component)
 {
     var currentRecord = RetreiveComponentsRecord(component.Record.Id);
     var task          = _invAirtableBase.UpdateRecord(componentsTableName, component.UpdatedFields, component.Record.Id);
     var response      = task.Result;
 }
 public string GetPreferredPrinter(InventoryComponent component)
 {
     return(GetPreferredPrinterCore(component.Record));
 }
 public bool GetPotentialPrintersList(InventoryComponent component, out List <string> printerNames, out string preferredPrinter)
 {
     return(GetPotentialPrintersListCore(component.Record, out printerNames, out preferredPrinter));
 }