diff --git a/client/src/js/services/exchange.js b/client/src/js/services/exchange.js
deleted file mode 100644
index 92accf69f1..0000000000
--- a/client/src/js/services/exchange.js
+++ /dev/null
@@ -1,108 +0,0 @@
-angular.module('bhima.services')
-.service('exchange', [
- '$timeout',
- '$translate',
- 'store',
- 'appstate',
- 'messenger',
- 'precision',
- 'connect',
- function ($timeout, $translate, Store, appstate, messenger, precision, connect) {
- // FIXME : this module needs to be able to do
- // exchange.setRate() so that it can detect changes
- var called = false;
- var cfg = {};
-
- var DateStore = new Store({ identifier : 'date', data : [] });
-
- function normalize (date) {
- return date.setHours(0,0,0,0);
- }
-
- function exchange (value, currency_id, date) {
- // This function exchanges data from the currency specified by currency_id to
- // the enterprise currency on a given date (default: today).
- date = date || new Date();
- date = normalize(new Date(date));
-
- var store = DateStore.get(date);
- if (!store && !called) { // HACK to only show one messenger instance
- messenger.danger($translate.instant('EXCHANGE.NO_EXCHANGE_RATE') + new Date(date));
- called = true;
- $timeout(function () { called = false; }, 50);
- }
-
- return precision.round(store && store.rates.get(currency_id) ? store.rates.get(currency_id).rate * value : value);
- }
-
- exchange.rate = function rate (value, currency_id, date) {
- /* jshint unused : false */
- date = normalize(new Date(date || new Date()));
-
- var store = DateStore.get(date);
- if (!store) { messenger.danger($translate.instant('EXCHANGE.NO_EXCHANGE_RATE') + new Date(date)); }
- return precision.round(store && store.rates.get(currency_id) ? store.rates.get(currency_id).rate : 1);
- };
-
- exchange.hasDailyRate = function hasDailyRate (dateParam) {
-
- var date = normalize(new Date(dateParam)) || normalize(new Date());
- return !!DateStore.get(date);
- };
-
- exchange.convertir = function convertir (value, from_currency_id, to_currency_id, date) {
- date = new Date(date) || new Date();
- date = normalize(date);
- var converter = DateStore.get(date);
- if (!converter) { messenger.danger($translate.instant('EXCHANGE.NO_EXCHANGE_RATE') + new Date(date)); return;}
-
- var from = converter.rates.data.filter(function (item) {
- return item.id === from_currency_id;
- })[0];
-
- var to = converter.rates.data.filter(function (item) {
- return item.id === to_currency_id;
- })[0];
-
- return (value * to.rate) / from.rate;
- };
-
- function createDailyRateStore(rate) {
- var date = normalize(new Date(rate.date));
- var store = DateStore.get(date);
-
- if (!store) {
- DateStore.post({ date : date, rates : new Store({ data : [] }) });
- store = DateStore.get(date);
- }
-
- store.rates.post({
- id : rate.currency_id,
- rate : rate.rate,
- });
-
- store.rates.post({
- id : rate.enterprise_currency_id,
- rate: 1
- });
- }
-
- function loadRates(rates) {
- // loads in an array of rates
-
- rates.forEach(function (rate) {
- createDailyRateStore(rate);
- });
- }
-
- function forceRefresh() {
- loadRates(appstate.get('exchange_rate'));
- }
-
- exchange.forceRefresh = forceRefresh;
-
- appstate.register('exchange_rate', loadRates);
-
- return exchange;
- }
-]);
diff --git a/client/src/partials/exchange/modal.js b/client/src/partials/exchange/modal.js
index eef89a9114..af4f1ea6ed 100644
--- a/client/src/partials/exchange/modal.js
+++ b/client/src/partials/exchange/modal.js
@@ -3,10 +3,10 @@ angular.module('bhima.controllers')
ExchangeModalController.$inject = [
'ExchangeRateService', 'CurrencyService',
- 'SessionService', '$uibModalInstance', 'data', 'exchange'
+ 'SessionService', '$uibModalInstance', 'data'
];
-function ExchangeModalController(Rates, Currencies, Session, $uibModalInstance, data, exchange) {
+function ExchangeModalController(Rates, Currencies, Session, $uibModalInstance, data) {
var vm = this;
// bind variables
diff --git a/client/src/partials/stock/loss_record/loss_record.css b/client/src/partials/stock/loss_record/loss_record.css
deleted file mode 100644
index 64f0eced7e..0000000000
--- a/client/src/partials/stock/loss_record/loss_record.css
+++ /dev/null
@@ -1,3 +0,0 @@
-.loss-record-line {
- background-color: #ccc;
-}
\ No newline at end of file
diff --git a/client/src/partials/stock/loss_record/loss_record.html b/client/src/partials/stock/loss_record/loss_record.html
deleted file mode 100644
index d2b3d334e7..0000000000
--- a/client/src/partials/stock/loss_record/loss_record.html
+++ /dev/null
@@ -1,115 +0,0 @@
-
{{'COLUMNS.ENTRY_DATE' | translate}} | -{{'COLUMNS.LOT_NUMBER' | translate}} | -{{'COLUMNS.TRACKING_NUMBER' | translate}} | -{{'COLUMNS.MEDECINE' | translate}} | -{{'COLUMNS.QTY' | translate}} | -{{'COLUMNS.UNIT_PRICE' | translate}} | -{{'COLUMNS.COST' | translate}} | -{{'COLUMNS.RECEIPT' | translate}} | -
---|---|---|---|---|---|---|---|
{{'STOCK.LOSS.NO_LOSS_RECORDS' | translate}} | -|||||||
- | |||||||
{{ rec.entry_date | date }} | -{{ rec.lot_number }} | -{{ rec.tracking_number }} | -{{ rec.text }} | -{{ rec.quantity}} | -{{ rec.unit_price | currency }} | -{{ rec.quantity * rec.unit_price | currency}} | -- - - {{'COLUMNS.RECEIPT' | translate}} - - | -