mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-08-23 20:16:55 +01:00
[FIX] Cargo requests get deleted when requester cryos (#27190)
* Cargo requests delete when requester cryo's * Update code/modules/supply/supply_order.dm Co-authored-by: DGamerL <108773801+DGamerL@users.noreply.github.com> Signed-off-by: Chap <erwin@lombok.demon.nl> --------- Signed-off-by: Chap <erwin@lombok.demon.nl> Co-authored-by: Adrer <adrermail@gmail.com> Co-authored-by: DGamerL <108773801+DGamerL@users.noreply.github.com>
This commit is contained in:
@@ -344,7 +344,7 @@
|
||||
for(var/datum/station_department/department in SSjobs.station_departments)
|
||||
if(department.department_account == selected_account)
|
||||
order.ordered_by_department = department //now that we know which department this is for, attach it to the order
|
||||
order.orderedbyaccount = selected_account
|
||||
order.set_account(selected_account)
|
||||
order.requires_head_approval = TRUE
|
||||
|
||||
if(length(order.object.department_restrictions) && !(department.department_name in order.object.department_restrictions))
|
||||
@@ -358,7 +358,7 @@
|
||||
//===Handle Supply Order===
|
||||
if(selected_account.account_type == ACCOUNT_TYPE_PERSONAL)
|
||||
//if the account is a personal account (and doesn't require CT approval), go ahead and pay for it now
|
||||
order.orderedbyaccount = selected_account
|
||||
order.set_account(selected_account)
|
||||
if(attempt_account_authentification(selected_account, user))
|
||||
var/paid_for = FALSE
|
||||
if(!order.requires_cargo_approval && pay_with_account(selected_account, order.object.get_cost(), "[order.object.name] Crate Purchase", "Cargo Requests Console", user, account_database.vendor_account))
|
||||
|
||||
Reference in New Issue
Block a user