Provides ability to read and generate CAM32 price change files.
Represents a “normal” price change file. It contains a dictionary attribute (changes) which tracks the cam32.pricing.NormalPriceChange instances (to be) included in the file, keyed by item number.
Constructor. proposed_date may be provided if you wish; otherwise it will default to today’s date. The path for the file may also be specified; otherwise one will be found using cam32.config.get_avail_price_change_path().
Writes the price changes to file. If path is not provided, it uses the path it obtained in the constructor.
A progress factory may be provided.
If the progress object is cancelled, this function will return False. Otherwise, it will return True.
Removes the actual price change file associated with this object from disk.
Represents a “normal” price change entry, (to be) included in a normal price change file.
Represents a “promotional” price change entry, to be included in a promotional price change file.
Creates a promotional price change file to be imported by CAM32. Must pass a dictionary of cam32.pricing.PromotionalPriceChange instances (keyed by item number), and the start and end dates for the promotion.
If you do not provide a path for the file, one will be determined automatically.
A progress factory may be provided.