Skip to content

Commit

Permalink
Merge pull request #1 from ledgersmb/1.3
Browse files Browse the repository at this point in the history
1.3 wtf, sorry, if I mess up something, first time with github
  • Loading branch information
pongraczi committed Apr 30, 2014
2 parents 7c71a30 + 85e6f16 commit f86ad37
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 27 deletions.
6 changes: 6 additions & 0 deletions Changelog
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,12 @@ Changelog for 1.3 Series
Initial Release: Monday, Oct 12 2011
Supported Presently

Changelog for 1.3.40
* Updated nginx configuration (Pongracz I)
* GL account search now will search within descriptions for matches (Chris T)
* Printing without an invoice number now errors instead of increments (Chris T)
* Fixed internal server error using cash/payment (Chris T)

Changelog for 1.3.39
* Fixed Internal Server Error clicking through ar/ap report (Chris T, 1022)
* Fixed internal server error deleting part (Chris T, 1027)
Expand Down
3 changes: 3 additions & 0 deletions LedgerSMB/DBObject/Payment.pm
Original file line number Diff line number Diff line change
Expand Up @@ -794,6 +794,9 @@ sub post_payment {
$self->error($self->{_locale}->text("Exchange rate inconsistency with database. Got [_1], expected [_2]", $self->{exrate}, $db_exchangerate));
}
}
for (@{$self->{amount}}){
$_ = $_->bstr if ref $_;
}
my @TMParray = $self->exec_method(funcname => 'payment_post');
$self->{dbh}->commit();
$self->{payment_id} = $TMParray[0]->{payment_post};
Expand Down
17 changes: 1 addition & 16 deletions bin/aa.pl
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,6 @@ sub create_links {

$duedate = $form->{duedate};
$crdate = $form->{crdate};
$taxincluded = $form->{taxincluded};

$form->{formname} = "transaction";
$form->{format} = "postscript" if $myconfig{printer};
Expand Down Expand Up @@ -218,9 +217,6 @@ sub create_links {
$form->{currency} =~ s/ //g;
$form->{duedate} = $duedate if $duedate;
$form->{crdate} = $crdate if $crdate;
$form->{taxincluded} = $taxincluded if $form->{id};

$form->{notes} = $form->{intnotes} if !$form->{id};

$form->{"old$form->{vc}"} =
qq|$form->{$form->{vc}}--$form->{"$form->{vc}_id"}|;
Expand Down Expand Up @@ -378,7 +374,7 @@ sub create_links {


# check if calculated is equal to stored
# taxincluded is terrible to calculate
# taxincluded can't be calculated
# this works only if all taxes are checked

@taxaccounts = Tax::init_taxes( $form, $form->{taxaccounts} );
Expand Down Expand Up @@ -505,16 +501,6 @@ sub form_header {
</tr>
|;

$taxincluded = "";
if ( $form->{taxaccounts} ) {
$taxincluded = qq|
<tr>
<td align=right><input name=taxincluded class=checkbox type=checkbox value=1 $form->{taxincluded}></td>
<th align=left nowrap>| . $locale->text('Tax Included') . qq|</th>
</tr>
|;
}

if ( ( $rows = $form->numtextrows( $form->{notes}, 50 ) - 1 ) < 2 ) {
$rows = 2;
}
Expand Down Expand Up @@ -679,7 +665,6 @@ sub form_header {
print qq|
$exchangerate
$department
$taxincluded
</table>
</td>
<td align=right>
Expand Down
12 changes: 4 additions & 8 deletions bin/io.pl
Original file line number Diff line number Diff line change
Expand Up @@ -1635,14 +1635,10 @@ sub print_form {
$form->isblank( "${inv}date",
$locale->text( $form->{label} . ' Date missing!' ) );

# get next number
if ( !$form->{"${inv}number"} ) {
$form->{"${inv}number"} =
$form->update_defaults( \%myconfig, $numberfld );
if ( $form->{media} eq 'screen' ) {
&update;
$form->finalize_request();
}
# We used to increment the number but we no longer allow printing before
# posting, so the safe thing to do is just to display an error. --Chris T
if ( !$form->{"${inv}number"} and $inv) {
$form->error($locale->text('Reference Number Missing'));
}

# $locale->text('Invoice Number missing!')
Expand Down
3 changes: 0 additions & 3 deletions locale/po/es_AR.po
Original file line number Diff line number Diff line change
Expand Up @@ -2497,9 +2497,6 @@ msgstr "Listar Departamentos"
msgid "List Businesses"
msgstr "Listar Negocios"

msgid "Add Language"
msgstr "Agregar Idioma"

msgid "List Languages"
msgstr "Listar Idioma"

Expand Down

0 comments on commit f86ad37

Please sign in to comment.