summaryrefslogtreecommitdiff
path: root/FS/FS/Schema.pm
diff options
context:
space:
mode:
authorJonathan Prykop <jonathan@freeside.biz>2016-02-22 17:14:07 -0600
committerJonathan Prykop <jonathan@freeside.biz>2016-02-23 08:36:37 -0600
commit5fb8b90c0358e69523075a9dc8a153cd431a72db (patch)
tree6daf94b37247b1325c1e300100187909d072cb5d /FS/FS/Schema.pm
parent1bb85d2484b3d9f45c2b1142951503ff1c54e2e9 (diff)
RT#39586 Manual check refunds cannot be unapplied [source_paynum field, reason bug fixes, link text]
Diffstat (limited to 'FS/FS/Schema.pm')
-rw-r--r--FS/FS/Schema.pm5
1 files changed, 5 insertions, 0 deletions
diff --git a/FS/FS/Schema.pm b/FS/FS/Schema.pm
index 85c8519..be12c03 100644
--- a/FS/FS/Schema.pm
+++ b/FS/FS/Schema.pm
@@ -3077,6 +3077,7 @@ sub tables_hashref {
'paymask', 'varchar', 'NULL', $char_d, '', '',
'paybatch', 'varchar', 'NULL', $char_d, '', '',
'closed', 'char', 'NULL', 1, '', '',
+ 'source_paynum', 'int', 'NULL', '', '', '', # link to cust_payby, to prevent unapply of gateway-generated refunds
# credit card/EFT fields (formerly in paybatch)
'gatewaynum', 'int', 'NULL', '', '', '', # payment_gateway FK
'processor', 'varchar', 'NULL', $char_d, '', '', # module name
@@ -3099,6 +3100,10 @@ sub tables_hashref {
{ columns => [ 'gatewaynum' ],
table => 'payment_gateway',
},
+ { columns => [ 'source_paynum' ],
+ table => 'cust_pay',
+ references => [ 'paynum' ],
+ },
],
},