in reply to Automatic Sage Line 50 stock adjustments
Then in sgt_item you will need to increase the length of the reference field:sub sgt_header { # You need to know how many rows you will be writing my $items = shift; print pack("V",0x0740); # Magic number print pack("V",17); # Major version number print pack("V",166); # Possibly minor version? print pack("V",$items); # Number of rows print pack('Vx','0x9bd5'); # We seem to have an extra null byte in h +ere since v11 }
print pack('a30x',$reference);
|
|---|