Skip to content

Commit

Permalink
chore(stock exit): lint fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
jniles committed Mar 4, 2022
1 parent 67f87aa commit af969ac
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 7 deletions.
2 changes: 0 additions & 2 deletions client/src/modules/stock/StockExitForm.service.js
Original file line number Diff line number Diff line change
Expand Up @@ -387,7 +387,6 @@ function StockExitFormService(
StockExitForm.prototype.setServiceDistribution = function setServiceDistribution(service) {
this.details.entity_uuid = service.uuid;
this.details.flux_id = TO_SERVICE;
console.log('requisition:', service.requisition);

if (service.requisition) {
this.details.stock_requisition_uuid = service.requisition.uuid;
Expand All @@ -404,7 +403,6 @@ function StockExitFormService(
StockExitForm.prototype.setDepotDistribution = function setDepotDistribution(depot) {
this.details.entity_uuid = depot.uuid;
this.details.flux_id = TO_OTHER_DEPOT;
console.log('requisition:', depot.requisition);

if (depot.requisition) {
this.details.stock_requisition_uuid = depot.requisition.uuid;
Expand Down
7 changes: 2 additions & 5 deletions client/src/modules/stock/StockExitFormHelper.service.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,7 @@ angular.module('bhima.services')
.service('StockExitFormHelperService', StockExitFormHelperService);

StockExitFormHelperService.$inject = [
'moment', '$q', '$translate', 'bhConstants',
'PatientService', 'PatientInvoiceService', 'ServiceService',
'$q', '$translate', 'PatientService', 'PatientInvoiceService', 'ServiceService',
];

/**
Expand All @@ -12,11 +11,9 @@ StockExitFormHelperService.$inject = [
* @description
* This form powers the stock exit form in BHIMA.
*/
function StockExitFormHelperService(moment, $q, $translate, bhConstants, Patients, Invoices, Services) {
function StockExitFormHelperService($q, $translate, Patients, Invoices, Services) {
const service = {};

const { formatDB } = bhConstants.dates;

/**
* @function getDescriptionForPatient
*
Expand Down

0 comments on commit af969ac

Please sign in to comment.