1 $DBversion = 'XXX'; # will be replaced by the RM
2 if ( CheckVersion($DBversion) ) {
6 INSERT IGNORE INTO account_credit_types (code, description, can_be_added_manually, is_system)
8 ('OVERPAYMENT', 'Overpayment refund', 0, 1)
14 INSERT IGNORE INTO account_offset_types ( type ) VALUES ('Overpayment');
20 UPDATE accountlines SET credit_type_code = 'OVERPAYMENT' WHERE credit_type_code = 'CREDIT' AND description = 'Overpayment refund'
24 NewVersion( $DBversion, 25596, "Add OVERPAYMENT credit type" );