my $bool = $invoice->add_line( { name => "Yard Work", # (Optional) description => "Mowed the lawn.", # (Optional) unit_cost => 10, # Default is 0 quantity => 4, # Default is 0 tax1_name => "GST", # (Optional) tax2_name => "PST", # (Optional) tax1_percent => 8, # (Optional) tax2_percent => 6, # (Optional) } );
Create a new Net::FreshBooks::API::InvoiceLine object and add it to the end of the list of lines.
my $result = $self->send_by_email(); my $result = $self->send_by_snail_mail();
Send the invoice either by email or by snail mail.
To install Net::FreshBooks::API, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Net::FreshBooks::API
CPAN shell
perl -MCPAN -e shell install Net::FreshBooks::API
For more information on module installation, please visit the detailed CPAN module installation guide.