Bug 11573: (follow-up) Handle daily rental in db update
Signed-off-by: Nick Clemens <nick@bywatersolutions.com> Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
This commit is contained in:
parent
81137a17f2
commit
70d7226f9e
|
|
@ -1,6 +1,29 @@
|
|||
$DBversion = 'XXX'; # will be replaced by the RM
|
||||
if ( CheckVersion($DBversion) ) {
|
||||
|
||||
$dbh->do(qq{
|
||||
UPDATE
|
||||
accountlines
|
||||
SET
|
||||
accounttype = 'RENT_DAILY_RENEW'
|
||||
WHERE
|
||||
accounttype = 'Rent'
|
||||
AND
|
||||
description LIKE 'Renewal of Daily Rental Item%';
|
||||
});
|
||||
|
||||
$dbh->do(qq{
|
||||
UPDATE
|
||||
accountlines
|
||||
SET
|
||||
accounttype = 'RENT_DAILY'
|
||||
WHERE
|
||||
accounttype = 'Rent'
|
||||
AND
|
||||
description LIKE 'Daily rental';
|
||||
});
|
||||
|
||||
|
||||
$dbh->do(qq{
|
||||
UPDATE
|
||||
accountlines
|
||||
|
|
|
|||
Loading…
Reference in New Issue