summaryrefslogtreecommitdiff
path: root/LedgerSMB
diff options
context:
space:
mode:
Diffstat (limited to 'LedgerSMB')
-rwxr-xr-xLedgerSMB/IC.pm3
1 files changed, 3 insertions, 0 deletions
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 = ?,