- invoice =>
- { title => 'Sales Invoices', name => 'Customer', l_invnumber => 'Y' },
- sales_order =>
- { title => 'Sales Orders', name => 'Customer', l_ordnumber => 'Y' },
- purchase_order =>
- { title => 'Purchase Orders', name => 'Vendor', l_ordnumber => 'Y' },
- sales_quotation =>
- { title => 'Quotations', name => 'Customer', l_quonumber => 'Y' },
- request_quotation =>
- { title => 'RFQs', name => 'Vendor', l_quonumber => 'Y' },
- check => { title => 'Checks', name => 'Vendor' },
- receipt => { title => 'Receipts', name => 'Customer' });
-
- $label{invoice}{invnumber} = qq|
- <tr>
- <th align=right nowrap>| . $locale->text('Invoice Number') . qq|</th>
- <td colspan=3><input name=invnumber size=20></td>
- </tr>
-|;
- $label{invoice}{ordnumber} = qq|
- <tr>
- <th align=right nowrap>| . $locale->text('Order Number') . qq|</th>
- <td colspan=3><input name=ordnumber size=20></td>
- </tr>
-|;
- $label{sales_quotation}{quonumber} = qq|
- <tr>
- <th align=right nowrap>| . $locale->text('Quotation Number') . qq|</th>
- <td colspan=3><input name=quonumber size=20></td>
- </tr>
-|;
-
- $label{check}{chknumber} = qq|
- <tr>
- <th align=right nowrap>| . $locale->text('Reference') . qq|</th>
- <td colspan=3><input name=chknumber size=20></td>
- </tr>
-|;
-
- $label{sales_order}{ordnumber} = $label{invoice}{ordnumber};
- $label{purchase_order}{ordnumber} = $label{invoice}{ordnumber};
- $label{request_quotation}{quonumber} = $label{sales_quotation}{quonumber};
- $label{receipt}{rctnumber} = $label{check}{chknumber};
-
- # do one call to text
- $form->{title} =
- $locale->text('Print') . " "
- . $locale->text($label{ $form->{type} }{title});
-
- if ($form->{type} =~ /(check|receipt)/) {
- if (BP->payment_accounts(\%myconfig, \%$form)) {
- $account = qq|
- <tr>
- <th align=right>| . $locale->text('Account') . qq|</th>
-|;
-
- if ($form->{accounts}) {
- $account .= qq|
- <td colspan=3><select name=account>
-|;
- foreach my $ref (@{ $form->{accounts} }) {
- $account .= qq|
- <option>$ref->{accno}--$ref->{description}
-|;
- }
-
- $account .= qq|
- </select>
-|;
- } else {
- $account .= qq|
- <td colspan=3><input name=account></td>
-|;
-
- }
+ invoice => { title => $::locale->text('Sales Invoices'), invnumber => 1, ordnumber => 1 },
+ sales_order => { title => $::locale->text('Sales Orders'), ordnumber => 1, },
+ purchase_order => { title => $::locale->text('Purchase Orders'), ordnumber => 1, },
+ sales_quotation => { title => $::locale->text('Quotations'), quonumber => 1, },
+ request_quotation => { title => $::locale->text('RFQs'), quonumber => 1, },
+ packing_list => { title => $::locale->text('Delivery Orders'), donumber => 1, ordnumber => 1 },
+ check => { title => $::locale->text('Checks'), chknumber => 1, },
+ receipt => { title => $::locale->text('Receipts'), rctnumber => 1, },
+ );