From e0fd5d2b72f1f8306d69972ca1c067a83f48ad3d Mon Sep 17 00:00:00 2001 From: einhverfr Date: Sat, 11 Nov 2006 00:03:41 +0000 Subject: when adding parts, etc. price update defaults to current date on save git-svn-id: https://ledger-smb.svn.sourceforge.net/svnroot/ledger-smb/trunk@509 4979c152-3d1c-0410-bac9-87ea11338e46 --- LedgerSMB/IC.pm | 3 +++ 1 file changed, 3 insertions(+) (limited to 'LedgerSMB/IC.pm') diff --git a/LedgerSMB/IC.pm b/LedgerSMB/IC.pm index e3974891..7c61ef92 100755 --- a/LedgerSMB/IC.pm +++ b/LedgerSMB/IC.pm @@ -383,6 +383,9 @@ sub save { $form->{partnumber} = $form->update_defaults( $myconfig, "partnumber", $dbh) if ! $form->{partnumber}; + if (!$form->{priceupdate}){ + $form->{priceupdate} = 'now'; + } $query = qq| UPDATE parts SET partnumber = ?, -- cgit v1.2.3