Invoice
Lemonsoft
Lemonsoft
{$Invoice = $this->get('webservice','Lemonsoft')->getResource('Invoice')} {$Invoice->Number->setValue('*5819')} {$Invoice->Date->setValue('*2008-04-16T00:00:00')} {$Invoice->Description->setValue('Laskun kuvaus')} {$Invoice->CustomerNumber->setValue('1')} {$Invoice->CustomerName1->setValue('Asiakas Oy')} {$Invoice->CustomerName2->setValue('Tuotekehitysosasto')} {$Invoice->CustomerAddress1->setValue('Lapintie 28')} {$Invoice->CustomerAddress2->setValue('Kolmas kerros')} {$Invoice->CustomerAddress3->setValue('33100 Tampere')} {$Invoice->CustomerCountry->setValue('Finland')} {$Invoice->CustomerContact->setValue('Antti Karttunen')} {$Invoice->Duedate->setValue('2008-05-16T00:00:00')} {$Invoice->LanguageCode->setValue('FIN')} {$Invoice->CurrencyRate->setValue('1.000000')} {$Invoice->Remindercount->setValue('0')} {$Invoice->Type->setValue('0')} {$Invoice->DeliveryCustomerNumber->setValue('3')} {$Invoice->DeliveryCustomerName1->setValue('Toimitusasiakas Oy')} {$Invoice->DeliveryCustomerName2->setValue('Lisätieto')} {$Invoice->DeliveryCustomerAddress1->setValue('Pajakatu 13')} {$Invoice->DeliveryCustomerAddress2->setValue('Kolmas kerros')} {$Invoice->DeliveryCustomerAddress3->setValue('33200 Tampere')} {$Invoice->DeliveryCustomerCountry->setValue('Sweden')} {$Invoice->DeliveryCustomerContact->setValue('Tuomas Vihavainen')} {$Invoice->OrdererCustomerNumber->setValue('1')} {$Invoice->OrdererCustomerName1->setValue('Asiakas Oy')} {$Invoice->OrdererCustomerName2->setValue('Tuotanto')} {$Invoice->OrderCustomerAddress1->setValue('Siltakatu 14')} {$Invoice->OrdererCustomerAddress2->setValue('Neljäs kerros')} {$Invoice->OrdererCustomerAddress3->setValue('33100 Tampere')} {$Invoice->OrdererCustomerCountry->setValue('Norway')} {$Invoice->OrdererCustomerContact->setValue('Kalle Lievejärvi')} {$Invoice->CurrencyCode->setValue('EUR')} {$Invoice->Ordermark->setValue('merkki')} {$Invoice->CustomerOrderNumber->setValue('til.nro 120')} {$Invoice->CustomerReference->setValue('Orderer name')} {$Invoice->OurReference->setValue('Seller name')} {$Invoice->PersonSellerNumber->setValue('4')} {$Invoice->PaymentTerm->setValue('3')} {$Invoice->DeliveryMethod->setValue('1')} {$Invoice->DeliveryCode->setValue('')} {$Invoice->DeliveryTerm->setValue('1')} {$Invoice->PersonDriver->setValue('0')} {$Invoice->ResPerson->setValue('2')} {$Invoice->TaxType->setValue('')} {$Invoice->TotalSum->setValue('227.7000')} {$Invoice->Roundingsum->setValue('0.0000')} {$Invoice->DoRounding->setValue('')} {$Invoice->Reference->setValue('10000 58190')} {$Invoice->CompanyLocationId->setValue('1')} {$Invoice->Cashamount->setValue('0.0000')} {$Invoice->Cashamount2->setValue('0.0000')} {$Invoice->Cashamount3->setValue('0.0000')} {$Invoice->Note->setValue('Tämä on itse laskun viesti.')} {$Invoice->InvoicedBit->setValue('')} {$Invoice->ProjectNumber->setValue('0')} {$Invoice->MethodId->setValue('1')} {$Invoice->BankCode->setValue('2123456000078970')} {$Invoice->TransferedBit->setValue('')} {$InvoiceRow = $Invoice->addInvoiceRow()} {$InvoiceRow->Id->setValue('203')} {$InvoiceRow->Number->setValue('0')} {$InvoiceRow->Type->setValue('0')} {$InvoiceRow->Position->setValue('1')} {$InvoiceRow->Productcode->setValue('TYO')} {$InvoiceRow->ProductStock->setValue('1')} {$InvoiceRow->ProductDescription->setValue('Työlaskutus')} {$InvoiceRow->ProductDescription2->setValue('Työn lisätieto')} {$InvoiceRow->Amount->setValue('1.0000')} {$InvoiceRow->Amount2->setValue('0.0000')} {$InvoiceRow->Unitprice->setValue('85.0000')} {$InvoiceRow->Total->setValue('85.0000')} {$InvoiceRow->Per->setValue('0')} {$InvoiceRow->Unit->setValue('h')} {$InvoiceRow->Discount->setValue('0.0000')} {$InvoiceRow->Discount2->setValue('0.0000')} {$InvoiceRow->Dimension->setValue('100xm x 50cm x 45cm')} {$InvoiceRow->Color->setValue('Punainen')} {$InvoiceRow->UnitNetprice->setValue('85.0000')} {$InvoiceRow->UnitNetpriceCurr->setValue('0.0000')} {$InvoiceRow->Taxrate->setValue('*24.0000')} {$InvoiceRow->Taxamount->setValue('18.7000')} {$InvoiceRow->Net->setValue('85.0000')} {$InvoiceRow->AccountlistAccount->setValue('3000')} {$InvoiceRow->Costcenter->setValue('')} {$InvoiceRow->ProjectCode->setValue('')} {$InvoiceRow->CodelistWorknumber->setValue('0')} {$InvoiceRow->ProjectNumber->setValue('0')} {$InvoiceRow->ProjectPhaseId->setValue('0')} {$InvoiceRow->Note->setValue('Koodin TYO lisatietoa')} {$InvoiceRow->InnerNote->setValue('Koodin TYO lisatietoa')} {$InvoiceRow->InvoiceId->setValue('1')} {$InvoiceRow->SerClass->setValue('0')} {$InvoiceRow->SerPayment->setValue('0')} {$InvoiceRow->Batchnumber->setValue('0')} {$InvoiceRow->DeliveryDate->setValue('2008-04-16T00:00:00')} {$InvoiceRow->OrderNumber->setValue('0')} {$InvoiceRow->DeliveryCustomerNumber->setValue('0')} {$InvoiceRow->SellerId->setValue('4')} {$InvoiceRow->StockId->setValue('194')} {$InvoicePayment = $Invoice->addInvoicePayment()} {$InvoicePayment->Id->setValue('49')} {$InvoicePayment->Date->setValue('2008-04-16T00:00:00')} {$InvoicePayment->Total->setValue('225.7000')} {$InvoicePayment->TotalIncurrency->setValue('225.7000')} {$InvoicePayment->CurrencyRate->setValue('1.000000')} {$InvoicePayment->Account->setValue('1905')} {$InvoicePayment->AccountCurrency->setValue('EUR')} {$InvoicePayment->Costcenter->setValue('')} {$InvoicePayment->PaymentCode->setValue('0')} {$InvoicePayment->CashierNumber->setValue('0')} {$InvoicePayment->IntrestBit->setValue('')} {$InvoicePayment->Description->setValue('')} {$InvoicePayment->Archive->setValue('')} {$response = $Invoice->getResponse()}