Skip to content

Commit

Permalink
bug(Creation and Update depot)
Browse files Browse the repository at this point in the history
- fix creation of depot from parent depot
- fix sql for gettig data from location of depot
  • Loading branch information
lomamech committed Jan 24, 2022
1 parent 4d377f1 commit f7ebee0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion client/src/modules/depots/templates/action.tmpl.html
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
<li>
<a href
data-method="add-dependant-depot"
ui-sref="depots.create({ parentId : row.entity.uuid })" href>
ui-sref="depots.create({ parentUuid : row.entity.uuid })" href>
<i class="fa fa-cube"></i> <span translate>DEPOT.ADD_SUB_DEPOT</span>
</a>
</li>
Expand Down
2 changes: 1 addition & 1 deletion server/controllers/inventory/depots/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -416,7 +416,7 @@ async function detail(req, res, next) {

const sql = `
SELECT
BUID(d.uuid) as uuid, d.text, d.description, d.is_warehouse,
BUID(d.uuid) as uuid, d.text, d.description, d.is_warehouse, BUID(d.location_uuid) AS location_uuid,
allow_entry_purchase, allow_entry_donation, allow_entry_integration, allow_entry_transfer,
allow_exit_debtor, allow_exit_service, allow_exit_transfer, allow_exit_loss,
BUID(parent_uuid) parent_uuid, dhis2_uid,
Expand Down

0 comments on commit f7ebee0

Please sign in to comment.