diff --git a/code/game/objects/items/cards_ids.dm b/code/game/objects/items/cards_ids.dm index 72e876bf0d4..783c5052d51 100644 --- a/code/game/objects/items/cards_ids.dm +++ b/code/game/objects/items/cards_ids.dm @@ -688,6 +688,10 @@ . = ..() if(registered_account) . += "The account linked to the ID belongs to '[registered_account.account_holder]' and reports a balance of [registered_account.account_balance] cr." + if((ACCESS_HEADS in access) || (ACCESS_QM in access)) + var/datum/bank_account/linked_dept = SSeconomy.get_dep_account(registered_account.account_job.paycheck_department) + . += "The [linked_dept.account_holder] linked to the ID reports a balance of [linked_dept.account_balance] cr." + if(HAS_TRAIT(user, TRAIT_ID_APPRAISER)) . += HAS_TRAIT(src, TRAIT_JOB_FIRST_ID_CARD) ? span_boldnotice("Hmm... yes, this ID was issued from Central Command!") : span_boldnotice("This ID was created in this sector, not by Central Command.") . += span_notice("There's more information below, you can look again to take a closer look...") diff --git a/code/modules/cargo/orderconsole.dm b/code/modules/cargo/orderconsole.dm index 223e58aa555..ff1167642a6 100644 --- a/code/modules/cargo/orderconsole.dm +++ b/code/modules/cargo/orderconsole.dm @@ -98,6 +98,7 @@ /obj/machinery/computer/cargo/ui_data() var/list/data = list() + data["department"] = "Cargo" // Hardcoded here, for customization in budgetordering.dm AKA NT IRN data["location"] = SSshuttle.supply.getStatusText() var/datum/bank_account/D = SSeconomy.get_dep_account(cargo_account) if(D) diff --git a/code/modules/modular_computers/file_system/programs/budgetordering.dm b/code/modules/modular_computers/file_system/programs/budgetordering.dm index 6d48e545f88..4ed216a2d0b 100644 --- a/code/modules/modular_computers/file_system/programs/budgetordering.dm +++ b/code/modules/modular_computers/file_system/programs/budgetordering.dm @@ -68,6 +68,7 @@ . = ..() var/list/data = get_header_data() data["location"] = SSshuttle.supply.getStatusText() + data["department"] = "Cargo" var/datum/bank_account/buyer = SSeconomy.get_dep_account(cargo_account) var/obj/item/computer_hardware/card_slot/card_slot = computer.all_components[MC_CARD] var/obj/item/card/id/id_card = card_slot?.GetID() @@ -79,6 +80,9 @@ else requestonly = TRUE can_approve_requests = FALSE + if(ACCESS_HEADS in id_card.access) + // If buyer is a departmental budget, replaces "Cargo" with that budget - we're not using the cargo budget here + data["department"] = addtext(buyer.account_holder, " Requisitions") else requestonly = TRUE if(buyer) diff --git a/tgui/packages/tgui/interfaces/Cargo.js b/tgui/packages/tgui/interfaces/Cargo.js index cb3d2fd6c2f..7521c13c6cd 100644 --- a/tgui/packages/tgui/interfaces/Cargo.js +++ b/tgui/packages/tgui/interfaces/Cargo.js @@ -94,6 +94,7 @@ export const CargoContent = (props, context) => { const CargoStatus = (props, context) => { const { act, data } = useBackend(context); const { + department, grocery, away, docked, @@ -107,7 +108,7 @@ const CargoStatus = (props, context) => { } = data; return (