// Call parent constructor
parent::__construct(__CLASS__);
- // Set description
- $this->setObjectDescription("Bauvertrag");
-
- // Unique-ID generieren
- $this->generateUniqueId();
-
// Clean up a little
$this->removeSystemArray();
+ $this->removeNumberFormaters();
}
// Neuen Bauvertrag generieren
// Get new instance
$contractInstance = new WorksContract();
- // Debug-Meldung ausgeben
- if ((defined('DEBUG_CONTRACT')) || (defined('DEBUG_ALL'))) $contractInstance->debugOutput(sprintf("[%s:%d] Neuer Bauvertrag wird für das Schiff <strong>%s</strong> mit der <strong>%s</strong> <strong>%s</strong> erstellt.",
- __CLASS__,
- __LINE__,
- $shipName,
- $partnerInstance->getObjectDescription(),
- $partnerInstance->getCompanyName()
- ));
-
// Schiffsnamen setzen
$contractInstance->setShipName($shipName);
// Get price for this item
$price = $this->getMerchantInstance()->getPriceFromList($partInstance);
- // Final debug message
- if ((defined('DEBUG_CONTRACT')) || (defined('DEBUG_ALL'))) $this->debugOutput(sprintf("[%s:%d] <strong>%s</strong> kostet <strong>%s</strong>.",
- __CLASS__,
- __LINE__,
- $partInstance->getObjectDescription(),
- $this->getMerchantInstance()->formatCurrency($price)
- ));
-
// Add price
$partInstance->setPrice($price);
-
- // Final debug message
- if ((defined('DEBUG_CONTRACT')) || (defined('DEBUG_ALL'))) $this->debugOutput(sprintf("[%s:%d] <strong>%s</strong> wurde in den Bauvertrag aufgenommen.",
- __CLASS__,
- __LINE__,
- $partInstance->getObjectDescription()
- ));
}
// Setter for contract partner