WeFact API versie 2.4.3



Offertes

Offertes zijn te beheren via de controller 'pricequote'.



pricequoteline delete

Middels deze functie verwijdert u een offerteregel van een bestaande offerte.
Voorbeeldbestand: /voorbeelden/pricequote/pricequoteline.delete.php


Invoerparameters:
Veldnaam Waarde Omschrijving
Identifier int De unieke ID van een offerte
PriceQuoteCode string Het offertenummer
PriceQuoteLines array Offerteregel:
- Identifier int De unieke ID van een regel
Verplichte velden: Identifier of PriceQuoteCode en PriceQuoteLines Identifier

Voorbeeld invoer:
$parameters = [
    "PriceQuoteCode" => "OF2019-0001",
    "PriceQuoteLines" => [
        [
            "Identifier" => 1
        ]
    ]
];

$api->sendRequest('pricequoteline', 'delete', $parameters);

Voorbeeld uitvoer:
Array
(
    [controller] => pricequoteline
    [action] => delete
    [status] => success
    [date] => 2019-12-01T16:34:06+02:00
    [success] => Array
        (
            [0] => Er zijn 1 offerteregels verwijderd
        )

    [pricequote] => Array
        (
            [Identifier] => 1
            [PriceQuoteCode] => OF2019-0001
            [Debtor] => 1
            [DebtorCode] => DB10000
            [Status] => 0
            [Archived] => 0
            [Date] => 2019-10-22
            [Term] => 30
            [AmountExcl] => 29.45
            [AmountTax] => 6.18
            [AmountIncl] => 35.63
            [Discount] => 0
            [VatCalcMethod] => excl
            [IgnoreDiscount] => no
            [ReferenceNumber] => 
            [CompanyName] => Jan Janssen B.V.
            [Initials] => Jan
            [SurName] => Janssen
            [Sex] => m
            [Address] => Keizersgracht 100
            [ZipCode] => 1015 AA
            [City] => Amsterdam
            [Country] => NL
            [EmailAddress] => info@example.com
            [PriceQuoteMethod] => 0
            [SentDate] => 
            [Sent] => 0
            [LanguageCode] => nl_nl
            [Currency] => EUR
            [Description] => 
            [Comment] => 
            [PriceQuoteLines] => Array
                (
                    [0] => Array
                        (
                            [Identifier] => 2
                            [Date] => 2019-10-22
                            [Number] => 155
                            [NumberSuffix] => km
                            [ProductCode] => P0002
                            [Description] => Reiskosten à € 0,19 per km
                            [PriceExcl] => 0.19
                            [DiscountPercentage] => 0
                            [DiscountPercentageType] => line
                            [TaxCode] => V21
                            [TaxPercentage] => 21
                            [Periods] => 1
                            [Periodic] => 
                            [StartDate] => 
                            [EndDate] => 
                            [StartPeriod] => 
                            [EndPeriod] => 
                        )

                )

            [Created] => 2019-12-01 15:34:06
            [Modified] => 2019-12-01 15:34:06
            [AcceptURL] => 
            [VatShift] => no
            [Translations] => Array
                (
                    [Status] => Concept
                    [Country] => Nederland
                    [PriceQuoteMethod] => Per e-mail
                    [LanguageLabel] => Nederlands
                )

        )

)